Email me

Rust versions / 1.66

Rust release · Dec 15, 2022

Rust 1.66: what's new, what was stabilized

Short answerRust 1.66 was released on Dec 15, 2022: 1 language stabilization (Stabilize sym operands in inline assembly); 12 newly stable APIs (proc_macro::Span::source_text, uX::{checked_add_signed, overflowing_add_signed, saturating_add_signed, wrapping_add_signed}, iX::{checked_add_unsigned, overflowing_add_unsigned, saturating_add_unsigned, wrapping_add_unsigned}, iX::{checked_sub_unsigned, overflowing_sub_unsigned, saturating_sub_unsigned, wrapping_sub_unsigned}, ...); 9 compatibility notes that can affect existing code. Point release: 1.66.1 (Jan 10, 2023).

Dec 15, 2022release date
1language stabilizations
12APIs stabilized
-new edition

← Rust 1.65All versionsRust 1.67 →

Language features stabilized

  • Stabilize sym operands in inline assembly

12 APIs stabilized

proc_macro::Span::source_text, uX::{checked_add_signed, overflowing_add_signed, saturating_add_signed, wrapping_add_signed}, iX::{checked_add_unsigned, overflowing_add_unsigned, saturating_add_unsigned, wrapping_add_unsigned}, iX::{checked_sub_unsigned, overflowing_sub_unsigned, saturating_sub_unsigned, wrapping_sub_unsigned}, BTreeSet::{first, last, pop_first, pop_last}, BTreeMap::{first_key_value, last_key_value, first_entry, last_entry, pop_first, pop_last}, AsFd, impl TryFrom<Vec<T>> for Box<[T; N]>, core::hint::black_box, Duration::try_from_secs_{f32,f64}, Option::unzip, std::os::fd

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

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

Libraries

  • [Fix #[derive(Default)] on a generic #[default] enum adding unnecessary Default bounds](https://github.com/rust-lang/rust/pull/101040/)
  • Update to Unicode 15

Stabilized APIs

Rustdoc

Cargo

See detailed release notes for more.

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.

1.66.1 (Jan 10, 2023)

  • Added validation of SSH host keys for git URLs in Cargo (CVE-2022-46176)

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

← Rust 1.65All versionsRust 1.67 →

Up next

Next releaseRust 1.67Released Jan 26, 2023.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