Languages

How to Upgrade to Rust 1.100: Never Type Fallback, Cargo Cooldowns and a Test Plan (2026)

Rust 1.100 stabilizes the never type and ships dependency cooldowns. Here is what can break, what to adopt, and how to test it before production.

Tyler Brennan

Runtime & Language Tooling Writer

Published 9 min read
A motherboard with RAM sticks, representing low-level systems programming
On this page 8 sections

To upgrade to Rust 1.100, run rustup update stable, then test for the one breaking language change. The never type fallback now changes from the unit type to the never type in editions 2015, 2018 and 2021. Most code is unaffected. After the upgrade, consider Cargo's new dependency cooldown, which skips versions published within a window you choose.

Backtrace covers language releases by asking what an upgrade breaks first. This guide is for Rust developers and engineering leads who maintain services or libraries and want a short test plan, a list of the new features worth adopting and a safe way to turn on the supply chain setting.

What Changed in Rust 1.100?

Rust 1.100 stabilizes the never type, written as an exclamation mark, after a decade and five failed attempts. It also stabilizes the core of the Allocator API, adds a DropGuard helper, adds a function for creating zero-sized types, and brings Cargo changes for unused dependencies, build caches and dependency cooldowns.

The official Rust 1.100.0 announcement published on November 12, 2026 lists these items as the headline changes. The never type is the one that gets the attention, but it is not the one most likely to affect your build. The fallback change and the Cargo changes are.

The never type represents a computation that never produces a value, such as a return, a break or a process exit. You can now name it anywhere, which allows a type like a Result whose error type can never occur. The standard library's Infallible type is now an alias for it, so older APIs that use Infallible work with the new spelling.

How to Upgrade and Test for the Never Type Fallback

Upgrade with rustup, then compile and test everything. The only breaking language change in the release is a fallback rule. Run these steps in order and read the first failure carefully.

A wrench lying on a workbench, representing maintenance work
  1. Run rustup update stable and confirm the version with rustc --version.
  2. Run cargo check --all-targets on a clean branch.
  3. Run cargo test and cargo clippy and compare warnings with the old toolchain.
  4. Update any dependency that fails with a never type error.
  5. Repeat for every crate in your workspace and every CI target.

Here is what changed. In editions before 2024, meaning 2015, 2018 and 2021, the never type fallback moves from the unit type to the never type. Edition 2024 already worked this way. The Rust team says the change should largely go unnoticed. It can affect code in rare cases, for example when you ignore the result of a function that returns a generic parameter.

The change can also make the compiler flag more code as unreachable. Expect new warnings rather than new errors in most projects. If your build treats warnings as errors, that is where you will see the first failure, so check your deny settings before you blame the toolchain.

The Rust team says it gave future compatibility warnings far in advance and released fixes to public crates that were affected. If a dependency fails because of the never type, update that dependency first. A fix may already have shipped.

Which New APIs Are Worth Adopting?

Adopt DropGuard first, and treat the Allocator API as something to watch. DropGuard solves a problem most teams already have, which is running cleanup code on every exit path. The Allocator API matters mostly to library authors.

The core Allocator trait is now stable, so a library can define a custom allocator and use it with Vec and Box. The announcement says much remains to do, including more collections and pointer types. Do not redesign your data structures yet. For background on why memory control matters, see our comparison of memory-safe languages.

DropGuard lives in core::mem. It takes a value and a closure, lets you keep using the value through Deref and DerefMut, and runs the closure when the guard is dropped. A dismiss function returns the value without running the closure. That makes all-or-nothing updates easy. You change a structure step by step, and if any step fails the closure rolls it back.

The new conjure_zst function is narrower. It is the dedicated, unsafe way to create a value of a zero-sized type when you know that is sound. It replaces tricks such as transmuting the unit type. Most application code will never call it.

How to Turn On Cargo Dependency Cooldowns

Cargo's min-publish-age setting makes dependency resolution skip any version published more recently than a window you set. You opt in through your Cargo config file. The Rust team notes that malicious package versions are often caught within hours or days of publication, and a cooldown lets you wait out that window.

Hourglasses with sand running, representing a waiting period

Add this to your .cargo/config.toml to hold back anything newer than three days.

  • Under the registry table, set global-min-publish-age to "3 days".
  • Run cargo update and read which versions Cargo held back.
  • Commit the resulting Cargo.lock and review the diff.

Cargo tells you what it skipped. In the release example, it reports a version of a crate that was published three hours earlier and was therefore not chosen. When you need a new version immediately, you can override the check for one update with the CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE environment variable set to allow, plus a precise version.

Know the limits before you roll this out. The feature depends on the registry recording when each version was published, so versions without a pubtime field are never held back. The cargo install command ignores the minimum age, so pin versions there. The Rust team also says cooldowns reduce the risk from some supply chain attacks but are not a complete defense. Keep reviewing updates.

