From 7870565c187d08652d65ac5ff44478ade8e647a5 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sat, 12 Sep 2026 13:47:01 +0100 Subject: [PATCH 1/2] uucore: update comment to reflect MSRV constraints --- src/uucore/src/lib/features/i18n/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/uucore/src/lib/features/i18n/mod.rs b/src/uucore/src/lib/features/i18n/mod.rs index cd05e23b88..a31e303c1c 100644 --- a/src/uucore/src/lib/features/i18n/mod.rs +++ b/src/uucore/src/lib/features/i18n/mod.rs @@ -76,12 +76,11 @@ pub fn get_locale_from_os() -> (Locale, UEncoding) { WideCharToMultiByte, }; - /// assume_init_ref is only stable starting Rust 1.93. - /// We cannot use it in the current MSRV of 1.88. + /// TODO(MSRV>=1.93): remove in favor of `slice::assume_init_ref` /// /// # Safety /// - /// Same as the official `assume_init_ref`. + /// Same as the official [`slice::assume_init_ref`](https://doc.rust-lang.org/1.93.0/std/primitive.slice.html#method.assume_init_ref). #[allow(clippy::ref_as_ptr)] unsafe fn assume_init_ref(s: &[MaybeUninit]) -> &[T] { unsafe { &*(s as *const [MaybeUninit] as *const [T]) } From 64a90f28ac0484eae150a4745b252687bdbf0e19 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sat, 12 Sep 2026 13:31:31 +0100 Subject: [PATCH 2/2] cargo: increase rust-version to 1.89 --- .github/workflows/CICD.yml | 2 +- Cargo.lock | 21 ++------------------- Cargo.toml | 2 +- flake.nix | 2 +- fuzz/Cargo.lock | 21 ++------------------- fuzz/Cargo.toml | 2 +- 6 files changed, 8 insertions(+), 42 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index cf782008f9..07f43cb2cf 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -11,7 +11,7 @@ env: PROJECT_NAME: coreutils PROJECT_DESC: "Core universal (cross-platform) utilities" PROJECT_AUTH: "uutils" - RUST_MIN_SRV: "1.88.0" + RUST_MIN_SRV: "1.89.0" CARGO_INCREMENTAL: "0" # * style job configuration STYLE_FAIL_ON_FAULT: true ## (bool) fail the build if a style job contains a fault (error or warning); may be overridden on a per-job basis diff --git a/Cargo.lock b/Cargo.lock index d5e419eb06..dddd7bb5a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -693,30 +693,13 @@ dependencies = [ "libc", ] -[[package]] -name = "crc" -version = "3.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9710d3b3739c2e349eb44fe848ad0b7c8cb1e42bd87ee49371df2f7acaf3e675" -dependencies = [ - "crc-catalog", -] - -[[package]] -name = "crc-catalog" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "217698eaf96b4a3f0bc4f3662aaa55bdf913cd54d7204591faa790070c6d0853" - [[package]] name = "crc-fast" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fd92aca2c6001b1bf5ba0ff84ee74ec8501b52bbef0cac80bf25a6c1d87a83d" +checksum = "e75b2483e97a5a7da73ac68a05b629f9c53cff58d8ed1c77866079e18b00dba5" dependencies = [ - "crc", "digest 0.10.7", - "rustversion", "spin", ] diff --git a/Cargo.toml b/Cargo.toml index 87fc61dcb5..a20586b417 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -394,7 +394,7 @@ members = [ [workspace.package] categories = ["command-line-utilities"] edition = "2024" -rust-version = "1.88.0" +rust-version = "1.89.0" homepage = "https://github.com/uutils/coreutils" keywords = ["coreutils", "uutils", "cross-platform", "cli", "utility"] license = "MIT" diff --git a/flake.nix b/flake.nix index dc7319e587..72855020e8 100644 --- a/flake.nix +++ b/flake.nix @@ -49,7 +49,7 @@ default = pkgsFor.${system}.pkgs.mkShell { packages = build_deps ++ gnu_testing_deps; - RUSTC_VERSION = "1.88"; + RUSTC_VERSION = "1.89"; LIBCLANG_PATH = pkgsFor.${system}.lib.makeLibraryPath [pkgsFor.${system}.llvmPackages_latest.libclang.lib]; shellHook = '' export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index d50b0b2fe1..d04252eae2 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -360,30 +360,13 @@ dependencies = [ "libc", ] -[[package]] -name = "crc" -version = "3.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9710d3b3739c2e349eb44fe848ad0b7c8cb1e42bd87ee49371df2f7acaf3e675" -dependencies = [ - "crc-catalog", -] - -[[package]] -name = "crc-catalog" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "217698eaf96b4a3f0bc4f3662aaa55bdf913cd54d7204591faa790070c6d0853" - [[package]] name = "crc-fast" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fd92aca2c6001b1bf5ba0ff84ee74ec8501b52bbef0cac80bf25a6c1d87a83d" +checksum = "e75b2483e97a5a7da73ac68a05b629f9c53cff58d8ed1c77866079e18b00dba5" dependencies = [ - "crc", "digest 0.10.7", - "rustversion", "spin", ] diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index eb780db0c6..ea211600f8 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -17,7 +17,7 @@ members = ["."] [workspace.package] edition = "2024" -rust-version = "1.88.0" +rust-version = "1.89.0" license = "MIT" # Enable debug symbols in release builds for readable backtraces