Cargo Features
[dependencies]
getrandom_or_panic = { version = "0.0.3", default-features = false, features = ["std", "alloc", "getrandom"] }
- default = getrandom, std
-
These default features are set whenever
getrandom_or_panic
is added without
somewhere in the dependency tree.default-features = false - std default = alloc, getrandom, rand
-
Affects
getrandom_or_panic::getrandom_or_panic
… - alloc std
-
rand_core:
enables Vec and Box support without std
- getrandom default std
-
Enables getrandom of rand_core
Affects
getrandom_or_panic::getrandom_or_panic
,getrandom_or_panic::getrandom_or_panic
…
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.