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 hmac feature is set by default whenever pbkdf2 is added without default-features = false somewhere in the dependency tree.

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.

hmac default sha1? sha2?

Enables hmac

optional dependencies

Affects pbkdf2::pbkdf2_hmac, pbkdf2::pbkdf2_hmac_array

password-hash getrandom? mcf? phc? rand_core?