From 3fc97a044187db5813c50a17b2d8c9c856ae0893 Mon Sep 17 00:00:00 2001 From: Kristof Mattei <864376+kristof-mattei@users.noreply.github.com> Date: Fri, 17 Nov 2023 05:58:32 -0700 Subject: [PATCH] Update hyper dependencies (#105) * chore(deps): bump switch to crates.io hyper-util * fix: renamed lint name --- .github/workflows/CI.yml | 2 +- Cargo.toml | 17 +++++++++-------- src/client.rs | 2 +- src/stream.rs | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ffd3c75..1bec47e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -124,4 +124,4 @@ jobs: - uses: dtolnay/rust-toolchain@nightly - - run: cargo rustdoc -- --cfg docsrs -D broken-intra-doc-links + - run: cargo rustdoc -- --cfg docsrs -D rustdoc::broken-intra-doc-links diff --git a/Cargo.toml b/Cargo.toml index 13b4187..f6df0fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,18 +15,19 @@ vendored = ["native-tls/vendored"] [dependencies] bytes = "1" +http-body-util = "0.1.0" +hyper = { version = "1.0.0", default-features = false } +hyper-util = { version = "0.1.0", default-features = false, features = [ + "client-legacy", + "tokio", +] } native-tls = "0.2.1" -hyper = { version = "1.0.0-rc.4", default-features = false } -hyper-util = { git = "https://github.com/hyperium/hyper-util", default-features = false, features = [ - "client", -], rev = "11776bd742196691d03203caa0f4acd29df696bd" } tokio = "1" tokio-native-tls = "0.3" tower-service = "0.3" -http-body-util = "0.1.0-rc.3" [dev-dependencies] -tokio = { version = "1.0.0", features = ["io-std", "macros", "io-util"] } -hyper-util = { git = "https://github.com/hyperium/hyper-util", default-features = false, features = [ +hyper-util = { version = "0.1.0", default-features = false, features = [ "http1", -], rev = "11776bd742196691d03203caa0f4acd29df696bd" } +] } +tokio = { version = "1.0.0", features = ["io-std", "macros", "io-util"] } diff --git a/src/client.rs b/src/client.rs index 34b578f..cdf8d5b 100644 --- a/src/client.rs +++ b/src/client.rs @@ -2,7 +2,7 @@ use hyper::{ rt::{Read, Write}, Uri, }; -use hyper_util::{client::connect::HttpConnector, rt::TokioIo}; +use hyper_util::{client::legacy::connect::HttpConnector, rt::TokioIo}; use std::fmt; use std::future::Future; use std::pin::Pin; diff --git a/src/stream.rs b/src/stream.rs index fbd5097..13dec57 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -7,7 +7,7 @@ use std::task::{Context, Poll}; use hyper::rt::{Read, ReadBufCursor, Write}; use hyper_util::{ - client::connect::{Connected, Connection}, + client::legacy::connect::{Connected, Connection}, rt::TokioIo, }; pub use tokio_native_tls::TlsStream;