2020-02-18 21:09:17 +08:00
|
|
|
[package]
|
|
|
|
authors = ["Nathan Sobo <nathan@github.com>", "Yinan Long <lynweklm@gmail.com>"]
|
2020-03-16 14:26:30 +08:00
|
|
|
description = "N-API bindings"
|
2020-10-11 21:36:14 +08:00
|
|
|
edition = "2018"
|
2021-03-31 21:51:12 +08:00
|
|
|
keywords = ["NodeJS", "Node", "FFI", "NAPI", "n-api"]
|
2020-10-11 21:36:14 +08:00
|
|
|
license = "MIT"
|
|
|
|
name = "napi"
|
2020-03-16 14:26:30 +08:00
|
|
|
readme = "README.md"
|
2020-07-15 01:23:23 +08:00
|
|
|
repository = "https://github.com/napi-rs/napi-rs"
|
2021-09-10 09:40:07 +08:00
|
|
|
version = "1.7.7"
|
2020-02-18 21:09:17 +08:00
|
|
|
|
2020-07-03 00:31:50 +08:00
|
|
|
[features]
|
2021-05-25 11:03:50 +08:00
|
|
|
default = ["napi3"] # for most Node.js users
|
2020-10-11 21:36:14 +08:00
|
|
|
latin1 = ["encoding_rs"]
|
2020-11-10 11:09:25 +08: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 17:19:45 +08:00
|
|
|
napi8 = ["napi7", "napi-sys/napi8"]
|
2020-08-26 00:07:27 +08:00
|
|
|
serde-json = ["serde", "serde_json"]
|
2021-06-02 23:03:47 +08:00
|
|
|
tokio_rt = ["tokio", "once_cell", "napi4"]
|
2020-07-08 00:59:09 +08:00
|
|
|
|
2020-07-15 00:43:20 +08:00
|
|
|
[dependencies]
|
2020-12-30 00:56:08 +08:00
|
|
|
napi-sys = {version = "1", path = "../sys"}
|
2020-07-15 00:43:20 +08:00
|
|
|
|
2020-10-30 18:24:19 -07:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
2021-01-04 11:01:13 +08:00
|
|
|
winapi = {version = "0.3.9", features = ["winuser", "minwindef", "ntdef", "libloaderapi"]}
|
2020-10-30 18:24:19 -07:00
|
|
|
|
2020-09-03 19:11:30 +08:00
|
|
|
[dependencies.encoding_rs]
|
|
|
|
optional = true
|
2020-10-11 21:36:14 +08:00
|
|
|
version = "0.8"
|
2020-09-03 19:11:30 +08:00
|
|
|
|
2020-07-08 00:59:09 +08:00
|
|
|
[dependencies.tokio]
|
2020-10-16 20:58:56 +08:00
|
|
|
features = ["rt", "rt-multi-thread", "sync"]
|
2020-07-08 00:59:09 +08:00
|
|
|
optional = true
|
2021-02-07 00:08:38 +08:00
|
|
|
version = "1"
|
2020-07-08 00:59:09 +08:00
|
|
|
|
|
|
|
[dependencies.once_cell]
|
|
|
|
optional = true
|
2021-04-29 21:54:00 +08:00
|
|
|
version = "1"
|
2020-07-03 00:31:50 +08:00
|
|
|
|
2020-08-26 00:07:27 +08:00
|
|
|
[dependencies.serde]
|
|
|
|
optional = true
|
2020-10-11 21:36:14 +08:00
|
|
|
version = "1"
|
2020-08-26 00:07:27 +08:00
|
|
|
|
|
|
|
[dependencies.serde_json]
|
|
|
|
optional = true
|
2020-10-11 21:36:14 +08:00
|
|
|
version = "1"
|
2020-07-03 00:31:50 +08:00
|
|
|
|
2020-08-15 18:31:52 +08:00
|
|
|
[package.metadata.docs.rs]
|
2020-09-03 20:38:28 +08:00
|
|
|
all-features = true
|