github rust-lang/rust 1.91.0
Rust 1.91.0

20 hours ago

Language

Compiler

Platform Support

Refer to Rust's platform support page for more information on Rust's tiered platform support.

Libraries

Stabilized APIs

These previously stable APIs are now stable in const contexts:

Cargo

  • 🎉 Stabilize build.build-dir. This config sets the directory where intermediate build artifacts are stored. These artifacts are produced by Cargo and rustc during the build process. End users usually won't need to interact with them, and the layout inside build-dir is an implementation detail that may change without notice. (config doc) (build cache doc) #15833 #15840
  • The --target flag and the build.target configuration can now take literal "host-tuple" string, which will internally be substituted by the host machine's target triple. #15838 #16003 #16032

Rustdoc

Compatibility Notes

Cargo compatibility notes:

  • cargo publish no longer keeps .crate tarballs as final build artifacts when build.build-dir is set. These tarballs were previously included due to an oversight and are now treated as intermediate artifacts. To get .crate tarballs as final artifacts, use cargo package. In a future version, this change will apply regardless of build.build-dir. #15910
  • Adjust Cargo messages to match rustc diagnostic style. This changes some of the terminal colors used by Cargo messages. #15928
  • Tools and projects relying on the internal details of Cargo's build-dir may not work for users changing their build-dir layout. For those doing so, we'd recommend proactively testing these cases particularly as we are considering changing the default location of the build-dir in the future (cargo#16147). If you can't migrate off of Cargo's internal details, we'd like to learn more about your use case as we prepare to change the layout of the build-dir (cargo#15010).

Internal Changes

These changes do not affect any public interfaces of Rust, but they represent significant improvements to the performance or internals of rustc and related tools.

Don't miss a new rust release

NewReleases is sending notifications on new releases.