Rust 1.93 brings musl 1.2.5, allocator improvements, and cfg attributes on asm! lines
Rust 1.93 is now available, highlighting updates that impact both developers and the broader Rust ecosystem. In this release, all *-linux-musl targets ship with musl version 1.2.5, replacing the previous 1.2.3 bundle. This change brings various bug fixes and improvements. However, it also introduces a breaking change affecting static musl builds for x86_64, AArch64, and POWER PPC64LE developers.
Alongside platform updates, the Rust standard library has seen internal changes. Global allocators written in Rust can now safely use the thread-local storage macro and thread inspection without re-entrancy issues. This is made possible by relying on the system allocator for related operations.
Building on language usability, Rust 1.93 enables conditional compilation (cfg) for individual statements within inline assembly blocks. Previously, achieving fine-grained control required duplicating entire asm! blocks. Now, developers can conditionally include statements, improving code clarity and maintainability.
Following these language and platform changes, Rust 1.93 also stabilizes several new APIs within the standard library, offering additional functionality for crate authors and end-users.