Cargo Features
[dependencies]
node-html-parser = { version = "0.1.0", default-features = false, features = ["parallel", "wasm", "serde"] }
- default = parallel
-
The
parallelfeature is set by default whenevernode-html-parseris added withoutsomewhere in the dependency tree.default-features = false - parallel default = rayon
- wasm = console_error_panic_hook, wasm-bindgen
-
wasm feature: disable rayon usage by not enabling parallel, add wasm related helpers
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.
- wasm-bindgen wasm?
- rayon parallel
-
Enables rayon
rayon 放到可选
- console_error_panic_hook wasm?
- serde implicit feature
-
Enables serde
serde:
A generic serialization/deserialization framework