Email me

Rust versions / 1.64

Rust release · Sep 22, 2022

Rust 1.64: what's new, what was stabilized

Short answerRust 1.64 was released on Sep 22, 2022: 39 newly stable APIs (future::IntoFuture, future::poll_fn, task::ready!, num::NonZero*::checked_mul, ...); 9 compatibility notes that can affect existing code.

Sep 22, 2022release date
0language stabilizations
39APIs stabilized
-new edition

← Rust 1.63All versionsRust 1.65 →

39 APIs stabilized

future::IntoFuture, future::poll_fn, task::ready!, num::NonZero*::checked_mul, num::NonZero*::checked_pow, num::NonZero*::saturating_mul, num::NonZero*::saturating_pow, num::NonZeroI*::abs, num::NonZeroI*::checked_abs, num::NonZeroI*::overflowing_abs, num::NonZeroI*::saturating_abs, num::NonZeroI*::unsigned_abs, num::NonZeroI*::wrapping_abs, num::NonZeroU*::checked_add, num::NonZeroU*::checked_next_power_of_two, num::NonZeroU*::saturating_add, os::unix::process::CommandExt::process_group, os::windows::fs::FileTypeExt::is_symlink_dir, os::windows::fs::FileTypeExt::is_symlink_file, core::ffi::CStr, core::ffi::FromBytesWithNulError, alloc::ffi::CString, alloc::ffi::FromVecWithNulError, alloc::ffi::IntoStringError, alloc::ffi::NulError, ffi::c_char, ffi::c_double, ffi::c_float, ffi::c_int, ffi::c_long, ffi::c_longlong, ffi::c_schar, ffi::c_short, ffi::c_uchar, ffi::c_uint, ffi::c_ulong, ffi::c_ulonglong, ffi::c_ushort, slice::from_raw_parts

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

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

Stabilized APIs

These types were previously stable in std::ffi, but are now also available in core and alloc:

These types were previously stable in std::os::raw, but are now also available in core::ffi and std::ffi:

These APIs are now usable in const contexts:

Cargo

Misc

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.63All versionsRust 1.65 →

Up next

Next releaseRust 1.65Released Nov 3, 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