Cargo Features

product-os-random has no features set by default.

product-os-random = { version = "0.0.16", features = ["all", "constrained", "custom", "names", "last_names"] }
default all?

These default features are set whenever product-os-random is added without default-features = false somewhere in the dependency tree.

Enables std of no-std-compat, getrandom, std and std_rng of rand

all = constrained, custom, default
constrained all?

Enables alloc of rand


Option: "alloc" enables support for Vec and Box when not using "std"

custom all?

Enables alloc of rand, mutex and spin_mutex of spin and custom of getrandom


Feature to enable custom RNG implementations

Affects product-os-random::CustomRng, product-os-random::RngCrypto, product-os-random::CustomCryptoRng

words nouns adjectives names
first_names last_names = inflections

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.

spin custom?
rand default constrained? custom?
getrandom custom?
inflections first_names? last_names?