Cargo Features
[dependencies]
argon2 = { version = "0.5.2", default-features = false, features = ["std", "alloc", "rand", "simple", "zeroize"] }
- default = alloc, password-hash, rand
-
These default features are set whenever
argon2
is added without
somewhere in the dependency tree.default-features = false - 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.
- password-hash default simple?
-
Affects
algorithm::ARGON2D_IDENT
,algorithm::ARGON2I_IDENT
,algorithm::ARGON2ID_IDENT
… - zeroize implicit feature