73a704a19e
* feat(napi): keep stack traces in deferred context * chore: reformat code Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com> * chore: use napi wrappers Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com> * test(napi): add test for deferred trace Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com> * chore: fix format Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com> --------- Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com>
44 lines
881 B
TOML
44 lines
881 B
TOML
[package]
|
|
authors = ["LongYinan <lynweklm@gmail.com>"]
|
|
edition = "2021"
|
|
name = "napi-examples"
|
|
publish = false
|
|
version = "0.1.0"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[features]
|
|
snmalloc = ["snmalloc-rs"]
|
|
|
|
[dependencies]
|
|
chrono = "0.4"
|
|
futures = "0.3"
|
|
napi = { path = "../../crates/napi", default-features = false, features = [
|
|
"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" }
|
|
serde = "1"
|
|
serde_derive = "1"
|
|
serde_json = "1"
|
|
tokio = { version = "1.20.0", features = ["full"] }
|
|
|
|
[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"
|