napi-rs/napi/Cargo.toml

46 lines
945 B
TOML
Raw Normal View History

2020-02-18 22:09:17 +09:00
[package]
name = "napi"
2020-08-24 21:10:25 +09:00
version = "0.4.13"
2020-02-18 22:09:17 +09:00
authors = ["Nathan Sobo <nathan@github.com>", "Yinan Long <lynweklm@gmail.com>"]
license = "MIT"
2020-03-16 15:26:30 +09:00
description = "N-API bindings"
readme = "README.md"
2020-07-15 02:23:23 +09:00
repository = "https://github.com/napi-rs/napi-rs"
2020-04-26 20:57:31 +09:00
keywords = ["NodeJS", "FFI", "NAPI", "n-api"]
edition = "2018"
2020-02-18 22:09:17 +09:00
[features]
libuv = ["futures"]
2020-07-08 01:59:09 +09:00
tokio_rt = ["futures", "tokio", "once_cell"]
2020-08-26 01:07:27 +09:00
serde-json = ["serde", "serde_json"]
2020-07-08 01:59:09 +09:00
[dependencies]
napi-sys = { version = "0.4", path = "../sys" }
2020-07-08 01:59:09 +09:00
[dependencies.futures]
version = "0.3"
optional = true
[dependencies.tokio]
version = "0.2"
features = ["rt-core", "rt-threaded", "sync"]
optional = true
[dependencies.once_cell]
version = "1.4"
optional = true
2020-08-26 01:07:27 +09:00
[dependencies.serde]
version = "1"
optional = true
[dependencies.serde_json]
version = "1"
optional = true
2020-02-18 22:09:17 +09:00
[build-dependencies]
2020-07-15 02:36:02 +09:00
napi-build = { version = "0.2", path = "../build" }
2020-08-15 19:31:52 +09:00
[package.metadata.docs.rs]
2020-08-24 21:10:11 +09:00
rustc-args = ["--cfg", "napidocsrs"]