Summary: Rust 1.88.0 Release (June 26, 2025)
๐ Installation
- Update via
rustup update stable. - Switch to beta/nightly using
rustup default beta|nightly.
๐ง Key Features in 1.88.0
Let Chains (Rust 2024 Edition Only)
- Allows chaining of
letstatements with&&inifandwhile. - Supports both refutable and irrefutable patterns.
- Improves readability by reducing nesting.
if let A(x) = some_func() && let B(y) = x && y > 0 { ... }
Naked Functions
- Define low-level functions without compiler-generated prologue/epilogue.
- Use
#[unsafe(naked)]andnaked_asm!block for full control.
#[unsafe(naked)]
pub unsafe extern "sysv64" fn f(a: u64, b: u64) -> u64 {
core::arch::naked_asm!("lea rax, [rdi + rsi]", "ret");
}
Boolean Configuration in cfg
- Now supports
cfg(true)andcfg(false)for clearer conditional compilation. - Replaces prior use of
cfg(all())orcfg(any())for unconditional flags.
Cargo Cache Auto-Cleanup
- Cargo now garbage-collects unused cached crates:
- Downloaded files: deleted after 3 months of inactivity.
- Local files: deleted after 1 month.
- Behavior adjustable via
cache.auto-clean-frequency.
โ Stabilized APIs
New Stable APIs
Cell::update,HashMap::extract_if,hint::select_unpredictable, and more.
Now Const-Stable
NonNull<T>::replace,std::ptr::swap_nonoverlapping,Cellmethods, etc.
๐ Other Changes
i686-pc-windows-gnudemoted to Tier 2 (still supported, less tested).
๐ Contributors
- Rust 1.88.0 was made possible by numerous community contributions. Thank you!
For full details, check the Rust 1.88.0 release notes.




