Cargo Features

KeePass has no features set by default.

[dependencies]
keepass = { version = "0.7.10", features = ["utilities", "serialization", "totp", "save_kdbx4", "challenge_response"] }
utilities = anyhow, clap, rpassword, serialization, totp

Required by kp-dump-json, kp-dump-xml, kp-get-version, kp-purge-history, kp-rewrite, kp-show-db, kp-show-otp, kp-yk-add, kp-yk-recover and kp-yk-remove binaries

serialization utilities? = serde, serde_json

Enables chrono

totp utilities? = base32, totp-lite, url
save_kdbx4

Required by kp-purge-history, kp-rewrite, kp-yk-add, kp-yk-recover and kp-yk-remove binaries

challenge_response = sha1

Enables challenge_response

Affects key::ChallengeResponseKey

Required by kp-yk-add, kp-yk-recover and kp-yk-remove binaries

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.

sha1 challenge_response?
anyhow utilities?

Enables anyhow

dependencies for command-line utilities

clap utilities?
rpassword utilities?
serde serialization?

Enables serde

dependencies for serialization (enabled by "serialization" feature)

serde_json serialization?
totp-lite totp?

Enables totp-lite

dependencies for totp (enabled by "totp" feature)

url totp?
base32 totp?