Skip to content

Commit 009c257

Browse files
committed
0.6.0 - dependency bumps, minor breaking changes that clean up the API
Signed-off-by: kanpov <[email protected]>
1 parent 68ccc69 commit 009c257

File tree

5 files changed

+43
-31
lines changed

5 files changed

+43
-31
lines changed

Cargo.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hyper-client-sockets"
3-
version = "0.5.2"
3+
version = "0.6.0"
44
edition = "2021"
55
license = "MIT"
66
description = "A Hyper client library allowing access to Unix, VSock and Firecracker sockets"
@@ -19,38 +19,38 @@ hyper = { version = "1.5.2", default-features = false }
1919

2020
# hyper-util support
2121
tower-service = { version = "0.3.3", optional = true }
22-
hyper-util = { version = "0.1.9", optional = true, default-features = false }
22+
hyper-util = { version = "0.1.10", optional = true, default-features = false }
2323
hex = { version = "0.4.3", optional = true }
24-
http = { version = "1.1.0", optional = true }
24+
http = { version = "1.2.0", optional = true }
2525
# tokio backend
26-
tokio = { version = "1.40.0", features = ["net", "io-util"], optional = true }
26+
tokio = { version = "1.43.0", features = ["net", "io-util"], optional = true }
2727
libc = { version = "0.2.169", optional = true }
2828
# async-io backend
2929
async-io = { version = "2.4.0", optional = true }
3030
smol-hyper = { version = "0.1.1", optional = true, default-features = false, features = [
3131
"async-io",
3232
] }
33-
futures-lite = { version = "2.5.0", optional = true }
33+
futures-lite = { version = "2.6.0", optional = true }
3434
# vsock sockets
3535
vsock = { version = "0.5.1", optional = true }
3636

3737
[dev-dependencies]
3838
hyper-client-sockets = { path = ".", features = ["full"] }
3939
# runtimes
40-
tokio = { version = "1.38.0", features = ["macros", "fs"] }
40+
tokio = { version = "1.43.0", features = ["macros", "fs"] }
4141
async-executor = "1.13.1"
4242
# hyper utils
43-
hyper = { version = "1.5", features = ["server", "http1"] }
44-
hyper-util = { version = "0.1.9", features = [
43+
hyper = { version = "1.5.2", features = ["server", "http1"] }
44+
hyper-util = { version = "0.1.10", features = [
4545
"client",
4646
"client-legacy",
4747
"http1",
4848
] }
4949
http-body-util = "0.1.2"
5050
bytes = "1.9.0"
5151
# misc
52-
uuid = { version = "1.11.0", features = ["v4"] }
53-
tokio-vsock = "0.6.0"
52+
uuid = { version = "1.12.0", features = ["v4"] }
53+
tokio-vsock = "0.7.0"
5454
fastrand = "2.3.0"
5555
smol-hyper = "0.1.1"
5656

src/connector.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use hyper_util::client::legacy::connect::{Connected, Connection};
77

88
/// This is an internal wrapper over an IO type that implements [hyper::rt::Write] and
99
/// [hyper::rt::Read] that also implements [Connection] to achieve compatibility with hyper-util.
10-
pub struct ConnectableIo<IO: hyper::rt::Write + hyper::rt::Read + Send + Unpin>(IO);
10+
pub struct ConnectableIo<IO>(IO);
1111

1212
impl<IO: hyper::rt::Write + hyper::rt::Read + Send + Unpin> hyper::rt::Write for ConnectableIo<IO> {
1313
#[inline(always)]
@@ -45,7 +45,7 @@ impl<IO: hyper::rt::Write + hyper::rt::Read + Send + Unpin> Connection for Conne
4545

4646
#[cfg(feature = "unix")]
4747
#[cfg_attr(docsrs, doc(cfg(feature = "unix")))]
48-
pub mod unix {
48+
mod unix {
4949
use std::{future::Future, marker::PhantomData, pin::Pin, task::Poll};
5050

5151
use http::Uri;
@@ -90,9 +90,13 @@ pub mod unix {
9090
}
9191
}
9292

93+
#[cfg(feature = "unix")]
94+
#[cfg_attr(docsrs, doc(cfg(feature = "unix")))]
95+
pub use unix::UnixConnector;
96+
9397
#[cfg(feature = "vsock")]
9498
#[cfg_attr(docsrs, doc(cfg(feature = "vsock")))]
95-
pub mod vsock {
99+
mod vsock {
96100
use std::{future::Future, marker::PhantomData, pin::Pin, task::Poll};
97101

98102
use http::Uri;
@@ -137,9 +141,13 @@ pub mod vsock {
137141
}
138142
}
139143

144+
#[cfg(feature = "vsock")]
145+
#[cfg_attr(docsrs, doc(cfg(feature = "vsock")))]
146+
pub use vsock::VsockConnector;
147+
140148
#[cfg(feature = "firecracker")]
141149
#[cfg_attr(docsrs, doc(cfg(feature = "firecracker")))]
142-
pub mod firecracker {
150+
mod firecracker {
143151
use std::{future::Future, marker::PhantomData, pin::Pin, task::Poll};
144152

145153
use http::Uri;
@@ -183,3 +191,7 @@ pub mod firecracker {
183191
}
184192
}
185193
}
194+
195+
#[cfg(feature = "firecracker")]
196+
#[cfg_attr(docsrs, doc(cfg(feature = "firecracker")))]
197+
pub use firecracker::FirecrackerConnector;

tests/async_io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use http_body_util::Full;
88
use hyper::client::conn::http1::handshake;
99
use hyper_client_sockets::{
1010
async_io::AsyncIoBackend,
11-
connector::{firecracker::FirecrackerConnector, unix::UnixConnector, vsock::VsockConnector},
11+
connector::{FirecrackerConnector, UnixConnector, VsockConnector},
1212
uri::{FirecrackerUri, UnixUri, VsockUri},
1313
Backend,
1414
};

tests/tokio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use http::{Request, Uri};
44
use http_body_util::Full;
55
use hyper::client::conn::http1::handshake;
66
use hyper_client_sockets::{
7-
connector::{firecracker::FirecrackerConnector, unix::UnixConnector, vsock::VsockConnector},
7+
connector::{FirecrackerConnector, UnixConnector, VsockConnector},
88
tokio::TokioBackend,
99
uri::{FirecrackerUri, UnixUri, VsockUri},
1010
Backend,

0 commit comments

Comments
 (0)