Cargo.toml 497 B

1234567891011121314151617181920212223
  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"
  11. napi-derive = "1"
  12. [target.'cfg(all(any(windows, unix), target_arch = "x86_64", not(target_env = "musl")))'.dependencies]
  13. mimalloc = {version = "0.1"}
  14. [build-dependencies]
  15. napi-build = "1"
  16. [profile.release]
  17. lto = true