define workspace dependencies in workspace

so that we no longer have to (or forget to) bump the version in multiple places.

notable changes:
- outdated versions have been unified
- proxmox-metrics -> proxmox-async no longer uses explicit empty features
  (proxmox-async doesn't provide any anyway)
- proxmox-subscription -> proxmox-http no longer uses explicit default_features
  = false (proxmox-http has an empty default feature anyway)
- missing path dependencies added (mainly proxmox-rest-server)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2022-12-07 08:42:52 +01:00
parent 6c161bd5ab
commit e5abc0590e
14 changed files with 58 additions and 44 deletions

View File

@ -57,3 +57,18 @@ tokio = "1.6"
tokio-openssl = "0.6.1"
url = "2.2"
zstd = { version = "0.6", features = [ "bindgen" ] }
# workspace dependencies
proxmox-api-macro = { version = "1.0.3", path = "proxmox-api-macro" }
proxmox-async = { version = "0.4.1", path = "proxmox-async" }
proxmox-compression = { version = "0.1.1", path = "proxmox-compression" }
proxmox-http = { version = "0.7", path = "proxmox-http" }
proxmox-io = { version = "1.0.0", path = "proxmox-io" }
proxmox-lang = { version = "1.1", path = "proxmox-lang" }
proxmox-router = { version = "1.3.0", path = "proxmox-router" }
proxmox-schema = { version = "1.3.3", path = "proxmox-schema" }
proxmox-serde = { version = "0.1.1", path = "proxmox-serde", features = [ "serde_json" ] }
proxmox-sortable-macro = { version = "0.1.2", path = "proxmox-sortable-macro" }
proxmox-sys = { version = "0.4", path = "proxmox-sys" }
proxmox-time = { version = "1.1", path = "proxmox-time" }
proxmox-uuid = { version = "1", path = "proxmox-uuid" }

View File

@ -16,8 +16,8 @@ lazy_static.workspace = true
pin-utils = "0.1.0"
tokio = { workspace = true, features = [ "net", "rt", "rt-multi-thread", "sync"] }
proxmox-io = { path = "../proxmox-io", version = "1", features = [ "tokio" ] }
proxmox-lang = { path = "../proxmox-lang", version = "1.1" }
proxmox-io = { workspace = true, features = [ "tokio" ] }
proxmox-lang.workspace = true
[dev-dependencies]
tokio = { workspace = true, features = [ "macros" ] }

View File

@ -22,9 +22,9 @@ walkdir = "2"
tar = "0.4"
zstd.workspace = true
proxmox-time = { path = "../proxmox-time", version = "1" }
proxmox-io = { path = "../proxmox-io", version = "1", features = [ "tokio" ] }
proxmox-lang = { path = "../proxmox-lang", version = "1.1" }
proxmox-time.workspace = true
proxmox-io = { workspace = true, features = [ "tokio" ] }
proxmox-lang.workspace = true
[dev-dependencies]
tokio = { workspace = true, features = [ "macros" ] }

View File

@ -22,10 +22,10 @@ tokio-openssl = { workspace = true, optional = true }
ureq = { version = "2.4", features = ["native-certs"], optional = true }
url = { workspace = true, optional = true }
proxmox-async = { path = "../proxmox-async", optional = true, version = "0.4.1" }
proxmox-sys = { path = "../proxmox-sys", optional = true, version = "0.4" }
proxmox-io = { path = "../proxmox-io", optional = true, version = "1.0.0" }
proxmox-lang = { path = "../proxmox-lang", optional = true, version = "1.1" }
proxmox-async = { workspace = true, optional = true }
proxmox-sys = { workspace = true, optional = true }
proxmox-io = { workspace = true, optional = true }
proxmox-lang = { workspace = true, optional = true }
[features]
default = []

View File

@ -19,5 +19,5 @@ serde.workspace = true
serde_json.workspace = true
tokio = { workspace = true, features = [ "net", "sync" ] }
proxmox-async = { path = "../proxmox-async", features = [], version = "0.4" }
proxmox-http = { path = "../proxmox-http", features = [ "client" ], version = "0.7" }
proxmox-async.workspace = true
proxmox-http = { workspace = true, features = [ "client" ] }

View File

@ -10,7 +10,7 @@ description = "REST server implementation"
exclude.workspace = true
[dev-dependencies]
proxmox-schema = { version = "1.3.1", features = [ "api-macro" ] }
proxmox-schema = { workspace = true, features = [ "api-macro" ] }
tokio = { workspace = true, features = [ "rt-multi-thread", "signal", "process" ] }
[dependencies]
@ -34,13 +34,12 @@ tokio-stream = "0.1.0"
tower-service = "0.3.0"
url.workspace = true
#proxmox = "0.15.3"
proxmox-async = "0.4"
proxmox-compression = "0.1.1"
proxmox-io = "1"
proxmox-lang = "1.1"
proxmox-http = { version = "0.7", features = [ "client" ] }
proxmox-router = "1.3.0"
proxmox-schema = { version = "1.3.1", features = [ "api-macro", "upid-api-impl" ] }
proxmox-time = "1"
proxmox-sys = { version = "0.4", features = [ "logrotate", "timer" ] }
proxmox-async.workspace = true
proxmox-compression.workspace = true
proxmox-io.workspace = true
proxmox-lang.workspace = true
proxmox-http = { workspace = true, features = [ "client" ] }
proxmox-router.workspace = true
proxmox-schema = { workspace = true, features = [ "api-macro", "upid-api-impl" ] }
proxmox-time.workspace = true
proxmox-sys = { workspace = true, features = [ "logrotate", "timer" ] }

View File

@ -25,9 +25,9 @@ tokio = { workspace = true, features = [], optional = true }
rustyline = { version = "9", optional = true }
libc = { workspace = true, optional = true }
proxmox-lang = { path = "../proxmox-lang", version = "1.1" }
proxmox-schema = { path = "../proxmox-schema", version = "1.1" }
proxmox-async = { path = "../proxmox-async", version = "0.4.1" }
proxmox-lang.workspace = true
proxmox-schema.workspace = true
proxmox-async.workspace = true
[features]
default = [ "cli", "server" ]

View File

@ -21,12 +21,12 @@ textwrap = "0.16"
libc = { workspace = true, optional = true }
nix = { workspace = true, optional = true }
proxmox-api-macro = { path = "../proxmox-api-macro", optional = true, version = "1.0.3" }
proxmox-api-macro = { workspace = true, optional = true }
[dev-dependencies]
url.workspace = true
serde = { workspace = true, features = [ "derive" ] }
proxmox-api-macro = { path = "../proxmox-api-macro", version = "1.0.3" }
proxmox-api-macro.workspace = true
[features]
default = []

View File

@ -15,6 +15,6 @@ hex.workspace = true
serde.workspace = true
serde_json.workspace = true
proxmox-schema = { path = "../proxmox-schema", version = "1.1" }
proxmox-schema.workspace = true
# FIXME: remove!
proxmox-lang = { path = "../proxmox-lang", version = "1.1" }
proxmox-lang.workspace = true

View File

@ -15,7 +15,7 @@ base64.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, optional = true }
proxmox-time = { path = "../proxmox-time", version = "1.0.0" }
proxmox-time.workspace = true
[dev-dependencies]
serde_json.workspace = true

