Rust 1.91.0 released
The latest version of the Rust programming language, 1.91.0, is now available for installation via rustup. If you have a previous version of Rust installed using rustup, you can update it by running the command rustup update stable. Alternatively, if you don't have rustup yet, you can download it from the official Rust website and check out the detailed release notes for 1.91.0.
If you're interested in helping test future releases of Rust, consider updating to use the beta channel (rustup default beta) or the nightly channel (rustup default nightly). Please report any bugs you encounter during testing.
What's New in Rust 1.91.0:
Platform Support: The aarch64-pc-windows-msvc target has been promoted to Tier 1 , offering the highest level of support guarantee for users of 64-bit ARM systems running Windows. This means that the Rust compiler will run the full test suite on this platform for every change merged in the compiler, and prebuilt binaries will be available.
Lint Addition: A new warn-by-default lint has been added to prevent dangling raw pointers from local variables being returned from functions. This is intended to help authors safely interact with raw pointers and unsafe code more generally.
Stabilized APIs:
The following APIs have been stabilized, meaning they are now available for use in all contexts, including const contexts:
- Path::file_prefix: Returns the file name without directory path.
- Various methods for atomic pointers, such as fetch_ptr_add, fetch_or, and others.
- Methods for integers, such as strict_add, strict_sub, and others.
- Methods for panicking hooks, panic hook info payload as a string.
- New methods for paths, path buffers, and durations.
- Implementations of PartialEq for various types, including PathBuf and str.
- Methods for IPv4 and IPv6 addresses.
- Default implementations for Pin<Box<T>>, Pin<Rc<T>>, and Pin<Arc<T>>.
- Various other APIs have been stabilized.
Note that some previously stable APIs are now available in const contexts. These include:
- <[T; N]>::each_ref
- <[T; N]>::each_mut
- OsString::new
- PathBuf::new
- TypeId::of
- ptr::with_exposed_provenance and its mutable variant.
Platform Support Details: The aarch64-pc-windows-msvc target has been promoted to Tier 1 support, while the aarch64-pc-windows-gnullvm and x86_64-pc-windows-gnullvm targets have been promoted to Tier 2 with host tools. Note that llvm-tools and MSI installers are currently missing but will be added in future releases.
Refer to Rust's platform support page for more information on Rust's tiered platform support.
Announcing Rust 1.91.0 | Rust Blog
Empowering everyone to build reliable and efficient software.
