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