Rust 1.83.0 is here! Known for its efficiency and reliability, Rust once again proves its commitment to empowering developers with this release. Packed with new features, improved stability, and advanced capabilities, Rust 1.83.0 sets the stage for more complex and innovative projects.
How to Get Rust 1.83.0
If you already have Rust installed via rustup, simply update with the command:
rustup update stable
New to Rust? Download it from the official Rust website, and don’t forget to check the complete release notes for detailed information.
What’s New in Rust 1.83.0
New Const Capabilities
This version introduces significant extensions to what can be done in constant (const) contexts. Highlights include:
- Static References: Constants can now reference
static
items.bashstatic S: i32 = 25; const C: &i32 = &S;
- Mutable Raw Pointers: Constants can hold mutable raw pointers, while still ensuring their immutability as final values.
- Mutable References and Pointers: Mutable references or pointers can now be used in constants.
bash
const fn inc(x: &mut i32) { *x += 1; } const C: i32 = { let mut c = 41; inc(&mut c); c };
Stabilized APIs
This release also stabilizes many new functions, such as:
- BufRead::skip_until
- Option::get_or_insert_default
- char::MIN
- UnsafeCell::get_mut
As a developer, I find Rust 1.83.0 to be a game-changer, especially with the extended const capabilities. It opens up new possibilities for compile-time computation, making Rust an even stronger choice for performance-critical applications.
What’s New in Cargo and Clippy?
This release also brings updates to Cargo and Clippy, offering better tooling to maintain code quality and simplify the build process. Check out the release notes for full details.