Rust v1.35.0: Language tweaks, including new closure trait implementation
Rust continues to be a favorite for developers. In 2019, it polled as the number one most loved programming language in the StackOverflow dev survey. The latest stable release of Rust is here: v1.35.0. This release adds new implementations, new stable APIs, and some tweaks.
Rust-lang updated to stable version 188.8.131.52 on May 23, 2019.
The announcement from the developer team reads:
The Rust team is happy to announce a new version of Rust, 1.35.0. Rust is a programming language that is empowering everyone to build reliable and efficient software.
What did the team add in this new release? The dev team made several new implementations and improvements, including a new version of rustup. Let’s browse through the changelog and see how this update polishes to a shine.
Rust v1.35.0 features
Here are some of the highlights added to the language:
- Closure traits: Adds the implementation of the
Fnclosure traits for
Box<dyn FnMut>, and
- Allows coerce closures into unsafe function pointers.
dbg!()without an argument: No more need to pass any arguments when using the
- Rust toolchain natively available for musl based distros
- New methods on the
Rangetypes: Check if a given value exists in a range.
For more information on the latest release and a full list of changes, refer to the changelog on GitHub.
Additional changes and tweaks
This stable release makes a few little changes for overall improved performance.
- New lint in Clippy: Clippy is a collection of lints that helps developers by catching common mistakes in their code. The latest update adds a new lint.
- Changes in Cargo: Several changes and bug fixes added to Cargo 1.35, including the new
- Speedup on unpacking docs
- Faster in place ASCII case conversions
- Newly stabilized APIs:
Grab the latest version
Upgrade to the latest release via rustup:
(Don’t have rustup? Visit this page to install.)
Want auto-updates? So does Rust. Check out this pull request suggesting self-updates in order to fix bugs right away.
What work has yet to be done on the language? This Reddit comment goes into the details of what’s in store for the language, how far it has come, and how to help future releases meet their goals.