Cargo Features
[dependencies]
ambient_sys = { version = "0.3.1", default-features = false, features = ["console_error_panic_hook"] }
- default = console_error_panic_hook
-
The
console_error_panic_hookfeature is set by default wheneverambient_sysis added withoutsomewhere in the dependency tree.default-features = false
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_hookcrate provides better debugging of panics by logging them withconsole.error. This is great for development, but requires all thestd::fmtandstd::panickinginfrastructure, so isn't great for code size when deploying.