Cargo Features

[dependencies]
napi-derive = { version = "3.0.0-beta.2", default-features = false, features = ["full", "compat-mode", "noop", "strict", "type-def"] }
default = strict, type-def

These default features are set whenever napi-derive is added without default-features = false somewhere in the dependency tree.

full = compat-mode, strict, type-def
compat-mode full?

Affects napi-derive::contextless_function, napi-derive::js_function, napi-derive::module_exports

noop

Enables noop of napi-derive-backend

strict default full?

Enables strict of napi-derive-backend

type-def default full? = ctor

Enables type-def of napi-derive-backend

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.

ctor type-def