Rust 1.72 Stabilizes APIs
Written by Kay Ewbank   
Tuesday, 12 September 2023

Rust 1.72 has been released with stabilized APIs as well as unlimited Const evaluation time.

Rust is popular for situations including being embedded in other languages, writing programs with specific space and time requirements, and writing low-level code.

rust foundation logo

The recent 1.72 version follows on from Rust 1.70 which was released in June with improvements including a move to enable Cargo's "sparse" protocol by default for reading the index from Until this change, the git protocol cloned a repository that indexed all the crates available in the registry, but this began to cause noticeable delays while updating that repository. The new protocol provides a significant performance improvement when accessing, as it will only download information about the subset of crates that you actually use.

Three APIs have been stabilized in the current release - Send Sync (the sending half of Rust's synchronous ['sync_channel'] type); Try From for str (which tries to convert an &OsStr to a &str); andString::leak (which consumes and leaks aString, returning a mutable reference to the contents).

Another change removes the limit on Const evaluation time. Previous releases limited this to prevent user-provided const evaluation from getting into a compile-time infinite loop, but the developers say that "especially creative Rust code could hit these limits and produce a compiler error", so you can now use an unlimited amount of const evaluation at compile time. To avoid having long compilations without feedback, the compiler will always emit a message after your compile-time code has been running for a while.

One point to note is that the developers plan to move to having Windows 10 as the minimum supported Windows version. Rust 1.75 will be the last to officially support Windows 7 and 8, and when Rust 1.76 is released in February 2024, only Windows 10 and later will be supported as tier-1 targets.

Version 1.72 of Rust is available now.

rust foundation logo

More Information

Rust Foundation Website

Related Articles

Rust Foundation Establishes Security Team

Facebook Open Source Joins Rust Foundation

Rust Team Announces Rust Foundation

Amazon AWS Invests In Rust


To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.


Kotlin 2 Released With Multiplatform K2 Compiler

Kotlin 2.0 has been released. The new version is a major update with improvements including a stable K2 compiler, which is multiplatform from the ground up, and according to JetBrains understands your [ ... ]

Semantic Kernel for Java Now GA

The Microsoft Semantic Kernel (SK) is an open source lightweight framework that lets you easily mix conventional programming languages with AI "prompts". After a year of work since the initial re [ ... ]

More News

C book



or email your comment to: