Cargo Features
rand_core has no features set by default.
[dependencies]
rand_core = { version = "0.9.0-beta.0", features = ["std", "alloc", "os_rng", "serde"] }
- std = alloc
-
Enables std of optional getrandom
getrandom:
Implement std-only traits for getrandom::Error
Affects
rand_core::TryRngCore.read_adapter
,rand_core::RngReadAdapter
… - alloc std?
-
enables Vec and Box support without std
- os_rng
-
Enables getrandom
Affects
rand_core::SeedableRng.from_os_rng
,rand_core::SeedableRng.try_from_os_rng
… - serde
-
enables serde for BlockRng wrapper
Enables serde