]> git.proxmox.com Git - proxmox.git/blob - proxmox/Cargo.toml
proxmox: loosen version requirement to api macro crate
[proxmox.git] / proxmox / Cargo.toml
1 [package]
2 name = "proxmox"
3 edition = "2018"
4 version = "0.7.0"
5 authors = [
6 "Dietmar Maurer <dietmar@proxmox.com>",
7 "Wolfgang Bumiller <w.bumiller@proxmox.com>",
8 ]
9 license = "AGPL-3"
10 description = "Proxmox library"
11
12 exclude = [ "debian" ]
13
14 [[examples]]
15 name = "u2ftest"
16 required-features = [ "tokio", "u2f" ]
17
18 [dependencies]
19 # General dependencies
20 anyhow = "1.0"
21 lazy_static = "1.4"
22 libc = "0.2"
23 nix = "0.19"
24
25 # tools module:
26 base32 = { version = "0.4", optional = true }
27 base64 = "0.12"
28 endian_trait = { version = "0.6", features = ["arrays"] }
29 regex = "1.2"
30 serde = { version = "1.0", features = ["derive"] }
31 serde_json = "1.0"
32 #valgrind_request = { git = "https://github.com/edef1c/libvalgrind_request", version = "1.1.0", optional = true }
33 # libc, nix, lazy_static
34
35 # sys module:
36 # libc, nix, lazy_static
37
38 # api module:
39 bytes = "0.5"
40 futures = { version = "0.3", optional = true }
41 http = "0.2"
42 hyper = { version = "0.13", optional = true }
43 percent-encoding = "2.1"
44 openssl = { version = "0.10", optional = true }
45 rustyline = "6"
46 serde_derive = "1.0"
47 textwrap = "0.11"
48 tokio = { version = "0.2", features = [], optional = true }
49 url = "2.1"
50 #regex, serde, serde_json
51
52 # Macro crates:
53 proxmox-api-macro = { path = "../proxmox-api-macro", optional = true, version = "0.2" }
54 proxmox-sortable-macro = { path = "../proxmox-sortable-macro", optional = true, version = "0.1.1" }
55
56 [features]
57 default = [ "cli", "router", "tfa", "u2f", "websocket" ]
58 sortable-macro = ["proxmox-sortable-macro"]
59
60 # api:
61 api-macro = ["proxmox-api-macro"]
62 test-harness = []
63 cli = [ "router", "hyper", "tokio" ]
64 router = [ "hyper", "tokio" ]
65 websocket = [ "futures", "hyper", "openssl", "tokio/sync", "tokio/io-util", "openssl" ]
66 tfa = [ "openssl" ]
67 u2f = [ "base32" ]
68
69 examples = ["tokio/macros", "u2f"]
70
71 # tools:
72 #valgrind = ["proxmox-tools/valgrind"]