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 wheneverya-rand
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
-
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