Rust (GNU LLVM)

The Rust Project Developers · Rustlang.Rust.GNU.LLVM

A language empowering everyone to build reliable and efficient software.

The Rust programming language helps you write faster, more reliable software. High-level ergonomics and low-level control are often at odds in programming language design; Rust challenges that conflict. Through balancing powerful technical capacity and a great developer experience, Rust gives you the option to control low-level details (such as memory usage) without all the hassle traditionally associated with such control.

winget install --id Rustlang.Rust.GNU.LLVM --exact --source winget

Latest 1.96.0

Release Notes

Language

  • Allow passing expr metavariable to cfg
  • Always coerce never types in tuple expressions
  • Avoid incorrect inference guidance of function arguments in rare cases
  • Support s390x vector registers in inline assembly
  • Allow using constants of type ManuallyDrop as patterns (fixing a regression introduced in 1.94.0)

Compiler

  • Enable link relaxation feature for LoongArch Linux targets
  • Update riscv64gc-unknown-fuchsia baseline to RVA22 + vector

Libraries

  • Support iterating over ranges of NonZero integers
  • refactor 'valid for read/write' definition: exclude null; add that as an exception on individual methods instead
  • Fix SGX delayed host lookup via ToSocketAddr

Stabilized APIs

  • assert_matches!
  • debug_assert_matches!
  • From for AssertUnwindSafe
  • From for LazyCell<T, F>
  • From for LazyLock<T, F>
  • core::range::RangeToInclusive
  • core::range::RangeToInclusiveIter
  • core::range::RangeFrom
  • core::range::RangeFromIter
  • core::range::Range
  • core::range::RangeIter

Cargo

  • Allow a dependency to specify both a git repository and an alternate registry. Just like with crates.io, the git repository will be used locally, but the registry version will be used when published.
  • Added target.'cfg(..)'.rustdocflags support in configuration.
  • Fixed CVE-2026-5222 and CVE-2026-5223.

Rustdoc

  • Deprecation notes are now rendered like any other documentation. Previously they used the css white-space: pre-wrap; property and stripped any

    elements from the rendered html, however this caused issues and unintuitive behavior. The new behavior should be more predictable, however some multi-line deprecation notes will now be rendered as as single lines. If this is undesirable, you can use the standard markdown method of forcing a linebreak, which is two spaces followed by a newline (" ").

  • Don't emit rustdoc missing_doc_code_examples lint on impl items
  • Seperate methods and associated functions in sidebar

Compatibility Notes

  • Fix layout of #[repr(Int)] enums in some edge cases involving fields of uninhabited zero-sized types
  • Prevent unsize-coercing into Pin where Foo doesn't implement Deref. Some such coercions were previously allowed, but produce a type with no useful public API.
  • rustc: Stop passing --allow-undefined on wasm targets
  • Gate the accidentally stabilized #![reexport_test_harness_main] attribute
  • Error on return-position-impl-trait-in-traits whose types are too private
  • Report the uninhabited_static lint in dependencies and make it deny-by-default
  • Distributed builds now contain non-split debuginfo for windows-gnu This appears to improve the quality of backtraces. This change has no effect on the defaults for the output of rustc/cargo on these targets.
  • Check const generic arguments are correctly typed in more positions
  • Remove -Csoft-float
  • Importing structs with ::{self [as name]}, e.g., struct S {}; use S::{self as Other};, is now no longer permitted because {self} imports require a module parent.
  • For export_name, link_name, and link_section attributes, if multiple of the same attribute is present, the first one now takes precedence.
  • Update the minimum external LLVM to 21
  • On avr targets, C's double type is 32-bit by default, so change c_double to f32 on avr targets to match. This is a breaking change, but necessary to make c_double match C's double.

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.

  • JSON targets: aarch64 softfloat targets now have to have rustc_abi set to "softfloat"
  • target specs: stricter checks for LLVM ABI values, and correlate that with cfg(target_abi)

Installer type: wix

Architecture Scope Download SHA256
x64 Download F51DFD3B4DD183933321B7E0239EC316FD39435015D5CAF3A377273E9060CD10
arm64 Download A6763781BABB2F97378DBCEE991F9150E6FB12853A278B9F553038D606BE76F1

Details

Homepage
https://www.rust-lang.org/
License
Apache-2.0 AND MIT
Publisher
The Rust Project Developers
Support
https://users.rust-lang.org/
Privacy Policy
https://rustfoundation.org/policy/privacy-policy/
Copyright
Copyright (c) The Rust Project Contributors
Moniker
rust-gnu-llvm

Tags

cargoclippygnu-toolchainllvmrustcrustdocrustup

Older versions (4)

1.95.0
Architecture Scope Download SHA256
x64 Download 43CFB45709F81A1A5A4DCE201B735AB269CA2FA7946A7DCCD6C215F01E1549F1
arm64 Download 83D345A1D51F5D684AAD509DA18CEDEC54B8C56D24FCD61D9AA9973B339C836D
1.94.1
Architecture Scope Download SHA256
x64 Download 71E700DAA3F9747AEF50DDEA65A1101A87569BD41560DC6396C37DA0FE6DE4B9
arm64 Download 48DB84B60547F04F4E57EAABCC6942F2D1AEF136664D3A7506EB79B3C4B13FE4
1.94.0
Architecture Scope Download SHA256
x64 Download 3F0BB5E93847E0AEE20926C229C90C15AB6AEA0D13AEF5E4018DEFD82DF3587B
arm64 Download A3ACFE3836789FE088101256E3CBDC9CAFF141BE0D9B7A73637DF7E5CAA49EF5
1.93.1
Architecture Scope Download SHA256
x64 Download 17A5835A034F45C43066708ECFDAED83A8E692625A9BAC6B7B4ACAD54F68AC87
arm64 Download 1A2E1CDE908B3E50C805F553261C20A51F4B11EA76C8919E4BF8F968241AF0EC