Language update adds info subcommand to Cargo that provides detailed information about packages in the Cargo registry. Credit: Mihai Simonia / Shutterstock Rust 1.82, the newest version of the popular memory-safe programming language, fulfills a longstanding request for displaying information in the Cargo package manager registry. Also with Rust 1.82, Apple macOS on 64-bit Arm now offers Rust’s highest guarantee of functionality. The update was announced October 17. Developers using a previous version of Rust can access the update by running the command rustup update stable. For Cargo, Rust adds a cargo info subcommand to show information about a package in the registry. This feature has been requested for nearly 10 years. Third-party extensions like this have been written over the years; this implementation was developed as cargo-information before merging into Cargo itself. Also in Rust 1.82, aarch64-apple-darwin for macOS on 64-bit Arm CPUs now is a tier 1 Rust target, backed by the highest guarantee of working properly. Every change in the Rust repository must pass full tests on every tier 1 target before it can be merged. This target had been introduced as tier 2 in Rust 1.49, making it available in rustup. The new milestone puts the aarch64-apple-darwin target on par with the 64-bit Arm Linux and x86 macOS, Linux, and Windows targets. Additionally, targets for Mac Catalyst, an Apple technology for running iOS applications natively on the Mac, now are tier 2. Rust 1.82 follows the September 5 release of Rust 1.81, which stabilized the Error trait in the Rust core library. Elsewhere in Rust 1.82: Rust now supports the use<..> syntax within certain impl Trait bounds to control which generic lifetime parameters are captured. Return-position impl Trait (RPIT) types in Rust capture certain generic parameters. Capturing a generic parameter allows the parameter to be used in the hidden type. That, in turn, affects borrow checking. Native syntax for creating a raw pointer is featured. It is the responsibility of persons writing the extern block to ensure that all signatures contained within it are correct; thus, developers now can write unsafe extern. A benefit of this is that items within an unsafe extern block can be marked as safe to use. Some Rust attributes, such as no-mangle, can be used to cause undefined behavior without any unsafe block. If this were regular code, it would be required that these be placed in an unsafe {} block, but so far, attributes have not had comparable syntax. To reflect that these attributes can undermine Rust safety guarantees, these now are considered “unsafe” and should be written as follows: #unsafe(no_mangle)] pub fn my global_function (){} Patterns that match empty types now can be omitted. Rust 1.82 standardizes on a set of rules for how NaN (not a number) values behave. The const assembly operand now offers a way to use integers as immediates without first storing them in a register. Related content feature 14 great preprocessors for developers who love to code Sometimes it seems like the rules of programming are designed to make coding a chore. Here are 14 ways preprocessors can help make software development fun again. By Peter Wayner Nov 18, 2024 10 mins Development Tools Software Development feature Designing the APIs that accidentally power businesses Well-designed APIs, even those often-neglected internal APIs, make developers more productive and businesses more agile. By Jean Yang Nov 18, 2024 6 mins APIs Software Development news Spin 3.0 supports polyglot development using Wasm components Fermyon’s open source framework for building server-side WebAssembly apps allows developers to compose apps from components created with different languages. By Paul Krill Nov 18, 2024 2 mins Microservices Serverless Computing Development Libraries and Frameworks news Go language evolving for future hardware, AI workloads The Go team is working to adapt Go to large multicore systems, the latest hardware instructions, and the needs of developers of large-scale AI systems. By Paul Krill Nov 15, 2024 3 mins Google Go Generative AI Programming Languages Resources Videos