Cargo Features
action-validator has no features set by default.
[dependencies]
action-validator = { version = "0.6.0", features = ["js"] }
- js = console_error_panic_hook
-
Install 4.x once published to crates.io
Affects
log::log
,log::error
,log::warn
,utils::set_panic_hook
…
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.