napi-rs/bench/Cargo.toml
2020-12-28 14:02:28 +08:00

25 lines
581 B
TOML

[package]
authors = ["LongYinan <lynweklm@gmail.com>"]
edition = "2018"
name = "napi-bench"
version = "0.1.0"
[lib]
crate-type = ["cdylib"]
[dependencies]
napi = {path = "../napi", features = ["napi4"]}
napi-derive = {path = "../napi-derive"}
[target.'cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))'.dependencies]
jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}
[target.'cfg(windows)'.dependencies]
mimalloc = {version = "0.1"}
[build-dependencies]
napi-build = {path = "../build"}
[profile.release]
lto = true
opt-level = 3