Cargo Features
[dependencies]
disco-rs = { version = "0.6.0", default-features = false, features = ["no-std", "std", "alloc", "preselect", "rand_chacha"] }
- default = std
-
The
std
feature is set by default wheneverdisco-rs
is added without
somewhere in the dependency tree.default-features = false - no-std = rand_xorshift
- std default
- alloc
-
rand:
Option: "alloc" enables support for Vec and Box when not using "std"
- preselect = rand_xorshift
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.
- rand alloc? preselect? std
- rand_xorshift no-std? preselect?
- rand_chacha implicit feature
-
Enables rand_chacha
rand_chacha:
ChaCha random number generator