Email me

Rust versions / 1.85

Rust release · Feb 20, 2025

Rust 1.85: what's new, what was stabilized

Short answerRust 1.85 was released on Feb 20, 2025: the Rust 2024 edition; 2 language stabilizations (Stabilize async closures); 33 newly stable APIs (BuildHasherDefault::new, ptr::fn_addr_eq, io::ErrorKind::QuotaExceeded, io::ErrorKind::CrossesDevices, ...); 9 compatibility notes that can affect existing code. Point release: 1.85.1 (Mar 18, 2025).

Feb 20, 2025release date
2language stabilizations
33APIs stabilized
2024new edition

← Rust 1.84All versionsRust 1.86 →

Language features stabilized

  • Stabilize async closures
  • [Stabilize #[diagnostic::do_not_recommend]](https://github.com/rust-lang/rust/pull/132056)

33 APIs stabilized

BuildHasherDefault::new, ptr::fn_addr_eq, io::ErrorKind::QuotaExceeded, io::ErrorKind::CrossesDevices, {float}::midpoint, {integer}::midpoint, NonZeroU*::midpoint, std::iter::Extend, FromIterator<, std::task::Waker::noop, mem::size_of_val, mem::align_of_val, Layout::for_value, Layout::align_to, Layout::pad_to_align, Layout::extend, Layout::array, std::mem::swap, std::ptr::swap, NonNull::new, HashMap::with_hasher, HashSet::with_hasher, BuildHasherDefault::new, <float>::recip, <float>::to_degrees, <float>::to_radians, <float>::max, <float>::min, <float>::clamp, <float>::abs, <float>::signum, <float>::copysign, MaybeUninit::write

Can it break my build?

The release lists these compatibility notes. Most only affect rare code, but read them before you raise your toolchain in CI:

Use it

rustup update stable        # get the newest release
rustup install 1.85          # or exactly this one
rustup override set 1.85     # pin a project to it

To require at least this version from users of your crate, set rust-version = "1.85" under [package] in Cargo.toml. Cargo then refuses to build it on older compilers with a clear message, and with resolver 3 (the default on the 2024 edition, Rust 1.85+) it also prefers dependency versions that support it.

Full release notes

Language

<a id="1.85.0-Compiler"></a>

Compiler

<a id="1.85.0-Platform-Support"></a>

Platform Support

Refer to Rust's [platform support page][platform-support-doc] for more information on Rust's tiered platform support.

<a id="1.85.0-Libraries"></a>

Libraries

It will be un-deprecated in a subsequent release.

<a id="1.85.0-Stabilized-APIs"></a>

Stabilized APIs

These APIs are now stable in const contexts:

<a id="1.85.0-Cargo"></a>

Cargo

<a id="1.85.0-Rustdoc"></a>

Rustdoc

<a id="1.85.0-Compatibility-Notes"></a>

Compatibility Notes

This is done to enable build systems like Cargo to set it conditionally, as not all source files are suitable for unit tests. Cargo (for now) unconditionally sets the test cfg as a well known cfg. [^check-cfg]: https://doc.rust-lang.org/nightly/rustc/check-cfg.html

This changed c_char from an i8 to u8 or vice versa on many Tier 2 and 3 targets (mostly Arm and RISC-V embedded targets). The new definition may result in compilation failures but fixes compatibility issues with C.

The libc crate matches this change as of its 0.2.169 release.

<a id="1.85.0-Internal-Changes"></a>

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.

1.85.1 (Mar 18, 2025)

<a id="1.85.1"></a>

Release notes from the Rust project's RELEASES.md (MIT or Apache-2.0); summaries above are ours.

← Rust 1.84All versionsRust 1.86 →

Up next

Next releaseRust 1.86Released Apr 3, 2025.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