generated from napi-rs/package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
29 lines (22 loc) · 696 Bytes
/
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
[package]
authors = ["nemurubaka <cijiugechu@gmail.com>"]
edition = "2021"
name = "thumbhash-node"
version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]
[target.'cfg(not(target_os = "linux"))'.dependencies]
mimalloc-rust = "0.2"
[target.'cfg(all(target_os = "linux", not(all(target_env = "musl", target_arch = "aarch64"))))'.dependencies]
mimalloc-rust = { version = "0.2", features = ["local-dynamic-tls"] }
[dependencies]
napi = "2"
napi-derive = "2"
thumbhash = "0.1.0"
[build-dependencies]
napi-build = "2"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1