-
Notifications
You must be signed in to change notification settings - Fork 39
/
Cargo.toml
133 lines (107 loc) · 3.28 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[package]
name = "keepass"
description = "KeePass .kdbx database file parser"
edition = "2018"
homepage = "https://github.com/sseemayer/keepass-rs"
repository = "https://github.com/sseemayer/keepass-rs"
documentation = "https://docs.rs/keepass"
version = "0.0.0-placeholder-version"
authors = ["Stefan Seemayer <[email protected]>"]
license = "MIT"
readme = "README.md"
include = [
"src/",
"README.md",
"LICENSE",
]
[features]
utilities = ["anyhow", "clap", "rpassword", "serialization", "totp"]
serialization = ["serde", "serde_json", "chrono/serde"]
totp = ["totp-lite", "url", "base32"]
save_kdbx4 = []
challenge_response = ["sha1", "dep:challenge_response"]
_merge = []
default = []
[dependencies]
thiserror = "1"
# encoding and parsing
byteorder = "1"
flate2 = "1"
xml-rs = "0.8"
base64 = "0.22"
hex-literal = "0.4"
secstr = "0.5"
chrono = { version = "0.4.23", default-features = false, features = [
"serde",
"clock",
"std",
] }
# cryptography
rust-argon2 = "2.0"
sha1 = { version = "0.10", optional = true }
sha2 = "0.10"
aes = "0.8"
block-modes = "0.9"
hmac = "0.12"
salsa20 = "0.10"
chacha20 = "0.9"
cipher = { version = "0.4", features = ["std"] }
twofish = "0.7"
cbc = "0.1"
challenge_response = { version = "0.5", optional = true }
uuid = { version = "1.2", features = ["v4", "serde"] }
hex = { version = "0.4" }
getrandom = { version = "0.2", features = ["std"] }
zeroize = { version = "1", features = ["zeroize_derive"] }
# dependencies for command-line utilities
anyhow = { version = "1", optional = true }
clap = { version = "4", optional = true, features = ["derive"] }
rpassword = { version = "7", optional = true }
# dependencies for serialization (enabled by "serialization" feature)
serde = { version = "1", optional = true, features = ["derive"] }
serde_json = { version = "1", optional = true }
# dependencies for totp (enabled by "totp" feature)
totp-lite = { version = "2.0", optional = true }
url = { version = "2.2", optional = true }
base32 = { version = "0.5", optional = true }
[dev-dependencies]
rustfmt = "0.10"
[[bin]]
# parse a KeePass database and output as a JSON document
name = "kp-dump-json"
required-features = ["utilities"]
[[bin]]
# decrypt a KeePass database and output the inner XML document
name = "kp-dump-xml"
required-features = ["utilities"]
[[bin]]
# Purge the history items in the Database entries
name = "kp-purge-history"
required-features = ["utilities", "save_kdbx4"]
[[bin]]
# decrypt a KeePass database and show the contained data
name = "kp-show-db"
required-features = ["utilities"]
[[bin]]
# decrypt a KeePass database and show the TOTP value for an entry
name = "kp-show-otp"
required-features = ["utilities"]
[[bin]]
# get the version of a KeePass database file
name = "kp-get-version"
required-features = ["utilities"]
[[bin]]
# parse and write a KeePass database (to check if all fields are kept)
name = "kp-rewrite"
required-features = ["utilities", "save_kdbx4"]
[[bin]]
name = "kp-yk-add"
required-features = ["utilities", "save_kdbx4", "challenge_response"]
[[bin]]
name = "kp-yk-remove"
required-features = ["utilities", "save_kdbx4", "challenge_response"]
[[bin]]
name = "kp-yk-recover"
required-features = ["utilities", "save_kdbx4", "challenge_response"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin_include)'] }