Cargo Features
[dependencies]
ohos-node-bindgen = { version = "6.0.3", default-features = false, features = ["node", "serde-json", "uuid"] }
- default = node
-
The
node
feature is set by default wheneverohos-node-bindgen
is added without
somewhere in the dependency tree.default-features = false - node default = nj-core, nj-derive, nj-sys
-
Affects
ohos-node-bindgen::core
,ohos-node-bindgen::sys
,ohos-node-bindgen::init
,ohos-node-bindgen::derive
… - serde-json
-
Enables serde-json of ohos-nj-core
- uuid
-
Enables convert-uuid of ohos-nj-core
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.
- nj-sys node
-
Enables oh-napi-sys
- nj-core node serde-json? uuid?
-
Enables ohos-nj-core
- nj-derive node
-
Enables ohos-nj-derive