napi-async-runtime 0.2.2

Shared pluggable async runtime for napi-rs addons: a tokio-free async/CPU/blocking scheduler plus an optional napi AsyncRuntime SPI adapter
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "napi-async-runtime"
version = "0.2.2"
authors = ["LongYinan <lynweklm@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared pluggable async runtime for napi-rs addons: a tokio-free async/CPU/blocking scheduler plus an optional napi AsyncRuntime SPI adapter"
readme = "README.md"
keywords = [
    "NodeJS",
    "Node",
    "async",
    "runtime",
    "NAPI",
]
license = "MIT"
repository = "https://github.com/napi-rs/napi-rs"
resolver = "2"

[features]
default = ["napi"]
napi = [
    "dep:napi",
    "dep:napi-derive",
]

[lib]
name = "napi_async_runtime"
path = "src/lib.rs"

[[test]]
name = "consumed_api"
path = "tests/consumed_api.rs"

[dependencies.arc-swap]
version = "1"

[dependencies.async-task]
version = "4.7.1"

[dependencies.futures]
version = "0.3"

[dependencies.napi]
version = "3"
features = [
    "napi4",
    "async-runtime",
]
optional = true
default-features = false

[dependencies.napi-derive]
version = "3"
features = ["type-def"]
optional = true
default-features = false

[dependencies.rustc-hash]
version = "2"

[dev-dependencies.napi]
version = "3"
features = ["dyn-symbols"]
default-features = false

[target.'cfg(not(target_family = "wasm"))'.dependencies.crossbeam-deque]
version = "0.8"

[target.'cfg(not(target_family = "wasm"))'.dependencies.rayon]
version = "1.12"