2021-09-23 02:29:09 +09:00
|
|
|
[package]
|
|
|
|
authors = ["LongYinan <lynweklm@gmail.com>"]
|
2021-12-08 13:52:33 +09:00
|
|
|
edition = "2021"
|
2021-09-23 02:29:09 +09:00
|
|
|
name = "napi-examples"
|
2021-11-01 00:32:40 +09:00
|
|
|
publish = false
|
2021-09-23 02:29:09 +09:00
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib"]
|
|
|
|
|
2022-12-09 19:56:50 +09:00
|
|
|
[features]
|
|
|
|
snmalloc = ["snmalloc-rs"]
|
|
|
|
|
2021-09-23 02:29:09 +09:00
|
|
|
[dependencies]
|
2022-02-10 04:50:46 +09:00
|
|
|
chrono = "0.4"
|
2021-11-01 00:32:40 +09:00
|
|
|
futures = "0.3"
|
2023-11-02 13:57:11 +09:00
|
|
|
napi-derive = { path = "../../crates/macro", features = ["type-def"] }
|
|
|
|
napi-shared = { path = "../napi-shared" }
|
|
|
|
serde = "1"
|
|
|
|
serde_derive = "1"
|
|
|
|
serde_json = "1"
|
2024-02-15 16:43:21 +09:00
|
|
|
indexmap = "2"
|
2023-11-02 13:57:11 +09:00
|
|
|
|
2023-11-20 18:10:58 +09:00
|
|
|
[target.'cfg(not(target_family = "wasm"))'.dependencies]
|
2022-02-10 04:50:46 +09:00
|
|
|
napi = { path = "../../crates/napi", default-features = false, features = [
|
2023-09-14 07:45:14 +09:00
|
|
|
"napi9",
|
2022-02-10 20:00:38 +09:00
|
|
|
"serde-json",
|
2023-11-02 13:57:11 +09:00
|
|
|
"experimental",
|
|
|
|
"latin1",
|
|
|
|
"chrono_date",
|
2024-02-15 16:43:21 +09:00
|
|
|
"object_indexmap",
|
2023-11-02 13:57:11 +09:00
|
|
|
"tokio",
|
2022-02-10 20:00:38 +09:00
|
|
|
"async",
|
2023-11-02 13:57:11 +09:00
|
|
|
"tokio_rt",
|
|
|
|
"tokio_fs",
|
|
|
|
"tokio_macros",
|
|
|
|
"deferred_trace",
|
|
|
|
] }
|
|
|
|
tokio = { version = "1", features = ["rt", "time"] }
|
|
|
|
|
2023-11-20 18:10:58 +09:00
|
|
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
2023-11-02 13:57:11 +09:00
|
|
|
napi = { path = "../../crates/napi", default-features = false, features = [
|
|
|
|
"napi9",
|
|
|
|
"serde-json",
|
2022-02-10 20:00:38 +09:00
|
|
|
"experimental",
|
|
|
|
"latin1",
|
2022-02-11 15:21:07 +09:00
|
|
|
"chrono_date",
|
2024-02-15 16:43:21 +09:00
|
|
|
"object_indexmap",
|
2023-11-02 13:57:11 +09:00
|
|
|
"tokio",
|
|
|
|
"async",
|
|
|
|
"tokio_rt",
|
|
|
|
"tokio_macros",
|
|
|
|
"tokio_sync",
|
2023-07-15 13:07:14 +09:00
|
|
|
"deferred_trace",
|
2022-02-10 04:50:46 +09:00
|
|
|
] }
|
2023-11-02 13:57:11 +09:00
|
|
|
tokio = { version = "1", default-features = false, features = ["rt", "time"] }
|
2021-09-23 02:29:09 +09:00
|
|
|
|
2022-12-09 19:56:50 +09:00
|
|
|
[dependencies.snmalloc-rs]
|
|
|
|
version = "0.3"
|
|
|
|
features = ["build_cc", "local_dynamic_tls"]
|
|
|
|
optional = true
|
|
|
|
|
2021-09-23 02:29:09 +09:00
|
|
|
[build-dependencies]
|
2022-02-10 04:50:46 +09:00
|
|
|
napi-build = { path = "../../crates/build" }
|
2022-05-21 14:53:40 +09:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
trybuild = "1.0"
|