Cargo Features

[dependencies]
argon2 = { version = "0.6.0-pre.1", default-features = false, features = ["std", "alloc", "rand", "simple", "zeroize"] }
default = alloc, password-hash, rand

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

std = alloc

Enables std of password-hash

optional dependencies

alloc default std?

Enables alloc of password-hash

rand default

Enables rand_core of password-hash

simple = password-hash

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.

password-hash default alloc rand simple? std?

Affects algorithm::ARGON2D_IDENT, algorithm::ARGON2I_IDENT, algorithm::ARGON2ID_IDENT

zeroize implicit feature