Skip to content

Commit 0b6d813

Browse files
committed
Increase the MSRV from 1.63 to 1.65
Perform a small MSRV bump by two versions. The main thing this gets is access to the C types in `core::ffi`, which means the ecosystem can start harmonizing around those aliases instead of using e.g. `core::ffi::c_int` in some cases and `libc::c_int` in others. 1.65 is selected as a small bump over 1.64 because it comes with some small "nice" things like workspace-level lints and `cast_mut`. It has been over a year since the last MSRV bump to 1.63 (in 93052d1, "Document the MSRV of the stable channel as 1.63") so we could probably bump higher yet, but there isn't anything else on the list at [1] as useful as `core::ffi`. [1]: #4626
1 parent 35dd844 commit 0b6d813

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
name: Verify build
5353
strategy:
5454
matrix:
55-
toolchain: [stable, 1.63.0]
55+
toolchain: [stable, 1.65.0]
5656
include:
5757
# Nightly has a lot of targets, so split it in half
5858
- toolchain: nightly
@@ -93,7 +93,7 @@ jobs:
9393
run: |
9494
set -eux
9595
# Remove `-Dwarnings` at the MSRV since lints may be different
96-
[ "${{ matrix.toolchain }}" = "1.63.0" ] && export RUSTFLAGS=""
96+
[ "${{ matrix.toolchain }}" = "1.65.0" ] && export RUSTFLAGS=""
9797
python3 ci/verify-build.py \
9898
--toolchain "$TOOLCHAIN" \
9999
${BASELINE_CRATE_DIR:+"--baseline-crate-dir" "$BASELINE_CRATE_DIR"} \

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = ["The Rust Project Developers"]
99
edition = "2021"
1010
license = "MIT OR Apache-2.0"
1111
repository = "https://github.com/rust-lang/libc"
12-
rust-version = "1.63"
12+
rust-version = "1.65"
1313

1414
[package.metadata.docs.rs]
1515
features = ["extra_traits"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The following features are deprecated:
5757

5858
## Rust version support
5959

60-
The minimum supported Rust toolchain version is currently **Rust 1.63**.
60+
The minimum supported Rust toolchain version is currently **Rust 1.65**.
6161

6262
Increases to the MSRV are allowed to change without a major (i.e. semver-
6363
breaking) release in order to avoid a ripple effect in the ecosystem. A policy

0 commit comments

Comments
 (0)