generated from napi-rs/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
Cargo.toml
41 lines (35 loc) · 1.02 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[package]
authors = ["LongYinan <[email protected]>"]
edition = "2021"
name = "canvas"
version = "0.1.0"
[lib]
crate-type = ["cdylib"]
[dependencies]
anyhow = "1"
base64 = "0.22"
base64-simd = "0.8"
cssparser = "0.29"
infer = "0.16"
libavif = { version = "0.14", default-features = false, features = ["codec-aom"] }
napi = { version = "3.0.0-alpha.20", default-features = false, features = ["napi3", "serde-json"] }
napi-derive = { version = "3.0.0-alpha.18", default-features = false }
nom = "7"
num_cpus = "1"
regex = "1"
rgb = "0.8"
serde = "1"
serde_derive = "1"
serde_json = "1"
thiserror = "2"
[target.'cfg(not(target_os = "linux"))'.dependencies]
mimalloc = "0.1"
[target.'cfg(all(target_os = "linux", not(target_arch = "arm")))'.dependencies]
mimalloc = { version = "0.1", features = ["local_dynamic_tls"] }
[build-dependencies]
cc = "1"
napi-build = "2"
[profile.release]
codegen-units = 1
lto = true
strip = "symbols"