Rust 1.82 released with new Cargo info, improved syntax, and enhanced safety features
Version 1.82.0 of the Rust programming language has been released, introducing several notable features and enhancements. A significant update to Cargo includes the addition of an info subcommand, which provides detailed information about packages in the registry, addressing a long-standing community request.
In this release, Rust introduces the use syntax within certain impl Trait bounds, allowing developers more control over generic lifetime parameters. Additionally, native syntax for creating raw pointers has been integrated, and the language now supports unsafe extern code blocks.
Rust 1.82 also redefines some attributes, such as no_mangle, as “unsafe” due to their potential to cause undefined behavior without an explicit unsafe block. Patterns matching empty types by value can now be omitted, simplifying certain code structures.
The release standardizes rules for NaN (“Not a Number”) values, acknowledging that results may vary based on hardware architecture and other factors. The const assembly operand now allows integers to be used as immediates directly, without needing to store them in a register first.
This version also addresses issues with unsafe statics, includes several stabilized APIs and bug fixes, and continues efforts to support macOS on 64-bit ARM and Mac Catalyst.