-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump to Rust edition 2024 & min = 1.85 #7423
base: main
Are you sure you want to change the base?
Conversation
85602c7
to
7f43030
Compare
adb6ea4
to
5125911
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This PR updates the Rust toolchain requirements by bumping the Rust edition to 2024 and the minimum supported Rust version to 1.85.0. It also makes minor import reordering and formatting adjustments across multiple project files to align with the new edition requirements.
- Update Rust edition and minimum supported version in Cargo.toml files and related documentation.
- Modify unsafe blocks in fuzz targets wrapping env::set_var, and reorder imports in various source files.
- Update CI configuration to reflect the new minimum Rust version.
Reviewed Changes
File | Description |
---|---|
Cargo.toml | Bumped rust-version to "1.85.0" and edition to "2024". |
src/uu/*/Cargo.toml | Updated edition from "2021" to "2024" across multiple sub-crates. |
fuzz/fuzz_targets/fuzz_expr.rs | Wrapped env::set_var in an unnecessary unsafe block. |
fuzz/Cargo.toml | Updated edition from "2021" to "2024". |
fuzz/fuzz_targets/fuzz_sort.rs | Wrapped env::set_var in an unnecessary unsafe block. |
fuzz/fuzz_targets/fuzz_printf.rs | Wrapped env::set_var in an unnecessary unsafe block. |
README.md | Updated MSRV badge and text to reflect version "1.85.0". |
.github/workflows/CICD.yml | Updated RUST_MIN_SRV to "1.85.0". |
src/uu/arch/src/arch.rs | Reordered clap imports for consistency. |
src/uu/cat/src/cat.rs | Reordered module imports and simplified formatting. |
src/uu/basename/src/basename.rs | Reordered clap and std::path imports for consistency. |
build.rs | Minor formatting fix by adding a semicolon. |
src/uu/base32/src/base_common.rs | Reordered imports to maintain a consistent order. |
src/uu/basenc/src/basenc.rs | Reordered imports and updated the base_common usage for clarity. |
Copilot reviewed 326 out of 326 changed files in this pull request and generated 3 comments.
Android fails because rustc is 1.84: |
GNU testsuite comparison:
|
This is blocked on termux/termux-packages#23469 |
GNU testsuite comparison:
|
No description provided.