Email me

Rust versions / 1.65

Rust release · Nov 3, 2022

Rust 1.65: what's new, what was stabilized

Short answerRust 1.65 was released on Nov 3, 2022: 4 language stabilizations (Stabilize let else); 7 newly stable APIs (std::backtrace::Backtrace, Bound::as_ref, std::io::read_to_string, <*const T>::cast_mut, ...); 11 compatibility notes that can affect existing code.

Nov 3, 2022release date
4language stabilizations
7APIs stabilized
-new edition

← Rust 1.64All versionsRust 1.66 →

Language features stabilized

  • Stabilize let else
  • Stabilize generic associated types (GATs)
  • Stabilize breaking from arbitrary labeled blocks ("label-break-value")
  • Stabilize raw-dylib for Windows x86_64, aarch64, and thumbv7a

7 APIs stabilized

std::backtrace::Backtrace, Bound::as_ref, std::io::read_to_string, <*const T>::cast_mut, <*mut T>::cast_const, <*const T>::offset_from, <*mut T>::offset_from

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

To require at least this version from users of your crate, set rust-version = "1.65" 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

Compiler

New targets:

Libraries

Stabilized APIs

These APIs are now stable in const contexts:

Cargo

Compatibility Notes

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.

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

← Rust 1.64All versionsRust 1.66 →

Up next

Next releaseRust 1.66Released Dec 15, 2022.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