Cargo Features
moxie-web has no features set by default.
[dependencies]
moxie-web = { version = "0.1.0", features = ["default-features"] }
- default-features = console_error_panic_hook, wee_alloc
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-features?
-
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. - wee_alloc default-features?
-
Enables wee_alloc
wee_alloc
is a tiny allocator for wasm that is only ~1K in code size compared to the default allocator's ~10K. It is slower than the default allocator, however.