napi-rs/crates/napi/Cargo.toml

63 lines
1.5 KiB
TOML
Raw Normal View History

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"
2021-12-17 17:56:45 +09:00
version = "2.0.0"
2020-02-18 22:09:17 +09:00
[features]
2021-11-01 00:35:39 +09:00
async = ["tokio_rt"]
compat-mode = []
default = ["napi3", "compat-mode"] # for most Node.js users
experimental = ["napi-sys/experimental"]
2021-12-03 17:30:31 +09:00
full = ["latin1", "napi8", "async", "serde-json", "experimental"]
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"]
tokio_rt = ["tokio", "once_cell", "napi4"]
2020-07-08 01:59:09 +09:00
[dependencies]
ctor = "0.1"
napi-sys = {version = "2.1.0", path = "../sys"}
2020-10-31 10:24:19 +09:00
[target.'cfg(windows)'.dependencies]
windows = {version = "0.29", features = ["Win32_System_WindowsProgramming", "Win32_System_LibraryLoader", "Win32_Foundation"]}
2020-10-31 10:24:19 +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
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
[dependencies.once_cell]
optional = true
2021-04-29 22:54:00 +09:00
version = "1"
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"
2020-08-15 19:31:52 +09:00
[package.metadata.docs.rs]
2020-09-03 21:38:28 +09:00
all-features = true
2021-11-01 00:35:39 +09:00
[package.metadata.workspaces]
independent = true