Skip to content

Commit

Permalink
Update hyper dependencies (#105)
Browse files Browse the repository at this point in the history
* chore(deps): bump switch to crates.io hyper-util

* fix: renamed lint name
  • Loading branch information
kristof-mattei authored Nov 17, 2023
1 parent 9adf50b commit 3fc97a0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 9 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3fc97a0

Please sign in to comment.