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 whenever disco-rs is added without default-features = false somewhere in the dependency tree.

no-std = rand_xorshift

Enables no-std of cde

std default

Enables std of cde, std and std_rng of rand

alloc

Enables alloc of cde and rand

rand:

Option: "alloc" enables support for Vec and Box when not using "std"

preselect = rand_xorshift

Enables cde and getrandom of rand

rand:

Option: use getrandom package for seeding

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