[package]
authors = ["LongYinan <lynweklm@gmail.com>"]
description = "Shared pluggable async runtime for napi-rs addons: a tokio-free async/CPU/blocking scheduler plus an optional napi AsyncRuntime SPI adapter"
edition = "2024"
keywords = ["NodeJS", "Node", "async", "runtime", "NAPI"]
license = "MIT"
name = "napi-async-runtime"
readme = "README.md"
repository = "https://github.com/napi-rs/napi-rs"
rust-version.workspace = true
version = "0.2.7"
[features]
default = ["napi"]
napi = ["dep:napi", "dep:napi-derive"]
[dependencies]
arc-swap = "1"
async-task = "4.7.1"
futures = "0.3"
rustc-hash = "2"
[dependencies.napi]
path = "../napi"
version = "3.15.0"
default-features = false
features = ["napi4", "async-runtime"]
optional = true
[dependencies.napi-derive]
path = "../macro"
version = "3.6.13"
default-features = false
features = ["type-def"]
optional = true
[target.'cfg(not(target_family = "wasm"))'.dependencies]
rayon = "1.12"
crossbeam-deque = "0.8"
[target.wasm32-wasip1-threads.dependencies]
rayon = "1.12"
crossbeam-deque = "0.8"
napi-sys = { path = "../sys", version = "3.4.1", default-features = false }
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
napi = { path = "../napi", version = "3.15.0", default-features = false, features = [
"dyn-symbols",
] }