Rust Release Notes

Follow

52 release notes curated from 32 sources by the Releasebot Team. Last updated: Nov 28, 2026

Get this feed:
  • Nov 27, 2026
    • Date parsed from source:
      Nov 27, 2026
    • First seen by Releasebot:
      Nov 28, 2026
    • Modified by Releasebot:
      Nov 28, 2026
    Rust logo

    Rust

    Announcing Rust 1.100.1

    Rust releases 1.100.1, a point update that fixes a regression affecting how some types are recognized as implementing Iterator, restoring correct type inference for valid implementations.

    The Rust team has published a new point release of Rust, 1.100.1. Rust is a programming language that is empowering everyone to build reliable and efficient software.

    If you have a previous version of Rust installed via rustup, getting Rust 1.100.1 is as easy as:

    $ rustup update stable
    

    If you don't have it already, you can get rustup from the appropriate page on our website.

    If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (rustup default beta) or the nightly channel (rustup default nightly). Please report any bugs you might come across!

    What's in 1.100.1

    Rust 1.100.1 fixes a regression where some types were not inferred as having Iterator impls.

    We reverted a change to the unstable const version of Iterator in Rust 1.100.0, which cannot actually be used by stable code, but accidentally prevented some types with valid Iterator impls from being seen as actually implementing Iterator.

    Contributors to 1.100.1

    Many people came together to create Rust 1.100.1. We couldn't have done it without all of you. Thanks!

    Original source
  • Nov 27, 2026
    • Date parsed from source:
      Nov 27, 2026
    • First seen by Releasebot:
      Nov 27, 2026
    • Modified by Releasebot:
      Nov 27, 2026
    Rust logo

    Rust

    Rust 1.100.1

    Rust fixes an Iterator inference regression that prevented some valid implementations from being recognized.

    library: fix regression where some types were not inferred as having Iterator impls

    This backports a change to the unstable const version of Iterator, which unintentionally caused existing code to not be seen as implementing Iterator when a valid implementation was present.

    Original source
  • All of your release notes in one feed

    Join Releasebot and get updates from Rust and hundreds of other software products.

    Create account
  • Nov 12, 2026
    • Date parsed from source:
      Nov 12, 2026
    • First seen by Releasebot:
      Nov 13, 2026
    Rust logo

    Rust

    Rust 1.100.0

    Rust releases updates with stabilized language features and custom allocators, new Cargo linting and dependency cooldown controls, expanded platform support, and compatibility changes across the compiler, standard library, and test harness.

    Language

    • Stabilize never type
    • Lint against repeated #[repr(..)] attributes
    • Stabilize extern "custom"
    • Extend dropping_references, dropping_copy_types and undropped_manually_drops lints to drop_in_place
    • unfulfilled_lint_expectations no longer fires on #[expect(dead_code)] inside code that is covered by a dead parent's diagnostic
    • Turn the error for repr(align) fields in a repr(packed) type into a deny-by-default lint aligned_fields_in_packed
    • volatile: allow accesses to non-AM memory to trap

    Compiler

    • Stabilize -Cprofile-sample-use
    • Enable next solver by default in orphanck

    Platform Support

    • i686-pc-windows-gnu is now a tier 2 without host tools target
    • Promote wasm32-wasip3 to Tier 2
    • Add new Tier 3 target powerpc64-sony-ps3
    • Refer to Rust's platform support page for more information on Rust's tiered platform support.

    Libraries

    • Stabilize custom allocators
    • Map ENOTSUP to ErrorKind::Unsupported
    • Fix soundness issues in std::sys::pal::sgx::waitqueue::unsafe_list

    Stabilized APIs

    • impl PartialEq<Cow<'_, [U]>> for Vec<T, A>
    • impl PartialEq<Cow<'_, [U]>> for &[T]
    • impl PartialEq<Cow<'_, [U]>> for &mut [T]
    • std::alloc::Allocator
    • std::alloc::Global
    • std::alloc::System
    • impl Allocator for Global
    • impl Allocator for System
    • impl<A: Allocator> Allocator for &A
    • impl<T: Allocator, A: Allocator> Allocator for Box<T, A>
    • impl<A: Allocator> Allocator for &mut A
    • impl<T: Allocator, A: Allocator> Allocator for Arc<T, A>
    • impl<T: Allocator, A: Allocator> Allocator for Rc<T, A>
    • Box::new_in
    • Box::from_raw_in
    • Box::from_non_null_in
    • Box::into_raw_with_allocator
    • Box::into_non_null_with_allocator
    • Box::allocator
    • Vec::new_in
    • Vec::with_capacity_in
    • Vec::from_raw_parts_in
    • Vec::from_parts_in
    • Vec::into_raw_parts_with_allocator
    • Vec::into_parts_with_allocator
    • Vec::allocator
    • Child::main_thread_handle
    • impl Default for std::sync::Once
    • bool::toggle
    • Box::take
    • Box::map
    • Rc::map
    • Arc::map
    • impl AsRef<T> for !
    • impl AsMut<T> for !
    • core::mem::DropGuard
    • core::mem::conjure_zst
    • UnsafeCell::replace
    • UnsafeCell::as_ref_unchecked
    • UnsafeCell::as_mut_unchecked
    • str::trim_prefix
    • str::trim_suffix
    • [T]::trim_prefix
    • [T]::trim_suffix
    • Path::trim_prefix
    • Vec::from_fn
    • os::windows::process::CommandExt::show_window

    Cargo

    • Introduced Cargo's own linting system: some Cargo warnings are now emitted as lints that users can control in the [lints.cargo] table. This includes a new built-in unused dependency check via the cargo::unused_dependencies lint. docs #17298
    • Introduced minimum publish age configurations, also known as dependency cooldowns. When the relevant config is set, the resolver ignores versions published more recently than that, unless they are already in Cargo.lock. (RFC 3923) docs #17335
    • cargo-install: now uses the existing lockfile in the .crate tarball by default. --locked in cargo install becomes a no-op. #17388
    • Cargo now uses a new directory layout for intermediate build artifacts. Tools that inspect the build directory may need to use Cargo’s JSON messages to locate build artifacts instead of relying on the build directory layout. The layout is not a stable interface and is subject to change. (build cache doc) #17354

    Rustdoc

    • Add new invalid_markdown_table rustdoc lint

    Compatibility Notes

    • Closures now more precisely capture variables used in if let. This may cause new errors
    • Check dyn-compatibility of trait objects in more places
    • Infallible is now a type alias to !
    • The never type fallback was changed to ! on all editions
    • box patterns are no longer syntactically allowed
    • Report Query Cycle errors in more cases when computing the layout of enums with explicit discriminants
    • Always escape grapheme extenders in str::escape_debug
    • Make let-else respect macro_rules expr metavariable grouping
    • Iterator::{min,max}(_by_key) changed which Ord methods they use. This cannot change behaviour (other than being potentially faster) for types correctly following the Ord rules, but may impact types with inconsistent trait implementations.
    • Emit an error when trying to enable SSE/AVX on an x86 (32bit or 64bit) softfloat target
    • Require windowed (and exception) for Xtensa ABI
    • windows-gnullvm: always link libunwind statically
    • From version 1.94 up to 1.100 a number of ARMv7-A hardfloat targets required the VFPv3-D32 FPU as a minimum, as they erroneously had the d32 feature in their baseline list of features. Breakage introduced as a result of correcting this can be fixed by passing -Ctarget-feature=+d32 to Rust.
    • Change "Rust" ABI on x86 to use SSE registers if they are always-available for the current target
    • Make the ambiguous_glob_imported_traits lint fire in slightly more cases
    • Make +fix-cortex-a53-835769 a default feature for aarch64-unknown-fuchsia
    • Some impls on Box have been generalised to arbitrary allocators, which may cause new type inference errors
    • The standard library now uses Unicode version 18.0.0
    • WASI SDK version was bumped from 33 to 34
    • On ARM targets, -Ctarget-feature/-Ctarget-cpu values that would alter the ABI are rejected as hard errors now.

    Other

    • Test harness now allows passing --test-threads and --color multiple times, with later arguments overriding earlier ones
    Original source
  • Nov 12, 2026
    • Date parsed from source:
      Nov 12, 2026
    • First seen by Releasebot:
      Nov 12, 2026
    Rust logo

    Rust

    Announcing Rust 1.100.0

    Rust releases version 1.100 with major language and Cargo updates, including stabilization of the never type and allocator APIs, rollback helpers, unused-dependency warnings, and dependency cooldowns that help reduce supply-chain risks.

    The Rust team is happy to announce a new version of Rust, 1.100.0. Rust is a programming language empowering everyone to build reliable and efficient software.

    If you have a previous version of Rust installed via rustup, you can get 1.100.0 with:

    $ rustup update stable
    

    If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes for 1.100.0.

    If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (rustup default beta) or the nightly channel (rustup default nightly). Please report any bugs you might come across!

    What's in 1.100.0 stable

    • Never type
    • Allocator API
    • DropGuard API
    • Conjuring zero-sized types
    • Reporting unused dependencies in Cargo
    • Reducing Cargo cache collisions
    • Cargo min-publish-age
    • Stabilized APIs

    Never type

    After 10 years and 5 failed stabilization attempts, the never type is finally stable! This also completes the project goal for this work.

    The never type, spelled ! in code, is the canonical uninhabited type. It represents the type of diverging computations – computations which never resolve to any value – where any code that follows is unreachable. Expressions that terminate control flow, such as return, break, and std::process::exit, also have the type !.

    Since having a value of the never type is impossible, Rust permits a never-to-any coercion, allowing to turn ! into any other type (this is what distinguishes it from any other uninhabited types). This can be used, for example, to not return a value from one of the branches of a match or an if:

    fn mrrrow(option: Option<u32>) {
        let value = match option {
            // `x` has type `u32`
            Some(x) => x,
            // `return` has type `!`, which is then coerced to `u32`,
            // allowing the `match` to pass type checking.
            None => return,
            // ...
        };
        // ...
    }
    

    While the never type could already be used and observed this way, and even named in the return type of functions (-> !), this release allows naming the never type anywhere:

    fn infallible_unwrap<T>(res: Result<T, !>) -> T {
        // ^^ writing `Result<_, !>` was not allowed before
        let Ok(v) = res;
        v
    }
    

    Additionally this release changes Infallible to be an alias to the never type. That makes all old APIs that used Infallible be compatible with using !. This was the plan ever since the introduction of Infallible and is one of the reasons why the never type stabilization was so hard (waffle gave a talk about some of the troubles of the stabilization).

    Unfortunately, to allow changing Infallible, we had to introduce a breaking change. This release changes the "never type fallback" from () to ! in editions before 2024 (i.e. 2015, 2018, and 2021), similarly to what has already been done in edition 2024. This should largely be unnoticeable, but can affect code in some rare cases (for example when ignoring a result of a function returning a generic parameter). Note that this change might also make the compiler detect more code as unreachable.

    We tried to minimize the impact of this breaking change as much as possible, by providing future compatibility warnings far in advance and releasing fixes to public crates that have been broken by this. If a dependency is failing due to issues with the never type, consider updating it, as a fix might have already been released for it.

    Allocator API

    This release brings about the stabilization of the core parts of allocator_api, enabling library authors to define custom allocators that can be used together with certain standard library types - currently Vec and Box. These are enabled through the newly-stabilized Allocator trait.

    This is the foundation of the Allocators 1.0 project goal. A lot remains to be done still, including expanding the API surface usable with custom allocators and stabilizing their use on more collections and pointer types; with the core trait and design out of the way though, expect to see more being stabilized soon!

    DropGuard: run a closure on every exit path

    The Drop trait in Rust makes it possible to run code when a variable goes out of scope, regardless of whether we return, ?, or panic. Drop being a part of types means that in Rust you never have to close a socket.

    Implementing Drop can however feel a little inconvenient when all you want is to run some code unconditionally when a function exits. This is why we’re introducing core::mem::DropGuard: a new helper type that runs a closure when dropped.

    DropGuard takes two arguments: a variable and a closure. It implements Deref and DerefMut so you can keep working with the variable as normal. But when dropped it runs the closure and consumes the variable.

    DropGuard also implements a dismiss method which returns the variable from the guard without running the destructor. This makes it possible to quickly implement all-or-nothing transaction-like APIs with a rollback. Here is an example implementing a parser which uses a guard to roll back mutations in case of failure:

    use std::mem::DropGuard;
    use std::num::ParseIntError;
    
    /// Attempt to parse all `strings` and push them into `nums`.
    /// If parsing any of them fails, `nums` remains unchanged.
    fn parse_all(nums: &mut Vec<u32>, strings: &[&str]) -> Result<(), ParseIntError> {
        let len = nums.len();
        let mut nums = DropGuard::new(nums, move |nums| {
            nums.truncate(len); // ← 1. Reset the vec on failure
        });
    
        for s in strings {
            nums.push(s.parse()?); // ← 2. If `?` returns an error, roll back
        }
    
        DropGuard::dismiss(nums); // ← 3. Parsing successful, dismiss the guard
        Ok(())
    }
    

    Conjuring zero-sized types

    As Rust's unsafe code guidelines are still being decided, it became clear that it would be very useful to decide what exactly it means to create zero-sized types in an unsafe way, and what we should recommend for people to do this.

    This question is answered in Rust 1.100 with a single function: std::mem::conjure_zst.

    Instead of transmuting (), MaybeUninit::uninit().assume_init(), or various other incantations, this is the dedicated way to create a value of a zero-sized type when you know that doing so is safe to do. If an inhabited type has no size, we know exactly what value it must be: nothing.

    Of course, APIs often rely on the inability to construct such types for safety, and that's why this function is unsafe. For example, PyO3's Python<'py> is a zero-sized marker token that represents holding the Python GIL (global interpreter lock). Many of Python's APIs require holding this lock to be safe, but conjuring a token from thin air would allow safe PyO3 calls to violate that precondition.

    Reporting unused dependencies in Cargo

    Building dependencies that are no longer used or are only needed for specific platforms can slow down builds. Rustc has the unused_crate_dependencies lint for this but it has false positives when used with Cargo because dependencies may be shared between multiple build targets, e.g. dependencies.tracing-subscriber being available for every bin in a package when only some may use it.

    Cargo now reports unused dependencies to users, e.g.

    warning: unused dependency `tracing-subscriber`
    
    --> Cargo.toml:23:1
    
    |
    
    23 | tracing-subscriber.workspace = true
    
    | ^^^^^^^^^^^^^^^^^^
    
    |
    
    = note: `cargo::unused_dependencies` is set to `warn` by default
    
    help: consider removing the dependency on `tracing-subscriber`
    

    A limitation of this warning is that it will only appear when building every build target that may use an entry in a dependencies table. For example, running cargo check --bin foo won't show warnings for unused [dependencies] because another bin may be present that uses them. No warning will be shown for unused dev-dependencies because there isn't a way to ensure every development build target is built.

    This warning is being introduced as part of a new linting system for Cargo, controlled by the [lints.cargo] table in Cargo.toml, completing this project goal. See also the other lints that have been introduced.

    Reducing Cargo cache collisions

    Cargo builds all libraries and binaries in the build-dir and then uplifts final artifacts to the target-dir. At this time, these share a common parent directory. Different build configurations, like --features, can lead to different copies of libraries and binaries in the build-dir. These copies are kept unique by a build-configuration hash but this hash was not always applied due to platform constraints. This can lead to extra rebuilds, missed rebuilds, confusion over what binaries or libraries are used, and so on. These problems get exacerbated when sharing a build-dir across git worktrees.

    The build-dir now consistently applies the build-configuration hash to all content by organizing the directories around their build step, rather than their file type, and moving the hash from a file's name to the parent directory.

    This work began with the build directory layout project goal in 2025, and its stabilization is a milestone toward a new project goal, unblocking future improvements such as cache garbage collection, cross-workspace cache de-duplication, cross-workspace caching, and fine grain locking.

    We previously published a call for testing for the changes that are now taking effect. While this is an internal change, this may break build processes and tests that had workarounds for missing or incomplete features. In some cases, the workaround is no longer needed. See cargo#17287 for possible solutions and to add any new use cases.

    Cargo min-publish-age a.k.a. dependency cooldowns

    Malicious versions of packages are often caught within hours or days after being published, by either automated scanners or by the community. Rust 1.100 stabilizes Cargo's min-publish-age aware dependency resolution, which lets you wait for that window before it picks up newly published versions. This practice is also known as dependency cooldowns.

    You can opt in via .cargo/config.toml:

    [registry]
    global-min-publish-age = "3 days"
    

    When selecting versions, Cargo now skips any version published more recently than that, and tells you what it held back:

    $ cargo update
    Updating crates.io index
    Locking 2 packages to highest compatible version as of min-publish-age
    Adding cc v1.11.0 (available: v1.18.0, published 3 hours ago)
    Adding clap 4.6.7 (available: 4.6.9, published 2 days ago)
    

    When a new version is needed right away, you can override the check for a single update:

    $ CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow cargo update clap --precise 4.6.9
    Updating crates.io index
    Updating clap 4.6.7 -> clap 4.6.9 (published 2 days ago, minimum age 3 days)
    

    The newer version will be recorded in Cargo.lock and kept from then on until a later cargo update re-resolves it.

    A few things to keep in mind:

    • This depends on the registry recording when each version was published. Versions without a pubtime field in the index are never held back.
    • cargo install ignores the minimum publish age, for both the installed crate and its dependencies. Pin a version with cargo install [email protected] if needed.
    • Cooldowns reduce the risk from some supply chain attacks but are not a complete defense on their own. Please keep reviewing dependency updates as you otherwise would.

    Further work to protect the ecosystem is planned under the crates.io supply chain hardening project goal, including quarantine support and automated detection of suspicious releases.

    Stabilized APIs

    • impl PartialEq<Cow<'_, [U]>> for Vec<T, A>
    • impl PartialEq<Cow<'_, [U]>> for &T
    • impl PartialEq<Cow<'_, [U]>> for &mut T
    • std::alloc::Allocator
    • std::alloc::Global
    • std::alloc::System
    • impl Allocator for Global
    • impl Allocator for System
    • impl<A: Allocator> Allocator for &A
    • impl<T: Allocator, A: Allocator> Allocator for Box<T, A>
    • impl<A: Allocator> Allocator for &mut A
    • impl<T: Allocator, A: Allocator> Allocator for Arc<T, A>
    • impl<T: Allocator, A: Allocator> Allocator for Rc<T, A>
    • Box::new_in
    • Box::from_raw_in
    • Box::from_non_null_in
    • Box::into_raw_with_allocator
    • Box::into_non_null_with_allocator
    • Box::allocator
    • Vec::new_in
    • Vec::with_capacity_in
    • Vec::from_raw_parts_in
    • Vec::from_parts_in
    • Vec::into_raw_parts_with_allocator
    • Vec::into_parts_with_allocator
    • Vec::allocator
    • Child::main_thread_handle
    • impl Default for std::sync::Once
    • bool::toggle
    • Box::take
    • Box::map
    • Rc::map
    • Arc::map
    • impl AsRef for !
    • impl AsMut for !
    • core::mem::DropGuard
    • core::mem::conjure_zst
    • UnsafeCell::replace
    • UnsafeCell::as_ref_unchecked
    • UnsafeCell::as_mut_unchecked
    • str::trim_prefix
    • str::trim_suffix
    • Path::trim_prefix
    • Vec::from_fn
    • os::windows::process::CommandExt::show_window

    Other changes

    Check out everything that changed in Rust, Cargo, and Clippy.

    Contributors to 1.100.0

    Many people came together to create Rust 1.100.0. We couldn't have done it without all of you. Thanks!

    Original source
  • Oct 16, 2026
    • Date parsed from source:
      Oct 16, 2026
    • First seen by Releasebot:
      Oct 17, 2026
    Rust logo

    Rust

    Rust 1.99.1

    Rust fixes FFI boolean miscompilation and missing `wcslen` symbols, and improves macOS LLVM library path handling.

    • library: fix missing symbol wcslen on UEFI and embedded targets
    • rustc: fix miscompilation of FFI bool return values on x86_64
    • rust-lld: add the rpath for libLLVM on macOS
    Original source
  • Similar to Rust with recent updates:

  • Oct 15, 2026
    • Date parsed from source:
      Oct 15, 2026
    • First seen by Releasebot:
      Oct 16, 2026
    Rust logo

    Rust

    1.99.1

    Rust releases version 1.99.1.

    1.99.1 release

    Original source
  • Oct 15, 2026
    • Date parsed from source:
      Oct 15, 2026
    • First seen by Releasebot:
      Oct 15, 2026
    Rust logo

    Rust

    Announcing Rust 1.99.1

    Rust releases 1.99.1, a point update that fixes regressions affecting linking, x86_64 FFI bool return values, and rust-lld on macOS, improving reliability across affected targets.

    The Rust team has published a new point release of Rust, 1.99.1. Rust is a programming language that is empowering everyone to build reliable and efficient software.

    If you have a previous version of Rust installed via rustup, getting Rust 1.99.1 is as easy as:

    rustup update stable
    

    If you don't have it already, you can get rustup from the appropriate page on our website.

    What's in 1.99.1

    Rust 1.99.1 fixes the following regressions from prior releases:

    • Missing symbol wcslen: Some Rust targets were getting link errors for missing wcslen, and that function is now present in Rust's compiler-builtins library as a fallback.

      The LLVM loop-idiom-wcslen pass may introduce calls to wcslen as an optimization, and some Rust targets did not have that function readily available in libc or elsewhere. The UEFI targets in particular were broken for any project using std, as some of these calls were introduced in the precompiled standard library, but the issue was also reproducible for similar user code patterns.

    • Miscompilation of FFI bool return values on x86_64: Rust functions returning bool through FFI could leave bits 1-7 of the return register unspecified, causing callers to observe raw values other than 0 or 1. This return type is now marked for zero-extension again, as required by the ABI.

    • rust-lld failed to load libLLVM on macOS: This linker could fail to run if the compiler was invoked without the rustup proxy, as there was no direct setting for the appropriate library search path. Now rust-lld is built with an rpath entry for the directory containing libLLVM.dylib.

    If you'd like to help us out by testing future releases, you might consider using the beta (rustup default beta) and nightly (rustup default nightly) channels locally and in your CI. Please report any bugs you might come across!

    Contributors to 1.99.1

    Many people came together to create Rust 1.99.1. We couldn't have done it without all of you. Thanks!

    Original source
  • Oct 1, 2026
    • Date parsed from source:
      Oct 1, 2026
    • First seen by Releasebot:
      Oct 1, 2026
    Rust logo

    Rust

    Rust 1.99.0

    Rust releases a broad compiler and library update with new lint checks, more stabilized APIs, Cargo workflow improvements, platform support gains, and performance wins in rustc, Cargo, and rustdoc. It also tightens compatibility rules and expands unsafe and macro-related diagnostics.

    Language

    Add allow-by-default raw_borrows_via_references lint that checks for references that decay immediately into raw borrows

    Extend unconditional_panic lint to function calls that panic when the chunks/windows size is zero

    Stabilize C-variadic function definitions

    Stabilize the ability to use #[unsafe(naked)] functions to define C-variadic functions (#![feature(c_variadic_naked_functions]).

    Trait methods are now resolved on an adjusted never type (producing a FCW)

    Coerce from inference variables to trait objects if the inference variable is related via subtyping to a type that is known to be Sized

    Stabilize #[my_macro] mod foo;. This allows outlined modules (mod foo;) anywhere in the body of a custom attribute or derive macro.

    Fix the overflowing_literals lint with repeated negation. For instance, it will now no longer lint on --128_i8, which is already detected by the arithmetic_overflow lint.

    Add POSIX symbols to the invalid_runtime_symbol_definitions and suspicious_runtime_symbol_definitions lints

    Lint unused #[path] attributes on inline modules

    Enable unreachable_cfg_select_predicates lint as part of unused lint group

    Stabilize passing 128-bit integers via vector registers with asm! on x86

    Explicitly document that some allocations are allowed to grow in-place (but none are allowed to shrink)

    We now guarantee that the contents of an UnsafeCell can be accessed without going through get

    The invalid_reference_casting lint was adjusted accordingly

    Account for globally enabled target features in global_asm!

    Warn if an invalid doc attribute is used on a macro invocation

    Compiler

    Convert -Ctarget-cpu into a target-modifier for AVR, AMDGCN and NVPTX

    Enable static_position_independent_executables on all gnu targets

    When providing a suggestion about a missing method, rustc now prefers an exactly matching name from a doc alias attribute over a similarity search from other method names. If your new users sometimes expect a method under a different name, adding a doc alias will now help them find it via rustc suggestions, in addition to helping them find it via rustdoc search: When suggesting method names, prefer exact doc aliases over similar names

    Platform Support

    Promote riscv64-unknown-linux-musl to Tier 2 with host tools

    Refer to Rust's platform support page for more information on Rust's tiered platform support.

    Libraries

    Iteration on RangeInclusive (a..=b ranges) is now optimized better in some circumstances. As a side effect of this, the behavior of RangeInclusive values that has already been exhausted (as an iterator) has changed. For example, the return values of start() and end() on such ranges may return different values, and using such ranges as slice indexes may have different behavior. These behaviors were not guaranteed to be stable, so these changes are considered to not be breaking changes.

    Relax transmute_copy to accept ?Sized types

    Update transmute_copy to use a non-unwinding panic

    Don't escape U+FF9E and U+FF9F in escape_debug_ext

    Re-export core::fmt::NumBuffer in alloc (and std)

    Stabilized APIs

    IntoIterator for Box<>[T; N]>

    IntoIterator for &Box<[T; N]>

    IntoIterator for &mut Box<[T; N]>

    VecDeque::retain_back

    core::ffi::VaList

    Box::into_non_null

    Box::from_non_null

    Vec::into_parts

    Vec::from_parts

    core::mem::size_of_val_raw

    core::mem::align_of_val_raw

    core::alloc::Layout::for_value_raw

    String::from_utf8_lossy_owned

    string::FromUtf8Error::into_utf8_lossy

    FusedIterator for StepBy<I>

    std::fs::set_times

    std::fs::set_times_nofollow

    Cargo

    Add a new built-in profile debug. This is a preparation for transitioning the dev profile away from debugging to give a saner default for faster development iterations. Currently there is no difference between dev and debug profiles. docs #17214

    Workspace members on edition 2024 or later can now override an inherited workspace dependency's default-features field. For example, serde = { workspace = true, default-features = false } now turns off default features even when the workspace definition enables them. On earlier editions, default-features = false is ignored with a warning. (RFC 3945) #17126

    See also the full Cargo changelog

    Rustdoc

    Add new unused_footnote_definition rustdoc lint

    Smarter filtering of trait impls yields performance improvements of 20% on average and up to 40% on some real-world crates. (1, 2, 3, 4, 5)

    Compatibility Notes

    Fully deprecate the legacy integral modules. For example, std::i32::MAX should be accessed via i32::MAX instead.

    Upgrade no_mangle_generic_items into hard error

    The Pin::new_unchecked has had its safety invariants changed slightly

    Do not promote references to extern statics

    Ensure that the inferred types of let patterns typecheck

    hermit/fs: Return unsupported() instead of from_raw_os_error(22)

    Fixed a bug where #[repr(simd)] was accidentally allowed on macro invocations on stable Rust

    Abort const-eval when there are generics in the type of the value being produced

    Attributes not applying to anything are now an error in code blocks in doc comments

    Box::leak: tell people to avoid unleaking

    PowerPC inline ASM: Fix scalar floats being in the wrong vector lane on little endian

    Do not take doc(cfg()) into account when filtering doctests

    Infer anonymous lifetimes in the types of associated consts as 'static

    Macros that expand to a semicolon now produce a warning lint (semicolon_in_expressions_from_non_local_macros) even when the macro comes from another crate. Previously, such warnings only appeared for macros from the same crate, to avoid showing warnings that can't be fixed locally; however, this masked problems, as integration tests from the crate providing the macro get compiled as a separate crate, so tests often wouldn't reveal this issue. If you encounter a lint like this, please make sure to report it to the crate providing the macro so they can fix it; don't just silence it in your own crate.

    semicolon_in_expressions_from_macros: Lint on non-local macros too

    Split non-local semicolon_in_expressions_from_macros into a separate lint

    In Cargo, incremental compilation is now disabled by default when running in CI. CI is detected via the CI environment variable. #17220

    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.

    Update to LLVM 23

    Original source
  • Oct 1, 2026
    • Date parsed from source:
      Oct 1, 2026
    • First seen by Releasebot:
      Oct 1, 2026
    Rust logo

    Rust

    Announcing Rust 1.99.0

    Rust releases 1.99.0 with stable C-ABI variadic functions, raw-pointer layout APIs, and updated leak guidance. It also stabilizes several standard library APIs, including Box, Vec, String, VecDeque, and filesystem time setters.

    The Rust team is happy to announce a new version of Rust, 1.99.0. Rust is a programming language empowering everyone to build reliable and efficient software.

    If you have a previous version of Rust installed via rustup, you can get 1.99.0 with:

    $ rustup update stable
    

    If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes for 1.99.0.

    If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (rustup default beta) or the nightly channel (rustup default nightly). Please report any bugs you might come across!

    What's in 1.99.0 stable

    extern "C" variadics

    Rust 1.99.0 stabilizes defining C-ABI variadic functions with "C" and "C-unwind" ABIs. Variadic functions defined this way use a variable argument list (...) and accept an arbitrary number of arguments. Rust could already call externally-defined variadic functions (e.g., libc::printf). With Rust 1.99, these functions can now be written in Rust itself:

    ///
    /// SAFETY: must be called with (at least) 2 i32 arguments.
    unsafe extern "C" fn sum(mut args: ...) -> i32 {
        // SAFETY: guaranteed by the caller.
        let a = unsafe { args.next_arg::<i32>() };
        let b = unsafe { args.next_arg::<i32>() };
        a + b
    }
    
    fn foo() -> i32 {
        unsafe { sum(0i32, 2i32) }
    }
    

    The type of ... is VaList, which is ABI-compatible with the C va_list type across targets. What types can be read from a VaList is guarded by the VaArgSafe trait.

    For more details on c-variadic functions, see the Reference. This release also stabilizes support for defining naked variadic functions with non-"C" ABIs, which must be written via inline assembly.

    Layout information from raw pointers

    This release settles the safety requirements for retrieving the size and alignment on raw pointers to both Sized (trivially safe, already possible on stable) and non-Sized types.

    This is done by stabilizing three functions:

    • Layout::for_value_raw
    • mem::size_of_val_raw
    • mem::align_of_val_raw

    Recommend against round-trip unleaking after Box::leak

    While there are no changes to the language semantics in Rust 1.99, we have updated the documentation on Box::leak to recommend against patterns that later deallocate that memory. This was done because such code was found to have problematic interactions with current and future potential compiler optimizations, and is especially problematic with the upcoming stabilization of custom allocators. Instead, Box::into_non_null or Box::into_raw should be preferred.

    This guidance also applies to other leak functions in the standard library.

    Stabilized APIs

    • IntoIterator for Box<[T; N]>
    • IntoIterator for &Box<[T; N]>
    • IntoIterator for &mut Box<[T; N]>
    • VecDeque::retain_back
    • core::ffi::VaList
    • Box::into_non_null
    • Box::from_non_null
    • Vec::into_parts
    • Vec::from_parts
    • core::mem::size_of_val_raw
    • core::mem::align_of_val_raw
    • core::alloc::Layout::for_value_raw
    • String::from_utf8_lossy_owned
    • string::FromUtf8Error::into_utf8_lossy
    • FusedIterator for StepBy
    • std::fs::set_times
    • std::fs::set_times_nofollow

    Other changes

    Check out everything that changed in Rust, Cargo, and Clippy.

    Contributors to 1.99.0

    Many people came together to create Rust 1.99.0. We couldn't have done it without all of you.

    Original source
  • Sep 3, 2026
    • Date parsed from source:
      Sep 3, 2026
    • First seen by Releasebot:
      Sep 4, 2026
    Rust logo

    Rust

    Rust 1.98.1

    Rust fixes a miscompilation in vtable generation.

    rustc: fix miscompilation in generating vtables

    Original source
  • Sep 3, 2026
    • Date parsed from source:
      Sep 3, 2026
    • First seen by Releasebot:
      Sep 3, 2026
    Rust logo

    Rust

    Announcing Rust 1.98.1

    Rust releases 1.98.1, a point update that fixes a miscompilation in vtable generation and helps prevent undefined behavior from incorrect trait object code. It’s a stability-focused maintenance release for users updating via rustup.

    The Rust team has published a new point release of Rust, 1.98.1. Rust is a programming language that is empowering everyone to build reliable and efficient software.

    If you have a previous version of Rust installed via rustup, getting Rust 1.98.1 is as easy as:

    rustup update stable
    

    If you don't have it already, you can get rustup from the appropriate page on our website.

    What's in 1.98.1

    Rust 1.98.1 fixes a miscompilation in vtable generation.

    In Rust 1.98.0, in some circumstances, rustc would incorrectly generate a trait object vtable with a null pointer where a function pointer should be. This leads to undefined behavior in the emitted code. In some cases this may 'just' cause segfaults due to the null pointer being loaded, but it is possible for it to be justification for arbitrary effects (as is typical for UB).

    If you'd like to help us out by testing future releases, you might consider using the beta (rustup default beta) and nightly (rustup default nightly) channels locally and in your CI. Please report any bugs you might come across!

    Contributors to 1.98.1

    Many people came together to create Rust 1.98.1. We couldn't have done it without all of you. Thanks!

    Original source
  • Aug 20, 2026
    • Date parsed from source:
      Aug 20, 2026
    • First seen by Releasebot:
      Aug 20, 2026
    Rust logo

    Rust

    Rust 1.98.0

    Rust releases a broad language and library update with new lifetime coercion behavior, fresh lints, expanded platform support, and many stabilized APIs. It also tightens compatibility checks, improves formatting and diagnostics, and makes several target and platform changes.

    Language

    Allow shortening lifetime of &mut when unsize-coercing, even in an invariant position. For example, you can now coerce a Cell<&'long mut i32> to a Cell<&'short mut dyn Send>. Such shortenings were already previously allowed when coercing a &mut to a &, or coercing a & to a &.

    Add deny-by-default invalid_runtime_symbol_definitions lint and warn-by-default suspicious_runtime_symbol_definitions lint

    The lints currently specifically targets core runtime symbols like memcmp, memset, strlen, ... and is planned to be expanded in the next few releases.

    Add warn-by-default c_void_returns lint to check core::ffi::c_void as a return type

    Platform Support

    Add powerpc64-unknown-linux-gnuelfv2 as Tier 3

    Add aarch64-unknown-linux-pauthtest as Tier 3 target

    Promote thumbv7a-none-eabi to Tier 2

    Promote thumbv7a-none-eabihf to Tier 2

    Promote thumbv7r-none-eabi to Tier 2

    Promote thumbv7r-none-eabihf to Tier 2

    Promote thumbv8r-none-eabihf to Tier 2

    Refer to Rust's platform support page for more information on Rust's tiered platform support.

    Libraries

    Change Location<'_> lifetime to 'static in Panic[Hook]Info

    Document panic in RangeInclusive::from(legacy::RangeInclusive)

    Document that ManuallyDrop's Box interaction has been fixed

    Stabilize LoongArch CRC Intrinsics

    The derive macro is available at {core,std}::derive. This was previously unintentionally stabilized in 1.96, but is now explicitly accepted as a stabilized API.

    Please note that the MSRV for {core,std}::derive will be 1.96, and not 1.98.

    Stabilized APIs

    str::substr_range

    core::fmt::NumBuffer

    <{integer}>::format_into

    Send/Sync for std::process::CommandArgs

    {fN}::algebraic_add

    {fN}::algebraic_sub

    {fN}::algebraic_mul

    {fN}::algebraic_div

    {fN}::algebraic_rem

    NonZero<{integer}>::from_str_radix

    String::from_utf16le

    String::from_utf16le_lossy

    String::from_utf16be

    String::from_utf16be_lossy

    str::strip_circumfix

    Atomic<T>::from_mut

    Atomic<T>::get_mut_slice

    Atomic<T>::from_mut_slice

    std::range::legacy

    Compatibility Notes

    If fully elided, lifetime bounds of trait object types may now resolve differently or even get rejected in very specific niche scenarios

    Error in more cases of ambiguous imports

    Switch the destructors implementation for thread locals on Windows to use Fiber Local Storage (FLS)

    Convert some cases of the ambiguous_glob_imports lint into a hard error

    Where-bounds of the form Type = Type and Type == Type are no longer syntactically allowed

    Ensure Send/Sync is not implemented for std::env::Vars{,Os}

    Fix that in some attributes, arguments were not properly rejected

    repr(transparent) is now more strict about which fields have "trivial" layout and hence can be ignored: repr(C) types, types with private fields, and #[non_exhaustive] types are no longer considered "trivial"

    Correctly check whether types have equal size in transmute() when some repr attributes are involved.

    More characters are escaped when printing strings and chars

    Implement fast path for derive(PartialOrd) when deriving Ord This can break crates in practice where a type's PartialOrd and Ord impls were inconsistent with each other.

    Add temporary scope to assert_eq and assert_ne

    Closed a hole in the pattern matching structural equality check, preventing cases where a match of a constant would be allowed, despite disagreeing with a manually written PartialEq implementation, when a derive(PartialEq) implementation for that type also exists.

    On Emscripten the WASM exception handling ABI is now unconditionally used The -Zemscripten-wasm-eh=false flag to switch back to JS exceptions has been removed.

    The UNSAFE_CODE lint is now consistently emitted for all unsafe attributes

    Solaris: remove File::lock implementation, it has the wrong semantics (return "unsupported" instead)

    Windows-gnu targets now specify baseline tools versions

    rustfmt now discovers module files that are defined in cfg_select! This may cause more code to be formatted which was previously ignored.

    Original source
  • Aug 20, 2026
    • Date parsed from source:
      Aug 20, 2026
    • First seen by Releasebot:
      Aug 20, 2026
    Rust logo

    Rust

    Announcing Rust 1.98.0

    Rust releases 1.98.0 with algebraic floating-point methods, faster buffered integer formatting, and updated ManuallyDrop and Box safety docs, alongside a wide set of stabilized APIs and language improvements.

    The Rust team is happy to announce a new version of Rust, 1.98.0. Rust is a programming language empowering everyone to build reliable and efficient software.

    If you have a previous version of Rust installed via rustup, you can get 1.98.0 with:

    $ rustup update stable
    

    If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes for 1.98.0.

    If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (rustup default beta) or the nightly channel (rustup default nightly). Please report any bugs you might come across!

    What's in 1.98.0 stable

    Algebraic floating-point methods

    The floating-point types f32 and f64 now have "algebraic" methods for addition, subtraction, multiplication, division, and remainder. These allow optimizations on these operations using the algebraic properties of real numbers, even though these properties do not hold with the limitations of floating-point representations. The exact set of optimizations is not specified, but may be similar to the kind of optimization you would see with the -ffast-math option in other languages.

    For example, floating-point addition is not associative, so a sum like a + b + c + d must be evaluated in the left-associative order in which it is parsed, like ((a + b) + c) + d. If you write the same sum as a chain of algebraic_add calls, then the compiler is free to reorder it, perhaps like (a + b) + (c + d) to evaluate the partial sums simultaneously. Broader loop-vectorization is often enabled by using these algebraic methods as well.

    These methods are non-deterministic, since the compiler is free to choose different optimizations, but they never cause undefined behavior. See the library documentation and the original API change proposal for more details.

    Buffered integer formatting

    All of the primitive integer types now have a format_into method that takes a &mut NumBuffer parameter, which is a buffer that is large enough to hold the decimal format of any value of that type. The buffer itself is opaque, but the method returns the formatted &str with a lifetime borrowed from that buffer.

    This method also bypasses much of the dynamic dispatch that you would get with buffered write! formatting, which can be a boon to performance. The itoa-benchmark repo now shows that format_into performs similarly to itoa itself, so this could serve as a standard replacement for that dependency and others like it.

    Fix interaction between ManuallyDrop and Box

    Prior to Rust 1.96.0, there was a bug in the Rust compiler, which made the following code undefined behavior:

    let mut x = ManuallyDrop::new(Box::new(1));
    unsafe { ManuallyDrop::drop(&mut x) }
    let x = x; // UB!
    

    This is because the compiler considers it undefined behavior to move a Box that has been dropped (deallocated), and ManuallyDrop used to propagate that, such that moving ManuallyDrop<Box<_>> where the box has been dropped would also be considered UB.

    In Rust 1.96.0 we fixed this, so this code was no longer UB. In this release we have updated the ManuallyDrop documentation, providing a stable guarantee that this code will continue to not be UB in the future. See ManuallyDrop docs and the related RFC 3336 for more information.

    Stabilized APIs

    • str::substr_range
    • core::fmt::NumBuffer
    • <{integer}>::format_into
    • Send/Sync for std::process::CommandArgs
    • {fN}::algebraic_add
    • {fN}::algebraic_sub
    • {fN}::algebraic_mul
    • {fN}::algebraic_div
    • {fN}::algebraic_rem
    • NonZero<{integer}>::from_str_radix
    • String::from_utf16le
    • String::from_utf16le_lossy
    • String::from_utf16be
    • String::from_utf16be_lossy
    • str::strip_circumfix
    • Atomic::from_mut
    • Atomic::get_mut_slice
    • Atomic::from_mut_slice
    • std::range::legacy

    Other changes

    Check out everything that changed in Rust, Cargo, and Clippy.

    Contributors to 1.98.0

    Many people came together to create Rust 1.98.0. We couldn't have done it without all of you. Thanks!

    Original source
  • Jul 16, 2026
    • Date parsed from source:
      Jul 16, 2026
    • First seen by Releasebot:
      Jul 17, 2026
    Rust logo

    Rust

    Announcing Rust 1.97.1

    Rust releases 1.97.1, a point update that fixes an LLVM-related miscompilation and backports a safeguard in generated IR, improving compiler reliability for users on stable.

    The Rust team has published a new point release of Rust, 1.97.1. Rust is a programming language that is empowering everyone to build reliable and efficient software.

    If you have a previous version of Rust installed via rustup, getting Rust 1.97.1 is as easy as:

    rustup update stable
    

    If you don't have it already, you can get rustup from the appropriate page on our website.

    What's in 1.97.1

    Rust 1.97.1 fixes a miscompilation in an LLVM optimization.

    We have backported both an LLVM fix and a disable of the underlying change in Rust 1.97.0 of Rust's generated IR that increased the likelihood of this happening. However, note that the underlying miscompilation has been present since at least Rust 1.87.

    If you'd like to help us out by testing future releases, you might consider running your code's CI or locally using the beta channel (rustup default beta) or the nightly channel (rustup default nightly). Please report any bugs you might come across!

    Contributors to 1.97.1

    Many people came together to create Rust 1.97.1. We couldn't have done it without all of you. Thanks!

    Original source
  • Jul 16, 2026
    • Date parsed from source:
      Jul 16, 2026
    • First seen by Releasebot:
      Jul 17, 2026
    Rust logo

    Rust

    Rust 1.97.1

    Rust fixes a rustc miscompilation by backporting an LLVM fix and reverting a trigger change.

    rustc: Fix miscompilation in LLVM optimization

    This backports an LLVM submodule bump to include the LLVM-side fix and a revert of the rustc change that is one known trigger for the bug. The rustc side revert should not be strictly necessary but is done out of abundance of caution.

    Original source
Releasebot

Curated by the Releasebot team

Releasebot is an aggregator of official release notes from hundreds of software vendors and thousands of sources.

Our editorial process involves the manual review and audit of release notes procured with the help of automated systems.