Cargo Features
[dependencies]
deterministic-bloom-wasm = { version = "0.1.0", default-features = false, features = ["full", "js", "web"] }
- default = js
-
The
js
feature is set by default wheneverdeterministic-bloom-wasm
is added without
somewhere in the dependency tree.default-features = false - full = js, web
- js default full? = console_error_panic_hook, js-sys, wasm-bindgen, wasm-bindgen-futures
- web full? = web-sys
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.
- console_error_panic_hook js
-
Enables console_error_panic_hook
The
console_error_panic_hook
crate provides better debugging of panics by logging them withconsole.error
. This is great for development, but requires all thestd::fmt
andstd::panicking
infrastructure, so isn't great for code size when deploying. - js-sys js
- wasm-bindgen js
- wasm-bindgen-futures js
- web-sys web?