daf5f1f9e9
- napi@2.4.0 - napi-derive@2.4.0 - napi-sys@2.2.0 - napi-build@2.0.0
76 lines
1.8 KiB
TOML
76 lines
1.8 KiB
TOML
[package]
|
|
authors = ["Nathan Sobo <nathan@github.com>", "Yinan Long <lynweklm@gmail.com>"]
|
|
description = "N-API bindings"
|
|
edition = "2021"
|
|
keywords = ["NodeJS", "Node", "FFI", "NAPI", "n-api"]
|
|
license = "MIT"
|
|
name = "napi"
|
|
readme = "README.md"
|
|
repository = "https://github.com/napi-rs/napi-rs"
|
|
version = "2.4.0"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[package.metadata.workspaces]
|
|
independent = true
|
|
|
|
[features]
|
|
async = ["tokio_rt"]
|
|
compat-mode = []
|
|
default = ["napi3", "compat-mode"] # for most Node.js users
|
|
experimental = ["napi-sys/experimental"]
|
|
chrono_date = ["chrono", "napi5"]
|
|
full = ["latin1", "napi8", "async", "serde-json", "experimental", "chrono_date"]
|
|
latin1 = ["encoding_rs"]
|
|
napi1 = []
|
|
napi2 = ["napi1"]
|
|
napi3 = ["napi2", "napi-sys/napi3"]
|
|
napi4 = ["napi3", "napi-sys/napi4"]
|
|
napi5 = ["napi4", "napi-sys/napi5"]
|
|
napi6 = ["napi5", "napi-sys/napi6"]
|
|
napi7 = ["napi6", "napi-sys/napi7"]
|
|
napi8 = ["napi7", "napi-sys/napi8"]
|
|
serde-json = ["serde", "serde_json"]
|
|
tokio_fs = ["tokio/fs"]
|
|
tokio_full = ["tokio/full"]
|
|
tokio_io_std = ["tokio/io-std"]
|
|
tokio_io_util = ["tokio/io-util"]
|
|
tokio_macros = ["tokio/macros"]
|
|
tokio_net = ["tokio/net"]
|
|
tokio_process = ["tokio/process"]
|
|
tokio_rt = ["tokio", "napi4"]
|
|
tokio_signal = ["tokio/signal"]
|
|
tokio_stats = ["tokio/stats"]
|
|
tokio_sync = ["tokio/sync"]
|
|
tokio_test_util = ["tokio/test-util"]
|
|
tokio_time = ["tokio/time"]
|
|
|
|
[dependencies]
|
|
ctor = "0.1"
|
|
lazy_static = "1"
|
|
|
|
[dependencies.napi-sys]
|
|
version = "2.1.0"
|
|
path = "../sys"
|
|
|
|
[dependencies.encoding_rs]
|
|
optional = true
|
|
version = "0.8"
|
|
|
|
[dependencies.chrono]
|
|
optional = true
|
|
version = "0.4"
|
|
|
|
[dependencies.tokio]
|
|
features = ["rt", "rt-multi-thread", "sync"]
|
|
optional = true
|
|
version = "1"
|
|
|
|
[dependencies.serde]
|
|
optional = true
|
|
version = "1"
|
|
|
|
[dependencies.serde_json]
|
|
optional = true
|
|
version = "1"
|