Cargo Features

totp_rs has no features set by default.

totp-rs = { version = "5.5.1", features = ["otpauth", "qr", "serde_support", "gen_secret", "steam", "zeroize"] }
otpauth qr? = url, urlencoding

Affects totp-rs::TOTP.issuer, totp-rs::TOTP.account_name

qr = otpauth

Enables qrcodegen-image

serde_support = serde
gen_secret = rand

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde serde_support?
urlencoding otpauth?
url otpauth?
rand gen_secret?
zeroize implicit feature