Skip to content

Commit 3fc97a0

Browse files
Update hyper dependencies (#105)
* chore(deps): bump switch to crates.io hyper-util * fix: renamed lint name
1 parent 9adf50b commit 3fc97a0

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@ jobs:
124124

125125
- uses: dtolnay/rust-toolchain@nightly
126126

127-
- run: cargo rustdoc -- --cfg docsrs -D broken-intra-doc-links
127+
- run: cargo rustdoc -- --cfg docsrs -D rustdoc::broken-intra-doc-links

Cargo.toml

+9-8
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@ vendored = ["native-tls/vendored"]
1515

1616
[dependencies]
1717
bytes = "1"
18+
http-body-util = "0.1.0"
19+
hyper = { version = "1.0.0", default-features = false }
20+
hyper-util = { version = "0.1.0", default-features = false, features = [
21+
"client-legacy",
22+
"tokio",
23+
] }
1824
native-tls = "0.2.1"
19-
hyper = { version = "1.0.0-rc.4", default-features = false }
20-
hyper-util = { git = "https://github.com/hyperium/hyper-util", default-features = false, features = [
21-
"client",
22-
], rev = "11776bd742196691d03203caa0f4acd29df696bd" }
2325
tokio = "1"
2426
tokio-native-tls = "0.3"
2527
tower-service = "0.3"
26-
http-body-util = "0.1.0-rc.3"
2728

2829
[dev-dependencies]
29-
tokio = { version = "1.0.0", features = ["io-std", "macros", "io-util"] }
30-
hyper-util = { git = "https://github.com/hyperium/hyper-util", default-features = false, features = [
30+
hyper-util = { version = "0.1.0", default-features = false, features = [
3131
"http1",
32-
], rev = "11776bd742196691d03203caa0f4acd29df696bd" }
32+
] }
33+
tokio = { version = "1.0.0", features = ["io-std", "macros", "io-util"] }

src/client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use hyper::{
22
rt::{Read, Write},
33
Uri,
44
};
5-
use hyper_util::{client::connect::HttpConnector, rt::TokioIo};
5+
use hyper_util::{client::legacy::connect::HttpConnector, rt::TokioIo};
66
use std::fmt;
77
use std::future::Future;
88
use std::pin::Pin;

src/stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::task::{Context, Poll};
77
use hyper::rt::{Read, ReadBufCursor, Write};
88

99
use hyper_util::{
10-
client::connect::{Connected, Connection},
10+
client::legacy::connect::{Connected, Connection},
1111
rt::TokioIo,
1212
};
1313
pub use tokio_native_tls::TlsStream;

0 commit comments

Comments
 (0)