2020-02-18 22:09:17 +09:00
|
|
|
[package]
|
|
|
|
authors = ["Nathan Sobo <nathan@github.com>", "Yinan Long <lynweklm@gmail.com>"]
|
2020-03-16 15:26:30 +09:00
|
|
|
description = "N-API bindings"
|
2021-12-08 13:52:33 +09:00
|
|
|
edition = "2021"
|
2021-03-31 22:51:12 +09:00
|
|
|
keywords = ["NodeJS", "Node", "FFI", "NAPI", "n-api"]
|
2020-10-11 22:36:14 +09:00
|
|
|
license = "MIT"
|
|
|
|
name = "napi"
|
2020-03-16 15:26:30 +09:00
|
|
|
readme = "README.md"
|
2020-07-15 02:23:23 +09:00
|
|
|
repository = "https://github.com/napi-rs/napi-rs"
|
2022-05-20 17:23:10 +09:00
|
|
|
rust-version = "1.57"
|
2022-05-12 17:59:29 +09:00
|
|
|
version = "2.4.3"
|
2021-12-22 01:19:07 +09:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
|
|
|
|
[package.metadata.workspaces]
|
|
|
|
independent = true
|
2020-02-18 22:09:17 +09:00
|
|
|
|
2020-07-03 01:31:50 +09:00
|
|
|
[features]
|
2021-11-01 00:35:39 +09:00
|
|
|
async = ["tokio_rt"]
|
2021-09-23 02:29:09 +09:00
|
|
|
compat-mode = []
|
2022-02-10 04:50:46 +09:00
|
|
|
default = ["napi3", "compat-mode"] # for most Node.js users
|
2021-12-08 00:38:53 +09:00
|
|
|
experimental = ["napi-sys/experimental"]
|
2022-02-10 14:44:43 +09:00
|
|
|
chrono_date = ["chrono", "napi5"]
|
2022-02-10 04:50:46 +09:00
|
|
|
full = ["latin1", "napi8", "async", "serde-json", "experimental", "chrono_date"]
|
2020-10-11 22:36:14 +09:00
|
|
|
latin1 = ["encoding_rs"]
|
2020-11-10 12:09:25 +09:00
|
|
|
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"]
|
2021-04-21 18:19:45 +09:00
|
|
|
napi8 = ["napi7", "napi-sys/napi8"]
|
2020-08-26 01:07:27 +09:00
|
|
|
serde-json = ["serde", "serde_json"]
|
2022-01-23 19:43:37 +09:00
|
|
|
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"]
|
2021-12-22 00:24:07 +09:00
|
|
|
tokio_rt = ["tokio", "napi4"]
|
2022-01-23 19:43:37 +09:00
|
|
|
tokio_signal = ["tokio/signal"]
|
|
|
|
tokio_stats = ["tokio/stats"]
|
|
|
|
tokio_sync = ["tokio/sync"]
|
|
|
|
tokio_test_util = ["tokio/test-util"]
|
|
|
|
tokio_time = ["tokio/time"]
|
2020-07-08 01:59:09 +09:00
|
|
|
|
2020-07-15 01:43:20 +09:00
|
|
|
[dependencies]
|
2021-09-23 02:29:09 +09:00
|
|
|
ctor = "0.1"
|
2021-12-22 00:24:07 +09:00
|
|
|
lazy_static = "1"
|
2022-05-10 18:29:18 +09:00
|
|
|
thread_local = "1"
|
2022-05-06 22:16:35 +09:00
|
|
|
|
|
|
|
[dependencies.napi-sys]
|
2022-05-10 23:27:27 +09:00
|
|
|
version = "2.2.2"
|
2022-05-06 22:16:35 +09:00
|
|
|
path = "../sys"
|
2020-07-15 01:43:20 +09:00
|
|
|
|
2020-09-03 20:11:30 +09:00
|
|
|
[dependencies.encoding_rs]
|
|
|
|
optional = true
|
2020-10-11 22:36:14 +09:00
|
|
|
version = "0.8"
|
2020-09-03 20:11:30 +09:00
|
|
|
|
2022-02-10 04:50:46 +09:00
|
|
|
[dependencies.chrono]
|
|
|
|
optional = true
|
|
|
|
version = "0.4"
|
|
|
|
|
2020-07-08 01:59:09 +09:00
|
|
|
[dependencies.tokio]
|
2020-10-16 21:58:56 +09:00
|
|
|
features = ["rt", "rt-multi-thread", "sync"]
|
2020-07-08 01:59:09 +09:00
|
|
|
optional = true
|
2021-02-07 01:08:38 +09:00
|
|
|
version = "1"
|
2020-07-08 01:59:09 +09:00
|
|
|
|
2020-08-26 01:07:27 +09:00
|
|
|
[dependencies.serde]
|
|
|
|
optional = true
|
2020-10-11 22:36:14 +09:00
|
|
|
version = "1"
|
2020-08-26 01:07:27 +09:00
|
|
|
|
|
|
|
[dependencies.serde_json]
|
|
|
|
optional = true
|
2020-10-11 22:36:14 +09:00
|
|
|
version = "1"
|