Cargo Features
[dependencies]
dices = { version = "0.3.0", default-features = false, features = ["wasm", "nowasm", "console_error_panic_hook"] }
- default = nowasm
-
The
nowasm
feature is set by default wheneverdices
is added without
somewhere in the dependency tree.default-features = false - wasm
-
Enables serde, serde-wasm-bindgen ^0.4, wasm-bindgen, and web-sys
Affects
dice::JsDice
,dice::JsDistribution
,dice::JsFraction
,dices::greet
,wasm_safe::WasmSafeInstant
,wasm_safe::elapsed_millis
,wasm_safe::random_number_between_0_and_1
… - nowasm default
-
Enables rand
- console_error_panic_hook
-
Enables console_error_panic_hook