Skip to content

Commit 2db74f3

Browse files
committed
Up minimum socket2 to 0.6.0
Now that hyper-util uses `socket2::Socket::set_tcp_nodelay`, which was added in [0.6.0]. It used to be called `socket2::Socket::set_nodelay` in [0.5.10]. It also updates the MSRV to Rust 1.70 since that's the minimum supported version in socket2 0.6.0. [0.5.10]: https://docs.rs/socket2/0.5.10/socket2/struct.Socket.html#method.set_nodelay [0.6.0]: https://docs.rs/socket2/0.6.0/socket2/struct.Socket.html#method.set_tcp_nodelay
1 parent 4595a08 commit 2db74f3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
needs: [style]
6161
strategy:
6262
matrix:
63-
rust: [ 1.64 ] # keep in sync with 'rust-version' in Cargo.toml
63+
rust: [ 1.70 ] # keep in sync with 'rust-version' in Cargo.toml
6464
os:
6565
- ubuntu-latest
6666
- windows-latest

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors = ["Sean McArthur <sean@seanmonstar.com>"]
1111
keywords = ["http", "hyper", "hyperium"]
1212
categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
1313
edition = "2021"
14-
rust-version = "1.64"
14+
rust-version = "1.70"
1515

1616
[package.metadata.docs.rs]
1717
features = ["full"]
@@ -29,7 +29,7 @@ ipnet = { version = "2.9", optional = true }
2929
libc = { version = "0.2", optional = true }
3030
percent-encoding = { version = "2.3", optional = true }
3131
pin-project-lite = "0.2.4"
32-
socket2 = { version = ">=0.5.9, <0.7", optional = true, features = ["all"] }
32+
socket2 = { version = ">=0.6.0, <0.7", optional = true, features = ["all"] }
3333
tracing = { version = "0.1", default-features = false, features = ["std"], optional = true }
3434
tokio = { version = "1", optional = true, default-features = false }
3535
tower-layer = { version = "0.3", optional = true }

0 commit comments

Comments
 (0)