Cargo Features
[dependencies]
lwk_wasm = { version = "0.8.0", default-features = false, features = ["serial", "console_error_panic_hook"] }
- default = console_error_panic_hook
-
The
console_error_panic_hook
feature is set by default wheneverlwk_wasm
is added without
somewhere in the dependency tree.default-features = false - serial = 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 default
-
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. - web-sys not wasm32 wasm32 serial?