View File

@ -14,4 +14,4 @@ anyhow.workspace = true
libc.workspace = true
nix.workspace = true
proxmox-sys = { path = "../proxmox-sys", version = "0.4" }
proxmox-sys.workspace = true

View File

@ -19,12 +19,12 @@ regex = "1.5"
serde.workspace = true
serde_json.workspace = true
proxmox-http = { path = "../proxmox-http", version = "0.7", default_features = false, features = ["client-trait", "http-helpers"] }
proxmox-serde = { path = "../proxmox-serde", version = "0.1.1", features = ["serde_json"]}
proxmox-sys = { path = "../proxmox-sys", version = "0.4" }
proxmox-time = { path = "../proxmox-time", version = "1.1" }
proxmox-http = { workspace = true, features = ["client-trait", "http-helpers"] }
proxmox-serde.workspace = true
proxmox-sys.workspace = true
proxmox-time.workspace = true
proxmox-schema = { path = "../proxmox-schema", version = "1.3.3", features = ["api-macro"], optional = true }
proxmox-schema = { workspace = true, features = ["api-macro"], optional = true }
[features]
default = []

View File

@ -22,11 +22,11 @@ serde = { workspace = true, features = [ "derive" ] }
zstd = { workspace = true, optional = true}
# Macro crates:
proxmox-sortable-macro = { path = "../proxmox-sortable-macro", optional = true, version = "0.1.2" }
proxmox-sortable-macro = { workspace = true, optional = true }
proxmox-io = { path = "../proxmox-io", version = "1.0.0" }
proxmox-lang = { path = "../proxmox-lang", version = "1.1" }
proxmox-time = { path = "../proxmox-time", version = "1.0.0" }
proxmox-io.workspace = true
proxmox-lang.workspace = true
proxmox-time.workspace = true
[features]
default = []

View File

@ -21,12 +21,12 @@ serde_plain = "1.0"
serde_json = { workspace = true, optional = true }
libc = { workspace = true, optional = true }
url.workspace = true
proxmox-schema = { version = "1", path = "../proxmox-schema", features = [ "api-macro" ], optional = true }
proxmox-time = { version = "1", path = "../proxmox-time", optional = true }
proxmox-uuid = { version = "1", path = "../proxmox-uuid", optional = true }
webauthn-rs = { version = "0.3", optional = true }
proxmox-schema = { workspace = true, features = [ "api-macro" ], optional = true }
proxmox-time = { workspace = true, optional = true }
proxmox-uuid = { workspace = true, optional = true }
[features]
default = []
u2f = [ "dep:libc", "dep:serde_json", "serde/derive" ]