]> git.proxmox.com Git - proxmox.git/blobdiff - proxmox/Cargo.toml
proxmox: bump api-macro dependency
[proxmox.git] / proxmox / Cargo.toml
index 32787c5cae5e255e3eddaaaa9f11cabbc580feb6..f7ea9012861420cb502a5db95c6f3f30539be1e4 100644 (file)
@@ -1,7 +1,7 @@
 [package]
 name = "proxmox"
 edition = "2018"
-version = "0.1.25"
+version = "0.12.0"
 authors = [
     "Dietmar Maurer <dietmar@proxmox.com>",
     "Wolfgang Bumiller <w.bumiller@proxmox.com>",
@@ -16,11 +16,11 @@ exclude = [ "debian" ]
 anyhow = "1.0"
 lazy_static = "1.4"
 libc = "0.2"
-nix = "0.16"
+nix = "0.19.1"
 
 # tools module:
-base64 = "0.10"
-chrono = "0.4"
+base32 = { version = "0.4", optional = true }
+base64 = "0.12"
 endian_trait = { version = "0.6", features = ["arrays"] }
 regex = "1.2"
 serde = { version = "1.0", features = ["derive"] }
@@ -32,30 +32,36 @@ serde_json = "1.0"
 # libc, nix, lazy_static
 
 # api module:
-bytes = "0.5"
-futures = "0.3"
+bytes = "1.0"
+futures = { version = "0.3", optional = true }
 http = "0.2"
-hyper = { version = "0.13", optional = true }
-rustyline = "5.0.5"
-serde_derive = "1.0"
+hyper = { version = "0.14", features = [ "full" ], optional = true }
+percent-encoding = "2.1"
+openssl =  { version = "0.10", optional = true }
+rustyline = "7"
 textwrap = "0.11"
-tokio = { version = "0.2", features = [], optional = true }
+tokio = { version = "1.0", features = [], optional = true }
+tokio-stream = { version = "0.1.1", optional = true }
 url = "2.1"
 #regex, serde, serde_json
 
 # Macro crates:
-proxmox-api-macro = { path = "../proxmox-api-macro", optional = true, version = "0.1.8" }
+proxmox-api-macro = { path = "../proxmox-api-macro", optional = true, version = "0.4.0" }
 proxmox-sortable-macro = { path = "../proxmox-sortable-macro", optional = true, version = "0.1.1" }
 
 [features]
-default = [ "router", "cli" ]
+default = [ "cli", "router", "tfa", "u2f" ]
 sortable-macro = ["proxmox-sortable-macro"]
 
 # api:
 api-macro = ["proxmox-api-macro"]
 test-harness = []
 cli = [ "router", "hyper", "tokio" ]
-router = [ "hyper", "tokio" ]
+router = [ "futures", "hyper", "tokio" ]
+tfa = [ "openssl" ]
+u2f = [ "base32" ]
+
+examples = ["tokio/macros", "u2f"]
 
 # tools:
 #valgrind = ["proxmox-tools/valgrind"]