Cargo Features
[dependencies]
napi-derive = { version = "3.0.0-alpha.19", default-features = false, features = ["full", "compat-mode", "noop", "strict", "type-def"] }
- default = compat-mode, full
-
These default features are set whenever
napi-derive
is added without
somewhere in the dependency tree.default-features = false - full default = strict, type-def
- compat-mode default
-
Affects
napi-derive::contextless_function
,napi-derive::js_function
,napi-derive::module_exports
… - noop
-
Enables noop of napi-derive-backend
- strict full
-
Enables strict of napi-derive-backend
- type-def full
-
Enables type-def of napi-derive-backend