From a45c5cde055c17aace40fa436ef3cdab6336bcb9 Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Fri, 4 Jul 2025 12:58:31 +0200 Subject: [PATCH] Bump MSRV to 1.70 --- .github/workflows/main.yml | 6 +++--- Cargo.toml | 2 +- README.md | 2 +- src/sys/unix.rs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1243f5b4..d311b23d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,14 +14,14 @@ jobs: strategy: fail-fast: false matrix: - build: [stable, 1.63.0, beta, nightly, macos, windows] + build: [stable, 1.70.0, beta, nightly, macos, windows] include: - build: stable os: ubuntu-latest rust: stable - - build: 1.63.0 + - build: 1.70.0 os: ubuntu-latest - rust: 1.63.0 + rust: 1.70.0 - build: beta os: ubuntu-latest rust: beta diff --git a/Cargo.toml b/Cargo.toml index b661f2e1..5cb66119 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ possible intended. keywords = ["io", "socket", "network"] categories = ["api-bindings", "network-programming"] edition = "2021" -rust-version = "1.63" +rust-version = "1.70" include = [ "Cargo.toml", "LICENSE-APACHE", diff --git a/README.md b/README.md index d84e40c5..5606606c 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ feature flag. # Minimum Supported Rust Version (MSRV) -Socket2 uses 1.63.0 as MSRV. +Socket2 uses 1.70.0 as MSRV. # License diff --git a/src/sys/unix.rs b/src/sys/unix.rs index 3787ce00..52a52ea9 100644 --- a/src/sys/unix.rs +++ b/src/sys/unix.rs @@ -2828,9 +2828,9 @@ impl crate::Socket { #[cfg(all(feature = "all", any(target_os = "linux", target_os = "android")))] #[repr(transparent)] pub struct SockFilter { - // For some reason Rust 1.63 thinks this field is unused, while it's clearly + // For some reason Rust 1.70 thinks this field is unused, while it's clearly // used in `SockFilter::new`. This issue seems fixed in later Rust versions, - // but we still need to support 1.63, adding allow(dead_code) ignores the + // but we still need to support 1.70, adding allow(dead_code) ignores the // issue. #[allow(dead_code)] filter: libc::sock_filter,