Cargo Features
[dependencies]
hotdrink-wasm = { version = "0.1.3", default-features = false, features = ["thread", "console_error_panic_hook"] }
Enable console_error_panic_hook (and wee_alloc if I can make it work again)
- default = console_error_panic_hook
-
The
console_error_panic_hook
feature is set by default wheneverhotdrink-wasm
is added without
somewhere in the dependency tree.default-features = false - thread
-
Affects
event::event_listener
,hotdrink-wasm::bench_web_worker_init
,macros::constraint_system_wrapper_threaded
,thread::worker
…
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.