napi-rs/examples/napi/Cargo.toml

45 lines
881 B
TOML
Raw Normal View History

[package]
authors = ["LongYinan <lynweklm@gmail.com>"]
2021-12-08 13:52:33 +09:00
edition = "2021"
name = "napi-examples"
2021-11-01 00:32:40 +09:00
publish = false
version = "0.1.0"
[lib]
crate-type = ["cdylib"]
2022-12-09 19:56:50 +09:00
[features]
snmalloc = ["snmalloc-rs"]
[dependencies]
chrono = "0.4"
2021-11-01 00:32:40 +09:00
futures = "0.3"
napi = { path = "../../crates/napi", default-features = false, features = [
2022-02-10 20:00:38 +09:00
"tokio_fs",
"napi8",
"tokio_rt",
"serde-json",
"async",
"experimental",
"latin1",
"chrono_date",
"deferred_trace",
] }
napi-derive = { path = "../../crates/macro", features = ["type-def"] }
napi-shared = { path = "../napi-shared" }
2021-09-24 18:01:54 +09:00
serde = "1"
serde_derive = "1"
serde_json = "1"
tokio = { version = "1.20.0", features = ["full"] }
2022-12-09 19:56:50 +09:00
[dependencies.snmalloc-rs]
version = "0.3"
features = ["build_cc", "local_dynamic_tls"]
optional = true
[build-dependencies]
napi-build = { path = "../../crates/build" }
[dev-dependencies]
trybuild = "1.0"