]> git.proxmox.com Git - proxmox.git/blob - proxmox-tfa/Cargo.toml
9e60817c891adaef805e8989dfbfe78e1626de3b
[proxmox.git] / proxmox-tfa / Cargo.toml
1 [package]
2 name = "proxmox-tfa"
3 version = "4.1.0"
4 authors.workspace = true
5 edition.workspace = true
6 license.workspace = true
7 repository.workspace = true
8 description = "tfa implementation for totp and u2f"
9
10 exclude.workspace = true
11
12 [dependencies]
13 serde.workspace = true
14
15 anyhow = { workspace = true, optional = true }
16 base32 = { workspace = true, optional = true }
17 base64 = { workspace = true, optional = true }
18 hex = { workspace = true, optional = true }
19 libc = { workspace = true, optional = true }
20 log = { workspace = true, optional = true }
21 openssl = { workspace = true, optional = true }
22 percent-encoding = { workspace = true, optional = true }
23 serde_json = { workspace = true, optional = true }
24 serde_plain = { workspace = true, optional = true }
25 url = { workspace = true, optional = true }
26 webauthn-rs = { workspace = true, optional = true }
27
28 proxmox-schema = { workspace = true, features = [ "api-macro" ], optional = true }
29 proxmox-time = { workspace = true, optional = true }
30 proxmox-uuid = { workspace = true, optional = true }
31
32 [features]
33 default = [ "totp" ]
34 types = [ "dep:serde_plain", "serde/derive" ]
35 u2f = [ "dep:base64", "dep:libc", "dep:openssl", "dep:serde_json", "serde/derive" ]
36 api = [
37 "totp",
38 "types",
39 "u2f",
40 "dep:anyhow",
41 "dep:log",
42 "dep:proxmox-time",
43 "dep:proxmox-uuid",
44 "dep:url",
45 "dep:webauthn-rs",
46 ]
47 api-types = [ "types", "dep:proxmox-schema" ]
48 totp = [ "dep:base32", "dep:hex", "dep:openssl", "dep:percent-encoding", "dep:serde_plain" ]