Cargo Features

[dependencies]
libreauth = { version = "0.16.0", default-features = false, features = ["cbindings", "hash", "key", "oath", "oath-uri", "pass", "stderror"] }
default = hash, key, oath, pass, stderror

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

cbindings = libc
hash default oath pass = hmac, sha-1, sha2, sha3

Affects libreauth::hash

key default pass = base32, base64, getrandom, hex

Affects libreauth::key

oath default oath-uri? = base32, base64, hash, hex

Affects libreauth::oath

oath-uri = oath, url

Affects cbindings::libreauth_hotp_get_uri, cbindings::libreauth_totp_get_uri

pass default = base64, crypto-mac, hash, key, nom, pbkdf2, rust-argon2, unicode-normalization

Affects libreauth::pass

stderror default = thiserror

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.

base32 key oath
base64 key oath pass

Enables base64 ^0.21.0

crypto-mac pass
getrandom key
hex key oath
hmac hash
libc cbindings?
nom pass
pbkdf2 pass
rust-argon2 pass

Enables rust-argon2 ^1.0.0

sha-1 hash
sha2 hash
sha3 hash
thiserror stderror
unicode-normalization pass
url oath-uri?