Cargo.toml 673 B

1234567891011121314151617181920212223242526
  1. [package]
  2. authors = ["LongYinan <lynweklm@gmail.com>"]
  3. edition = "2018"
  4. name = "napi-package-template"
  5. version = "0.1.0"
  6. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  7. [lib]
  8. crate-type = ["cdylib"]
  9. [dependencies]
  10. napi = "1.0.0-alpha.1"
  11. napi-derive = "1.0.0-alpha.0"
  12. [target.'cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))'.dependencies]
  13. jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}
  14. [target.'cfg(all(windows, target_arch = "x86_64"))'.dependencies]
  15. mimalloc = {version = "0.1"}
  16. [build-dependencies]
  17. napi-build = "1.0.0-alpha.0"
  18. [profile.release]
  19. codegen-units = 1