Rust 1.97.0 Released with New Symbol Mangling and Cargo Warnings Denial

lwn.net · ⭐️ 8/10 · 2026-07-09

Rust 1.97.0 introduces a new default symbol-mangling scheme, enables denying Cargo warnings via a new flag, and stops hiding linker output after a successful build. These changes improve build reliability and debugging for Rust developers. Denying warnings can help enforce code quality in CI pipelines, while the new mangling scheme ensures more stable symbol names. The new symbol-mangling scheme produces more consistent symbol names across different Rust versions. The Cargo deny warnings feature allows treating warnings as errors, similar to -D warnings in rustc. Removal of hidden linker output means all linker messages are now visible.

Background

Symbol mangling encodes unique names for symbols used by the linker. Rust's previous mangling scheme could change between versions, causing instability. Denying warnings in Cargo has been a long-requested feature to enforce stricter build policies. Previously, linker output was hidden by default if the build succeeded, which could hide useful diagnostics.

References

Read original