Cargo Features
getrandom has no features set by default.
[dependencies]
getrandom = { version = "0.3.0-rc.0", features = ["std", "rustc-dep-of-std"] }
- std
-
Implement std::error::Error for getrandom::Error and use std to retrieve OS error descriptions
- rustc-dep-of-std = compiler_builtins, core
-
Unstable feature to support being a libstd dependency
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.
- compiler_builtins rustc-dep-of-std?
-
Enables compiler_builtins
When built as part of libstd
- core rustc-dep-of-std?
-
Enables rustc-std-workspace-core