
Rust 1.93.0 stable version released
Rust 1.93.0 stable version has been officially released.
Related tags
Rust 1.93.0 stable version has been officially released, bringing the following major changes:
Update the bundled musl to version 1.2.5.
All *-linux-musltargets now come with musl version 1.2.5. This primarily affects static musl builds that bundle musl 1.2.3, such as x86_64, aarch64, and powerpc64le. This update includes several fixes and improvements, and introduces a disruptive change that impacts the Rust ecosystem.
For the Rust ecosystem, the primary motivation for this update is a significant improvement to musl’s DNS resolver, first introduced in version 1.2.4 and further refined with bug fixes in version 1.2.5. This will significantly improve the reliability of network operations for portable Linux binaries when using musl targets for static linking, particularly when dealing with large DNS records and recursive name servers.
However, version 1.2.4 also brought a breaking change: the removal of several older compatibility symbols used by the Rust libc crate. A fix for this issue was provided in libc version 0.2.146, released in June 2023 (two and a half years ago), and the project team believes the fix is sufficiently widespread, therefore they are preparing to make the corresponding changes in Rust targets.
Please refer to previous announcements for details.
Allow the global allocator to use thread-local storage
Rust 1.93 tweaked the internals of the standard library to allow global allocators written in Rust to use the std library, and std::thread::current avoids reentrancy issues by using the system allocator.
Rust 1.93 tweaked the internal implementation of the standard library so that global allocators written in Rust can safely use std's thread_local! and std::thread::current by using the system allocator to avoid reentrancy issues.
Please refer to the document for details.
cfg attribute on asm! line
asm!( // or global_asm! or naked_asm! "nop", #[cfg(target_feature = "sse2")] "nop", // ... #[cfg(target_feature = "sse2")] a = const 123, // only used on sse2 );
More News
Want to see more quality content?
Browse all news