Why Do Cooldowns Matter After the arrayref Attack?

Cooldowns matter because attackers rely on fast adoption. A malicious release that is pulled during the cooldown never reaches a team that was still waiting. The August 2026 attack on popular Rust crates showed the pattern clearly.

A network and cyber security graphic with connected nodes

According to Socket's analysis of the compromised Rust crates, attackers republished arrayref, internment and append-only-vec with a new dependency on proc-macro1, a typosquat of the real proc-macro2 crate. Cargo runs a dependency's build script during compilation, so the payload ran without any code importing it. Socket's scanner flagged the malicious crate on August 20, 2026, and the Rust Security Response Team removed the releases.

Socket recommends treating any system that built one of those versions as potentially compromised. A cooldown gives scanners and maintainers time to catch a bad release before your builds consume it. Our report on how Shai-Hulud hit an npm package shows the same lesson in another ecosystem.

What Can Break in CI From the Cargo Changes?

Two Cargo changes can surprise CI. The new unused dependency warning can fail strict builds, and the build-dir layout change can break old workarounds. Neither is a language change, which is why they often slip past a review that only reads the language notes.

An antique stopwatch on a wooden table, representing build time

Cargo now reports unused dependencies through a new lint named cargo::unused_dependencies, set to warn by default. It lives in the lints.cargo table of Cargo.toml. It only fires when you build every target that might use a dependency. Running cargo check on a single binary will not show it, and dev-dependencies are never reported.

The build-dir change is subtler. Cargo now applies the build configuration hash consistently by organizing directories around build steps. That reduces extra rebuilds and missed rebuilds, especially when several git worktrees share a build directory. It can also break scripts and tests that hard-coded paths or worked around the old layout. The release notes point to cargo issue 17287 for solutions.

Search your CI scripts for any path that reaches into the target directory. Cache keys and artifact upload steps are the usual suspects. If a step worked around missing hashes before, you may be able to delete that workaround now.

How to Roll Out Rust 1.100 Across a Team

Roll out the upgrade in stages and pin the toolchain so everyone builds with the same compiler. A pinned toolchain file in the repository keeps laptops and CI aligned, and it makes the next upgrade a one-line change.

Start with a library crate that has good tests, then a service, then the rest. Keep one CI job on the previous toolchain for a week so you can compare results. If a failure appears only on 1.100, you know the cause. Our guide to testing a Node.js major version upgrade describes the same staged approach, which works for any runtime.

Backtrace editors suggest turning on the cooldown after the toolchain move, not during it. Changing the compiler and the dependency policy together makes failures hard to trace. Do one, merge it, and then do the other.

Conclusion

Rust 1.100 is a large release with a small blast radius. The never type fallback is the only breaking language change, and most projects will see at most a few new warnings. The bigger decision is whether to adopt dependency cooldowns, which cost almost nothing and buy real protection.

Your next step is to run cargo check and cargo test on 1.100 in a branch today. Fix any dependency that trips on the never type, then add the cooldown in a separate change. Backtrace will cover the follow-up releases as the Allocator API grows.

Is the Rust 1.100 never type change a breaking change?
Only a small one. In editions 2015, 2018 and 2021, the never type fallback moves from the unit type to the never type, matching what edition 2024 already did. The Rust team expects it to be largely unnoticeable, though it can affect rare code and may produce more unreachable-code warnings.
How do I turn on Cargo dependency cooldowns?
Add a registry table to .cargo/config.toml and set global-min-publish-age to a window such as 3 days. Cargo then skips versions published more recently and tells you what it held back. You can override the check for one update with the CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE variable set to allow.
Does a Cargo cooldown protect cargo install?
No. The Rust team says cargo install ignores the minimum publish age for both the installed crate and its dependencies, so pin an exact version when you install tools. Cooldowns also skip versions without a pubtime field in the registry index, and they are not a complete defense on their own.
Is the Rust Allocator API fully stable in 1.100?
Only the core parts. Rust 1.100 stabilizes the Allocator trait so libraries can define custom allocators for Vec and Box. The Rust team says much remains to do, including more collections and pointer types, so expect further stabilizations in future releases before you rely on allocators across your whole codebase.

Written by

Tyler Brennan

Runtime & Language Tooling Writer

11+ years experience

Tyler spent nine years as a full-stack engineer at a mid-sized e-commerce company, where he owned the Node.js services and the build pipeline behind them. He ran four major runtime upgrades there and still keeps the habit of reading changelogs for what gets removed before what gets added. At Backtrace he covers language releases, package managers and the local tooling that decides how fast a team moves. His rule is simple: an upgrade guide is only useful if it lists the failure you will see first and the command that finds it.

Credentials

  • B.S., Computer Science, University of Wisconsin-Madison
  • Former Senior Full-Stack Engineer, e-commerce platform (2014-2023)
  • OpenJS Foundation Node.js Application Developer certification