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"
|
2020-10-11 22:36:14 +09:00
|
|
|
edition = "2018"
|
|
|
|
keywords = ["NodeJS", "FFI", "NAPI", "n-api"]
|
|
|
|
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"
|
2020-10-11 22:36:14 +09:00
|
|
|
version = "0.5.1"
|
2020-02-18 22:09:17 +09:00
|
|
|
|
2020-07-03 01:31:50 +09:00
|
|
|
[features]
|
2020-10-11 22:36:14 +09:00
|
|
|
latin1 = ["encoding_rs"]
|
2020-07-03 01:31:50 +09:00
|
|
|
libuv = ["futures"]
|
2020-08-26 01:07:27 +09:00
|
|
|
serde-json = ["serde", "serde_json"]
|
2020-10-11 22:36:14 +09:00
|
|
|
tokio_rt = ["futures", "tokio", "once_cell"]
|
2020-07-08 01:59:09 +09:00
|
|
|
|
2020-07-15 01:43:20 +09:00
|
|
|
[dependencies]
|
2020-10-11 22:36:14 +09:00
|
|
|
napi-sys = {version = "0.4", path = "../sys"}
|
2020-07-15 01:43:20 +09:00
|
|
|
|
2020-10-31 10:24:19 +09:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
|
|
winapi = "0.3.9"
|
|
|
|
|
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.futures]
|
|
|
|
optional = true
|
2020-10-11 22:36:14 +09:00
|
|
|
version = "0.3"
|
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
|
2020-10-16 21:58:56 +09:00
|
|
|
version = "0.3"
|
2020-07-08 01:59:09 +09:00
|
|
|
|
|
|
|
[dependencies.once_cell]
|
|
|
|
optional = true
|
2020-10-11 22:36:14 +09:00
|
|
|
version = "1.4"
|
2020-07-03 01:31:50 +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"
|
2020-07-03 01:31:50 +09:00
|
|
|
|
2020-02-18 22:09:17 +09:00
|
|
|
[build-dependencies]
|
2020-10-11 22:36:14 +09:00
|
|
|
napi-build = {version = "0.2", path = "../build"}
|
2020-08-15 19:31:52 +09:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
2020-09-03 21:38:28 +09:00
|
|
|
all-features = true
|
2020-10-11 22:36:14 +09:00
|
|
|
rustc-args = ["--cfg", "napidocsrs"]
|