Cargo Features

turborand = { version = "0.10.1", default-features = false, features = ["std", "alloc", "fmt", "atomic", "wyrand", "chacha", "rand", "serialize"] }
default = fmt, std, wyrand

These default features are set whenever turborand is added without default-features = false somewhere in the dependency tree.

std default = alloc

Enables Default and new constructors

Enables getrandom

alloc std

Enables Vec methods and Box support without explicit std

Affects traits::TurboRand.sample_multiple, traits::TurboRand.sample_multiple_mut, traits::TurboRand.sample_multiple_iter

fmt default serialize?

Enables Debug support, required for testing

atomic = wyrand

Enables AtomicRng

Affects rng::AtomicRng, turborand::rng

wyrand default atomic?

Enables Rng

Affects turborand::rng


Enables ChaChaRng

Enables bytemuck

Affects turborand::chacha_rng


Enables compatibility wrappers for interop with rand

Enables rand_core

Affects turborand::compatibility

serialize = fmt

Enables serialisation/deserialisation

Enables serde