Email me

Rust versions / 1.80

Rust release · Jul 25, 2024

Rust 1.80: what's new, what was stabilized

Short answerRust 1.80 was released on Jul 25, 2024: 1 language stabilization (Stabilize exclusive_range_pattern feature); 60 newly stable APIs (impl Default for Rc<CStr>, impl Default for Rc<str>, impl Default for Rc<[T]>, impl Default for Arc<str>, ...); 11 compatibility notes that can affect existing code. Point release: 1.80.1 (Aug 8, 2024).

Jul 25, 2024release date
1language stabilizations
60APIs stabilized
-new edition

← Rust 1.79All versionsRust 1.81 →

Language features stabilized

  • Stabilize exclusive_range_pattern feature

60 APIs stabilized

impl Default for Rc<CStr>, impl Default for Rc<str>, impl Default for Rc<[T]>, impl Default for Arc<str>, impl Default for Arc<CStr>, impl Default for Arc<[T]>, impl IntoIterator for Box<[T]>, impl FromIterator<String> for Box<str>, impl FromIterator<char> for Box<str>, LazyCell, LazyLock, Duration::div_duration_f32, Duration::div_duration_f64, Option::take_if, Seek::seek_relative, BinaryHeap::as_slice, NonNull::offset, NonNull::byte_offset, NonNull::add, NonNull::byte_add, NonNull::sub, NonNull::byte_sub, NonNull::offset_from, NonNull::byte_offset_from, NonNull::read, NonNull::read_volatile, NonNull::read_unaligned, NonNull::write, NonNull::write_volatile, NonNull::write_unaligned, NonNull::write_bytes, NonNull::copy_to, NonNull::copy_to_nonoverlapping, NonNull::copy_from, NonNull::copy_from_nonoverlapping, NonNull::replace, NonNull::swap, NonNull::drop_in_place, NonNull::align_offset, <[T]>::split_at_checked, <[T]>::split_at_mut_checked, str::split_at_checked, str::split_at_mut_checked, str::trim_ascii, str::trim_ascii_start, str::trim_ascii_end, <[u8]>::trim_ascii, <[u8]>::trim_ascii_start, <[u8]>::trim_ascii_end, Ipv4Addr::BITS, Ipv4Addr::to_bits, Ipv4Addr::from_bits, Ipv6Addr::BITS, Ipv6Addr::to_bits, Ipv6Addr::from_bits, Vec::<[T; N]>::into_flattened, <[[T; N]]>::as_flattened, <[[T; N]]>::as_flattened_mut, <[T]>::last_chunk, BinaryHeap::new

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.80          # or exactly this one
rustup override set 1.80     # pin a project to it

To require at least this version from users of your crate, set rust-version = "1.80" 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.80-Compiler"></a>

Compiler

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

Libraries

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

Stabilized APIs

These APIs are now stable in const contexts:

  • [<[T]>::last_chunk](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.last_chunk)
  • BinaryHeap::new

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

Cargo

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

Rustdoc

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

Compatibility Notes

<a id="1.80-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.80.1 (Aug 8, 2024)

<a id="1.80.1"></a>

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

← Rust 1.79All versionsRust 1.81 →

Up next

Next releaseRust 1.81Released Sep 5, 2024.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