Cargo Features

[dependencies]
password-hash = { version = "0.6.0-pre.0", default-features = false, features = ["std", "alloc", "getrandom"] }
default = rand_core

The rand_core feature is set by default whenever password-hash is added without default-features = false somewhere in the dependency tree.

std = alloc

Enables std of base64ct and rand_core

rand_core:

optional dependencies

alloc std?

Enables alloc of base64ct

Affects password-hash::PasswordHashString

getrandom

Enables getrandom of rand_core

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.

rand_core default getrandom? std?