Skip to content
Rust Releases

Rust 1.96.0 Release Notes: Maintenance & Security Fixes

The rust 1.96.0 release notes landed today with a quieter update. No flashy new features headline the release. Instead, this maintenance version focuses on backend tweaks and essential bug fixes. The Rust team shipped 11 stabilized APIs, including assert_matches!, and patched two security vulnerabilities in Cargo. For developers running existing Rust projects, this release offers […]

Jack Pauley June 25, 2026 6 min read
rust 1.96.0 release notes

The rust 1.96.0 release notes landed today with a quieter update. No flashy new features headline the release. Instead, this maintenance version focuses on backend tweaks and essential bug fixes. The Rust team shipped 11 stabilized APIs, including assert_matches!, and patched two security vulnerabilities in Cargo. For developers running existing Rust projects, this release offers a stable point to upgrade without breaking changes to daily workflows.

This maintenance release is recommended for all Rust users. The team fixed layout edge cases for enums, patched Cargo CVEs CVE-2026-5222 and CVE-2026-5223, and stabilized 11 APIs like assert_matches!. Upgrading ensures you get these fixes without disrupting existing code.

What Changed

  • Language: Allow passing expr metavariable to cfg, coerce never types in tuple expressions, avoid incorrect inference guidance of function arguments, support s390x vector registers in inline assembly.
  • Compiler: Enable link relaxation 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, fix SGX delayed host lookup via ToSocketAddr.
  • Stabilized APIs: assert_matches!, debug_assert_matches!, From<T> for AssertUnwindSafe, LazyCell, LazyLock, plus core::range types.
  • Cargo: Allow dependencies to specify both a git repository and an alternate registry, add target.'cfg(..)'.rustdocflags support, fix CVE-2026-5222 and CVE-2026-5223.
  • Rustdoc: Render deprecation notes like other docs, don't emit missing-doc-code-examples lint on impl items, separate methods and associated functions in sidebar.

Why It Matters

  • Maintenance release: no specific features or changes documented in release notes.
  • The Cargo security fixes protect against two CVEs, making this a must-upgrade for projects using the package manager.

Who Should Upgrade

This release is relevant for all Rust developers. If you maintain a project using Cargo, upgrade immediately to patch the security vulnerabilities. Teams using #[repr(Int)] enums or BTreeMap::append() should test for edge cases. The new stabilized APIs benefit anyone writing assertions or working with range types.

How to Upgrade

  1. Install the new version via rustup: rustup update stable.
  2. Run rustc --version to confirm the installation shows 1.96.0.
  3. Update your project's Cargo.toml if you pin Rust versions manually.
  4. Run tests: cargo test to verify nothing breaks.
  5. Check for any compatibility notes affecting your code, especially enums and BTreeMap usage.

Usage Examples

  • Stabilized assert_matches!: Use assert_matches!(value, Pattern) to test patterns in unit tests with clear error messages.
  • NonZero range iteration: Loop over NonZeroU8::MIN..NonZeroU8::MAX to process only non-zero values without manual checks.
  • Git + registry dependencies: Specify a local git repo and an alternate registry; Cargo uses the git source locally and the published crate on crates.io.

Feature Flow

Official Release Notes

View full release notes on GitHub β†’

πŸ› οΈ Try These Free Tools

πŸ“¦ Dependency EOL Scanner

Paste your dependency file to check for end-of-life packages.

πŸ—ΊοΈ Upgrade Path Planner

Plan your upgrade path with breaking change warnings and step-by-step guidance.

πŸ”§ GitHub Actions Version Auditor

Paste your workflow YAML to audit action versions and pinning.

See all free tools β†’

Stay Updated

Get the best releases delivered monthly. No spam, unsubscribe anytime.

By subscribing you agree to our Privacy Policy.