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"
|
2022-02-10 04:50:46 +09:00
|
|
|
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",
|
2022-02-11 15:21:07 +09:00
|
|
|
"chrono_date",
|
2022-02-10 04:50:46 +09:00
|
|
|
] }
|
|
|
|
napi-derive = { path = "../../crates/macro", features = ["type-def"] }
|
2021-09-24 18:01:54 +09:00
|
|
|
serde = "1"
|
|
|
|
serde_derive = "1"
|
|
|
|
serde_json = "1"
|
2022-08-04 01:12:35 +09:00
|
|
|
tokio = { version = "1.20.0", features = ["full"] }
|
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"
|