Cargo Features

[dependencies]
ya-rand = { version = "1.0.0", default-features = false, features = ["std", "alloc", "nightly"] }
default = std

The std feature is set by default whenever ya-rand is added without default-features = false somewhere in the dependency tree.

std default = alloc

Enables std of getrandom

getrandom:

Implement std::error::Error for getrandom::Error and use std to retrieve OS error descriptions

Affects rng::YARandGenerator.f64_normal, rng::YARandGenerator.f64_normal_distribution, rng::YARandGenerator.f64_exponential, rng::YARandGenerator.f64_exponential_lambda

alloc std

Affects ya-rand::ya_rand_encoding, rng::SecureYARandGenerator.text

inline nightly