Cargo Features
[dependencies]
pbkdf2 = { version = "0.13.0-rc.9", default-features = false, features = ["alloc", "kdf", "getrandom", "mcf", "phc", "rand_core", "sha1", "sha2"] }
- default = hmac
-
The
hmacfeature is set by default wheneverpbkdf2is added withoutsomewhere in the dependency tree.default-features = false - alloc
-
Enables alloc of optional mcf and optional password-hash
- kdf = sha2
-
Enables kdf
- getrandom
-
Enables getrandom of password-hash
- mcf = password-hash, sha2
-
Enables mcf
Affects
pbkdf2::mcf… - phc = sha2
-
Enables phc of password-hash
Affects
pbkdf2::phc… - rand_core
-
Enables rand_core of password-hash
- sha1 = hmac
-
Enables sha1
Affects
pbkdf2::pbkdf2_hmac_with_params,pbkdf2::Pbkdf2… - sha2 kdf? mcf? phc? = hmac
-
Enables sha2
Affects
pbkdf2::pbkdf2_hmac_with_params,pbkdf2::Pbkdf2…
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.