From b2c26f74a63147ca46c14aa7f761d7952d6abe48 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 25 Jan 2023 11:51:27 +0100 Subject: [PATCH] http: lower hyper feature requirements for client feature instead of 'full', we only need 'tcp+http1+http2' Signed-off-by: Wolfgang Bumiller --- proxmox-http/Cargo.toml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/proxmox-http/Cargo.toml b/proxmox-http/Cargo.toml index f87ed2f2..745deccb 100644 --- a/proxmox-http/Cargo.toml +++ b/proxmox-http/Cargo.toml @@ -31,8 +31,28 @@ proxmox-lang = { workspace = true, optional = true } default = [] rate-limiter = ["dep:hyper"] -rate-limited-stream = ["rate-limiter", "dep:tokio", "dep:hyper", "hyper?/client", "tokio?/time", "tokio?/net"] -client = [ "dep:futures", "http-helpers", "dep:hyper", "hyper?/full", "dep:openssl", "dep:tokio", "tokio?/io-util", "dep:tokio-openssl" ] +rate-limited-stream = [ + "dep:hyper", + "dep:tokio", + "hyper?/client", + "rate-limiter", + "tokio?/net", + "tokio?/time", +] +client = [ + "dep:futures", + "dep:hyper", + "dep:openssl", + "dep:tokio", + "dep:tokio-openssl", + "http-helpers", + "hyper?/client", + "hyper?/http1", + "hyper?/http2", + "hyper?/tcp", + "rate-limited-stream", + "tokio?/io-util", +] client-sync = [ "client-trait", "http-helpers", "dep:ureq" ] client-trait = [ "dep:http" ] http-helpers = [ "dep:base64", "dep:http", "dep:proxmox-sys", "dep:serde_json", "dep:url" ]