Cargo Features
[dependencies]
ya-rand = { version = "2.0.2", default-features = false, features = ["std", "alloc", "inline", "secure"] }
- default = secure, std
-
These default features are set whenever
ya-randis added withoutsomewhere in the dependency tree.default-features = false - std default = alloc
-
Enables std of getrandom ^0.3
getrandom:
Implement From<getrandom::Error> for std::io::Error and use std to retrieve OS error descriptions
Affects
rng::Generator.f64_normal,rng::Generator.f64_normal_distribution,rng::Generator.f64_exponential,rng::Generator.f64_exponential_lambda… - alloc std
-
Affects
rng::SecureGenerator.text,rng::Generator.shuffle_cloned,ya-rand::encoding… - inline
- secure default = chachacha
-
Affects
ya-rand::new_rng_secure,rng::SecureGenerator,ya-rand::encoding…
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.