The Rust team is happy to announce a new version of Rust, 1.52.0. Rust is a programming language that is empowering everyone to build reliable and efficient software.
If you have a previous version of Rust installed via rustup, getting Rust 1.52.0 is as easy as:
rustup update stable
If you don't have it already, you can get rustup
from the appropriate page on our website, and check out the
detailed release notes for 1.52.0 on GitHub.
What's in 1.52.0 stable
The most significant change in this release is not to the language or standard libraries, but rather an enhancement to tooling support for Clippy.
Previously, running cargo check followed by cargo clippy wouldn't actually
run Clippy: the build caching in Cargo didn't differentiate between the two. In
1.52, however, this has been fixed, which means that users will get the expected
behavior independent of the order in which they run the two commands.
Stabilized APIs
The following methods were stabilized.
Arguments::as_strchar::MAXchar::REPLACEMENT_CHARACTERchar::UNICODE_VERSIONchar::decode_utf16char::from_digitchar::from_u32_uncheckedchar::from_u32slice::partition_pointstr::rsplit_oncestr::split_once
The following previously stable APIs are now const.
char::len_utf8char::len_utf16char::to_ascii_uppercasechar::to_ascii_lowercasechar::eq_ignore_ascii_caseu8::to_ascii_uppercaseu8::to_ascii_lowercaseu8::eq_ignore_ascii_case
Other changes
There are other changes in the Rust 1.52.0 release: check out what changed in Rust, Cargo, and Clippy.
Contributors to 1.52.0
Many people came together to create Rust 1.52.0. We couldn't have done it without all of you. Thanks!