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 crates.io. 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 crates.io, 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.

Banner


Insights Into Learning Computer Science
18/12/2024

JetBrains Academy has published the results of a worldwide survey that set out to discover current trends in computer science education and the challenges involved in studying computer science. I [ ... ]



pg_parquet - Postgres To Parquet Interoperability
28/11/2024

pg_parquet is a new extension by Crunchy Data that allows a PostgreSQL instance to work with Parquet files. With pg_duckdb, pg_analytics and pg_mooncake all of which can access Parquet files, is  [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info