Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rust 1.93(2026-01)

官方发布说明:Announcing Rust 1.93.0

Rust 1.93 更新了内置 musl 到 1.2.5,静态链接的 *-linux-musl 目标获得更可靠的 DNS 解析;依赖旧版 libc 兼容符号的极少数项目需要同步升级 libc

内联汇编现在可以给单条语句或操作数添加 #[cfg],不必为每个目标平台复制整段 asm!

#![allow(unused)]
fn main() {
asm!(
    "nop",
    #[cfg(target_feature = "sse2")]
    "nop",
);
}

此外,标准库允许用 Rust 编写的全局分配器安全地使用线程局部存储,适合实现更复杂的分配统计和调试逻辑。