Cargo Features

[dependencies]
yuuang-test-napi = { version = "1.7.6", default-features = false, features = ["latin1", "napi1", "napi2", "napi3", "napi4", "napi5", "napi6", "napi7", "napi8", "serde-json", "tokio_rt"] }
default = napi3

for most Node.js users

latin1 = encoding_rs
napi1 napi2?
napi2 napi3 = napi1
napi3 default napi4? = napi2

Enables napi3 of napi-sys ^1

napi4 napi5? tokio_rt? = napi3

Enables napi4 of napi-sys ^1

Affects yuuang-test-napi::threadsafe_function, env::shutdown_tokio_rt

napi5 napi6? = napi4

Enables napi5 of napi-sys ^1

Affects object::FinalizeContext

napi6 napi7? = napi5

Enables napi6 of napi-sys ^1

Affects object::KeyCollectionMode, object::KeyFilter, object::KeyConversion

napi7 napi8? = napi6

Enables napi7 of napi-sys ^1

napi8 = napi7

Enables napi8 of napi-sys ^1

serde-json = serde, serde_json
tokio_rt = napi4, once_cell, tokio

Affects env::shutdown_tokio_rt

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

encoding_rs latin1?
once_cell tokio_rt?
serde serde-json?
serde_json serde-json?
tokio tokio_rt?