Files

57 lines
1.7 KiB
TOML

[package]
name = "unrs_resolver_napi"
version = "0.0.0"
authors.workspace = true
categories.workspace = true
edition.workspace = true
homepage.workspace = true
include = ["src", "build.rs"]
keywords.workspace = true
license.workspace = true
publish = false
readme.workspace = true
repository.workspace = true
rust-version.workspace = true
description.workspace = true
[lib]
crate-type = ["cdylib", "lib"]
test = false
doctest = false
[dependencies]
unrs_resolver = { workspace = true }
fancy-regex = { version = "^0.18.0", default-features = false, features = ["std"] }
napi = { version = "3.8", default-features = false, features = ["napi3", "serde-json"] }
napi-derive = { version = "3" }
tracing-subscriber = { version = "0.3.23", optional = true, default-features = false, features = [
"std",
"fmt",
] } # Omit the `regex` feature
[target.'cfg(not(any(target_os = "linux", target_os = "freebsd", target_arch = "arm", target_family = "wasm")))'.dependencies]
mimalloc-safe = { version = "0.1.56", optional = true, features = ["skip_collect_on_exit"] }
[target.'cfg(all(target_os = "linux", not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies]
mimalloc-safe = { version = "0.1.56", optional = true, features = [
"skip_collect_on_exit",
"local_dynamic_tls",
] }
[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies]
mimalloc-safe = { version = "0.1.56", optional = true, features = [
"skip_collect_on_exit",
"local_dynamic_tls",
"no_opt_arch",
] }
[build-dependencies]
napi-build = "2.3.1"
[features]
default = ["tracing-subscriber", "yarn_pnp"]
allocator = ["dep:mimalloc-safe"]
tracing-subscriber = ["dep:tracing-subscriber"]
yarn_pnp = ["unrs_resolver/yarn_pnp"]