napi-rs/examples/napi/Cargo.toml

69 lines
1.4 KiB
TOML
Raw Permalink 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"]
dyn-symbols = ["napi/dyn-symbols"]
2022-12-09 19:56:50 +09:00
[dependencies]
chrono = "0.4"
2021-11-01 00:32:40 +09:00
futures = "0.3"
napi-derive = { path = "../../crates/macro", features = ["type-def"] }
napi-shared = { path = "../napi-shared" }
serde = "1"
serde_derive = "1"
serde_json = "1"
indexmap = "2"
[target.'cfg(not(target_family = "wasm"))'.dependencies]
napi = { path = "../../crates/napi", default-features = false, features = [
"napi9",
2022-02-10 20:00:38 +09:00
"serde-json",
"experimental",
"latin1",
"chrono_date",
"object_indexmap",
"tokio",
2022-02-10 20:00:38 +09:00
"async",
"tokio_rt",
"tokio_fs",
"tokio_macros",
"deferred_trace",
] }
tokio = { version = "1", features = ["rt", "time"] }
[target.'cfg(target_family = "wasm")'.dependencies]
napi = { path = "../../crates/napi", default-features = false, features = [
"napi9",
"serde-json",
2022-02-10 20:00:38 +09:00
"experimental",
"latin1",
"chrono_date",
"object_indexmap",
"tokio",
"async",
"tokio_rt",
"tokio_macros",
"tokio_sync",
"deferred_trace",
] }
tokio = { version = "1", default-features = false, features = ["rt", "time"] }
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"