Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hyper dependencies #105

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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