diff --git a/Cargo.toml b/Cargo.toml index 2be3034b..6dd4a7ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -134,7 +134,7 @@ proxmox-login = { version = "0.1.0", path = "proxmox-login" } proxmox-product-config = { version = "0.2.0", path = "proxmox-product-config" } proxmox-config-digest = { version = "0.1.0", path = "proxmox-config-digest" } proxmox-rest-server = { version = "0.7.0", path = "proxmox-rest-server" } -proxmox-router = { version = "2.1.5", path = "proxmox-router" } +proxmox-router = { version = "3.0.0", path = "proxmox-router" } proxmox-schema = { version = "3.1.2", path = "proxmox-schema" } proxmox-section-config = { version = "2.1.0", path = "proxmox-section-config" } proxmox-serde = { version = "0.1.1", path = "proxmox-serde", features = [ "serde_json" ] } diff --git a/proxmox-router/Cargo.toml b/proxmox-router/Cargo.toml index 4cd5b568..015b7e6c 100644 --- a/proxmox-router/Cargo.toml +++ b/proxmox-router/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "proxmox-router" -version = "2.2.4" +version = "3.0.0" authors.workspace = true edition.workspace = true license.workspace = true diff --git a/proxmox-router/debian/changelog b/proxmox-router/debian/changelog index ef3af23b..1ed2966d 100644 --- a/proxmox-router/debian/changelog +++ b/proxmox-router/debian/changelog @@ -1,3 +1,15 @@ +rust-proxmox-router (3.0.0-1) bookworm; urgency=medium + + * rename old streaming api to "serializing" (as it is not truly streaming) + + * add `StreamSync` and `StreamAsync` variants to `ApiHandler`, these can, if + requested by the client, produce a stream of format `application/json-seq` + (RFC7464) + + * add a "stream" feature to include decoding helpers for streaming api calls + + -- Proxmox Support Team Wed, 04 Sep 2024 15:31:18 +0200 + rust-proxmox-router (2.2.4-1) bookworm; urgency=medium * sort cli properties in usage output diff --git a/proxmox-router/debian/control b/proxmox-router/debian/control index 8c5352d9..6e32cde5 100644 --- a/proxmox-router/debian/control +++ b/proxmox-router/debian/control @@ -8,6 +8,7 @@ Build-Depends: debhelper (>= 12), libstd-rust-dev , librust-anyhow-1+default-dev , librust-env-logger-0.10+default-dev , + librust-futures-0.3+default-dev , librust-http-0.2+default-dev , librust-hyper-0.14+default-dev (>= 0.14.5-~~) , librust-hyper-0.14+full-dev (>= 0.14.5-~~) , @@ -36,6 +37,7 @@ Multi-Arch: same Depends: ${misc:Depends}, librust-anyhow-1+default-dev, + librust-futures-0.3+default-dev, librust-nix-0.26+default-dev (>= 0.26.1-~~), librust-percent-encoding-2+default-dev (>= 2.1-~~), librust-proxmox-async-0.4+default-dev (>= 0.4.1-~~), @@ -51,11 +53,12 @@ Recommends: Suggests: librust-proxmox-router+cli-dev (= ${binary:Version}), librust-proxmox-router+server-dev (= ${binary:Version}), + librust-proxmox-router+stream-dev (= ${binary:Version}), librust-proxmox-router+test-harness-dev (= ${binary:Version}) Provides: - librust-proxmox-router-2-dev (= ${binary:Version}), - librust-proxmox-router-2.2-dev (= ${binary:Version}), - librust-proxmox-router-2.2.4-dev (= ${binary:Version}) + librust-proxmox-router-3-dev (= ${binary:Version}), + librust-proxmox-router-3.0-dev (= ${binary:Version}), + librust-proxmox-router-3.0.0-dev (= ${binary:Version}) Description: Proxmox API Router and CLI utilities - Rust source code Source code for Debianized Rust crate "proxmox-router" @@ -65,13 +68,14 @@ Multi-Arch: same Depends: ${misc:Depends}, librust-proxmox-router-dev (= ${binary:Version}), + librust-proxmox-router+stream-dev (= ${binary:Version}), librust-env-logger-0.10+default-dev, librust-libc-0.2+default-dev (>= 0.2.107-~~), librust-rustyline-9+default-dev Provides: - librust-proxmox-router-2+cli-dev (= ${binary:Version}), - librust-proxmox-router-2.2+cli-dev (= ${binary:Version}), - librust-proxmox-router-2.2.4+cli-dev (= ${binary:Version}) + librust-proxmox-router-3+cli-dev (= ${binary:Version}), + librust-proxmox-router-3.0+cli-dev (= ${binary:Version}), + librust-proxmox-router-3.0.0+cli-dev (= ${binary:Version}) Description: Proxmox API Router and CLI utilities - feature "cli" This metapackage enables feature "cli" for the Rust proxmox-router crate, by pulling in any additional dependencies needed by that feature. @@ -85,9 +89,9 @@ Depends: librust-proxmox-router+cli-dev (= ${binary:Version}), librust-proxmox-router+server-dev (= ${binary:Version}) Provides: - librust-proxmox-router-2+default-dev (= ${binary:Version}), - librust-proxmox-router-2.2+default-dev (= ${binary:Version}), - librust-proxmox-router-2.2.4+default-dev (= ${binary:Version}) + librust-proxmox-router-3+default-dev (= ${binary:Version}), + librust-proxmox-router-3.0+default-dev (= ${binary:Version}), + librust-proxmox-router-3.0.0+default-dev (= ${binary:Version}) Description: Proxmox API Router and CLI utilities - feature "default" This metapackage enables feature "default" for the Rust proxmox-router crate, by pulling in any additional dependencies needed by that feature. @@ -102,13 +106,29 @@ Depends: librust-hyper-0.14+default-dev (>= 0.14.5-~~), librust-hyper-0.14+full-dev (>= 0.14.5-~~) Provides: - librust-proxmox-router-2+server-dev (= ${binary:Version}), - librust-proxmox-router-2.2+server-dev (= ${binary:Version}), - librust-proxmox-router-2.2.4+server-dev (= ${binary:Version}) + librust-proxmox-router-3+server-dev (= ${binary:Version}), + librust-proxmox-router-3.0+server-dev (= ${binary:Version}), + librust-proxmox-router-3.0.0+server-dev (= ${binary:Version}) Description: Proxmox API Router and CLI utilities - feature "server" This metapackage enables feature "server" for the Rust proxmox-router crate, by pulling in any additional dependencies needed by that feature. +Package: librust-proxmox-router+stream-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-router-dev (= ${binary:Version}), + librust-hyper-0.14+default-dev (>= 0.14.5-~~), + librust-hyper-0.14+full-dev (>= 0.14.5-~~) +Provides: + librust-proxmox-router-3+stream-dev (= ${binary:Version}), + librust-proxmox-router-3.0+stream-dev (= ${binary:Version}), + librust-proxmox-router-3.0.0+stream-dev (= ${binary:Version}) +Description: Proxmox API Router and CLI utilities - feature "stream" + This metapackage enables feature "stream" for the Rust proxmox-router crate, by + pulling in any additional dependencies needed by that feature. + Package: librust-proxmox-router+test-harness-dev Architecture: any Multi-Arch: same @@ -117,9 +137,9 @@ Depends: librust-proxmox-router-dev (= ${binary:Version}), librust-proxmox-schema-3+test-harness-dev (>= 3.1.2-~~) Provides: - librust-proxmox-router-2+test-harness-dev (= ${binary:Version}), - librust-proxmox-router-2.2+test-harness-dev (= ${binary:Version}), - librust-proxmox-router-2.2.4+test-harness-dev (= ${binary:Version}) + librust-proxmox-router-3+test-harness-dev (= ${binary:Version}), + librust-proxmox-router-3.0+test-harness-dev (= ${binary:Version}), + librust-proxmox-router-3.0.0+test-harness-dev (= ${binary:Version}) Description: Proxmox API Router and CLI utilities - feature "test-harness" This metapackage enables feature "test-harness" for the Rust proxmox-router crate, by pulling in any additional dependencies needed by that feature.