[package]
name = "oxc_parser_napi"
version = "0.71.0"
authors.workspace = true
categories.workspace = true
edition.workspace = true
homepage.workspace = true
include = ["/src", "build.rs"]
keywords.workspace = true
license.workspace = true
publish = true
repository.workspace = true
rust-version.workspace = true
description.workspace = true
[lints]
workspace = true
[lib]
crate-type = ["cdylib", "lib"]
test = false
doctest = false
[dependencies]
oxc = { workspace = true, features = ["ast_visit", "regular_expression", "semantic", "serialize"] }
oxc_ast_macros = { workspace = true }
oxc_estree = { workspace = true }
oxc_napi = { workspace = true }
rustc-hash = { workspace = true }
napi = { workspace = true, features = ["async"] }
napi-derive = { workspace = true }
[target.'cfg(not(any(target_os = "linux", target_os = "freebsd", target_arch = "arm", target_family = "wasm")))'.dependencies]
mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit"] }
[target.'cfg(all(target_os = "linux", not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies]
mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls"] }
[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies]
mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls", "no_opt_arch"] }
[build-dependencies]
napi-build = { workspace = true }
[features]
default = []
allocator = ["dep:mimalloc-safe"]