Cargo Features

[dependencies]
nanorand = { version = "0.8.0", default-features = false, features = ["std", "alloc", "entropy", "tls", "wyrand", "pcg64", "chacha", "rdseed", "zeroize", "getrandom"] }
default = chacha, entropy, pcg64, std, tls, wyrand

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

std default rdseed? tls = alloc

Affects entropy::backup

alloc std

Affects nanorand::buffer

entropy default tls

Affects nanorand::entropy

tls default = entropy, std, wyrand

Affects nanorand::tls

wyrand default tls

Affects rand::wyrand

pcg64 default

Affects rand::pcg64

chacha default

Affects rand::chacha

rdseed = std

Affects entropy::rdseed

Features from optional dependencies

zeroize implicit feature
getrandom x86 x86_64 not wasm32 x86 x86_64 wasm32 implicit feature

Enables getrandom

getrandom:

A small cross-platform library for retrieving random data from system source

Affects entropy::system, nanorand::entropy