[package] authors = ["LongYinan "] edition = "2018" name = "napi-package-template" version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] crate-type = ["cdylib"] [dependencies] napi = "1.0.0" napi-derive = "1.0.0" [target.'cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))'.dependencies] jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]} [target.'cfg(all(windows, target_arch = "x86_64"))'.dependencies] mimalloc = {version = "0.1"} [build-dependencies] napi-build = "1.0.0" [profile.release] codegen-units = 1