diff --git a/Cargo.toml b/Cargo.toml index fb391149..2efa337a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,7 +79,7 @@ zstd = { version = "0.6", features = [ "bindgen" ] } proxmox-api-macro = { version = "1.0.4", 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.8.0-alpha.1", path = "proxmox-http" } +proxmox-http = { version = "0.8.0", 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.1", path = "proxmox-router" } diff --git a/proxmox-http/Cargo.toml b/proxmox-http/Cargo.toml index a9ab364f..39f6d6f9 100644 --- a/proxmox-http/Cargo.toml +++ b/proxmox-http/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "proxmox-http" edition.workspace = true -version = "0.8.0-alpha.1" +version = "0.8.0" authors.workspace = true license.workspace = true repository.workspace = true diff --git a/proxmox-http/debian/changelog b/proxmox-http/debian/changelog index 55982202..dc11629f 100644 --- a/proxmox-http/debian/changelog +++ b/proxmox-http/debian/changelog @@ -1,3 +1,17 @@ +rust-proxmox-http (0.8.0-1) unstable; urgency=medium + + * make rate limiting 2 separate features instead of part of the client + feature: + - rate-limiter + - rate-limited-stream + + * reduce hyper dependencies from 'full' to only the required features + + * add 'inner' and 'inner_mut' accessors to RateLimitedStream and drop the + 'peer_addr()' method + + -- Proxmox Support Team Mon, 30 Jan 2023 11:25:22 +0100 + rust-proxmox-http (0.7.0-1) unstable; urgency=medium * refactor and extend HttpClient trait diff --git a/proxmox-http/debian/control b/proxmox-http/debian/control index a8f5aea8..a4c0e5dd 100644 --- a/proxmox-http/debian/control +++ b/proxmox-http/debian/control @@ -26,15 +26,17 @@ Suggests: librust-proxmox-http+client-trait-dev (= ${binary:Version}), librust-proxmox-http+http-helpers-dev (= ${binary:Version}), librust-proxmox-http+proxmox-async-dev (= ${binary:Version}), + librust-proxmox-http+rate-limited-stream-dev (= ${binary:Version}), + librust-proxmox-http+rate-limiter-dev (= ${binary:Version}), librust-proxmox-http+websocket-dev (= ${binary:Version}) Provides: librust-proxmox-http+default-dev (= ${binary:Version}), librust-proxmox-http-0-dev (= ${binary:Version}), librust-proxmox-http-0+default-dev (= ${binary:Version}), - librust-proxmox-http-0.7-dev (= ${binary:Version}), - librust-proxmox-http-0.7+default-dev (= ${binary:Version}), - librust-proxmox-http-0.7.0-dev (= ${binary:Version}), - librust-proxmox-http-0.7.0+default-dev (= ${binary:Version}) + librust-proxmox-http-0.8-dev (= ${binary:Version}), + librust-proxmox-http-0.8+default-dev (= ${binary:Version}), + librust-proxmox-http-0.8.0-dev (= ${binary:Version}), + librust-proxmox-http-0.8.0+default-dev (= ${binary:Version}) Description: Proxmox HTTP library - Rust source code This package contains the source for the Rust proxmox-http crate, packaged by debcargo for use with cargo and dh-cargo. @@ -46,17 +48,21 @@ Depends: ${misc:Depends}, librust-proxmox-http-dev (= ${binary:Version}), librust-proxmox-http+http-helpers-dev (= ${binary:Version}), + librust-proxmox-http+rate-limited-stream-dev (= ${binary:Version}), librust-futures-0.3+default-dev, + librust-hyper-0.14+client-dev (>= 0.14.5-~~), librust-hyper-0.14+default-dev (>= 0.14.5-~~), - librust-hyper-0.14+full-dev (>= 0.14.5-~~), + librust-hyper-0.14+http1-dev (>= 0.14.5-~~), + librust-hyper-0.14+http2-dev (>= 0.14.5-~~), + librust-hyper-0.14+tcp-dev (>= 0.14.5-~~), librust-openssl-0.10+default-dev, librust-tokio-1+default-dev (>= 1.6-~~), librust-tokio-1+io-util-dev (>= 1.6-~~), librust-tokio-openssl-0.6+default-dev (>= 0.6.1-~~) Provides: librust-proxmox-http-0+client-dev (= ${binary:Version}), - librust-proxmox-http-0.7+client-dev (= ${binary:Version}), - librust-proxmox-http-0.7.0+client-dev (= ${binary:Version}) + librust-proxmox-http-0.8+client-dev (= ${binary:Version}), + librust-proxmox-http-0.8.0+client-dev (= ${binary:Version}) Description: Proxmox HTTP library - feature "client" This metapackage enables feature "client" for the Rust proxmox-http crate, by pulling in any additional dependencies needed by that feature. @@ -73,8 +79,8 @@ Depends: librust-ureq-2+native-certs-dev (>= 2.4-~~) Provides: librust-proxmox-http-0+client-sync-dev (= ${binary:Version}), - librust-proxmox-http-0.7+client-sync-dev (= ${binary:Version}), - librust-proxmox-http-0.7.0+client-sync-dev (= ${binary:Version}) + librust-proxmox-http-0.8+client-sync-dev (= ${binary:Version}), + librust-proxmox-http-0.8.0+client-sync-dev (= ${binary:Version}) Description: Proxmox HTTP library - feature "client-sync" This metapackage enables feature "client-sync" for the Rust proxmox-http crate, by pulling in any additional dependencies needed by that feature. @@ -88,8 +94,8 @@ Depends: librust-http-0.2+default-dev Provides: librust-proxmox-http-0+client-trait-dev (= ${binary:Version}), - librust-proxmox-http-0.7+client-trait-dev (= ${binary:Version}), - librust-proxmox-http-0.7.0+client-trait-dev (= ${binary:Version}) + librust-proxmox-http-0.8+client-trait-dev (= ${binary:Version}), + librust-proxmox-http-0.8.0+client-trait-dev (= ${binary:Version}) Description: Proxmox HTTP library - feature "client-trait" This metapackage enables feature "client-trait" for the Rust proxmox-http crate, by pulling in any additional dependencies needed by that feature. @@ -102,13 +108,13 @@ Depends: librust-proxmox-http-dev (= ${binary:Version}), librust-base64-0.13+default-dev, librust-http-0.2+default-dev, - librust-proxmox-sys-0.4+default-dev (>= 0.4.1-~~), + librust-proxmox-sys-0.4+default-dev (>= 0.4.2-~~), librust-serde-json-1+default-dev, librust-url-2+default-dev (>= 2.2-~~) Provides: librust-proxmox-http-0+http-helpers-dev (= ${binary:Version}), - librust-proxmox-http-0.7+http-helpers-dev (= ${binary:Version}), - librust-proxmox-http-0.7.0+http-helpers-dev (= ${binary:Version}) + librust-proxmox-http-0.8+http-helpers-dev (= ${binary:Version}), + librust-proxmox-http-0.8.0+http-helpers-dev (= ${binary:Version}) Description: Proxmox HTTP library - feature "http-helpers" This metapackage enables feature "http-helpers" for the Rust proxmox-http crate, by pulling in any additional dependencies needed by that feature. @@ -122,12 +128,46 @@ Depends: librust-proxmox-async-0.4+default-dev (>= 0.4.1-~~) Provides: librust-proxmox-http-0+proxmox-async-dev (= ${binary:Version}), - librust-proxmox-http-0.7+proxmox-async-dev (= ${binary:Version}), - librust-proxmox-http-0.7.0+proxmox-async-dev (= ${binary:Version}) + librust-proxmox-http-0.8+proxmox-async-dev (= ${binary:Version}), + librust-proxmox-http-0.8.0+proxmox-async-dev (= ${binary:Version}) Description: Proxmox HTTP library - feature "proxmox-async" This metapackage enables feature "proxmox-async" for the Rust proxmox-http crate, by pulling in any additional dependencies needed by that feature. +Package: librust-proxmox-http+rate-limited-stream-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-http-dev (= ${binary:Version}), + librust-proxmox-http+rate-limiter-dev (= ${binary:Version}), + librust-hyper-0.14+client-dev (>= 0.14.5-~~), + librust-hyper-0.14+default-dev (>= 0.14.5-~~), + librust-tokio-1+default-dev (>= 1.6-~~), + librust-tokio-1+time-dev (>= 1.6-~~) +Provides: + librust-proxmox-http-0+rate-limited-stream-dev (= ${binary:Version}), + librust-proxmox-http-0.8+rate-limited-stream-dev (= ${binary:Version}), + librust-proxmox-http-0.8.0+rate-limited-stream-dev (= ${binary:Version}) +Description: Proxmox HTTP library - feature "rate-limited-stream" + This metapackage enables feature "rate-limited-stream" for the Rust proxmox- + http crate, by pulling in any additional dependencies needed by that feature. + +Package: librust-proxmox-http+rate-limiter-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-http-dev (= ${binary:Version}), + librust-hyper-0.14+default-dev (>= 0.14.5-~~) +Provides: + librust-proxmox-http-0+rate-limiter-dev (= ${binary:Version}), + librust-proxmox-http-0.8+rate-limiter-dev (= ${binary:Version}), + librust-proxmox-http-0.8.0+rate-limiter-dev (= ${binary:Version}) +Description: Proxmox HTTP library - feature "rate-limiter" + This metapackage enables feature "rate-limiter" for the Rust proxmox-http + crate, by pulling in any additional dependencies needed by that feature. + Package: librust-proxmox-http+websocket-dev Architecture: any Multi-Arch: same @@ -141,14 +181,14 @@ Depends: librust-proxmox-io-1+default-dev, librust-proxmox-io-1+tokio-dev, librust-proxmox-lang-1+default-dev (>= 1.1-~~), - librust-proxmox-sys-0.4+default-dev (>= 0.4.1-~~), + librust-proxmox-sys-0.4+default-dev (>= 0.4.2-~~), librust-tokio-1+default-dev (>= 1.6-~~), librust-tokio-1+io-util-dev (>= 1.6-~~), librust-tokio-1+sync-dev (>= 1.6-~~) Provides: librust-proxmox-http-0+websocket-dev (= ${binary:Version}), - librust-proxmox-http-0.7+websocket-dev (= ${binary:Version}), - librust-proxmox-http-0.7.0+websocket-dev (= ${binary:Version}) + librust-proxmox-http-0.8+websocket-dev (= ${binary:Version}), + librust-proxmox-http-0.8.0+websocket-dev (= ${binary:Version}) Description: Proxmox HTTP library - feature "websocket" This metapackage enables feature "websocket" for the Rust proxmox-http crate, by pulling in any additional dependencies needed by that feature.