Rust-lang updated to stable version 1.3.5.0 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:
SEE ALSO: Speedy Rust framework for web apps burns through the sky
- Closure traits: Adds the implementation of the
FnOnce
,FnMut
, andFn
closure traits forBox
,Box
, andBox
. - Allows coerce closures into unsafe function pointers.
- Call
dbg!()
without an argument: No more need to pass any arguments when using thedbg!
macro. - Rust toolchain natively available for musl based distros
- New methods on the
Range
types: Check if a given value exists in a range. - New
copysign
methods:
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.
SEE ALSO: Meet Osaka, a Rust async for explicit, well-defined code that doesn’t take up too much space
- 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
rustc-cdylib-link-arg
key. - 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.
The post Rust v1.35.0: Language tweaks, including new closure trait implementation appeared first on JAXenter.
Source : JAXenter