Cargo Features

rand_core has no features set by default.

[dependencies]
rand_core = { version = "0.9.0-alpha.1", features = ["std", "alloc", "serde1", "getrandom"] }
std = alloc

Enables std of optional getrandom

getrandom:

Implement std-only traits for getrandom::Error

Affects rand_core::RngCore.read_adapter, rand_core::RngReadAdapter

alloc std?

enables Vec and Box support without std

serde1 = serde

enables serde for BlockRng wrapper

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.

serde serde1?
getrandom implicit feature

Enables getrandom

getrandom:

A small cross-platform library for retrieving random data from system source

Affects rand_core::SeedableRng.from_entropy