Languages

How to Upgrade to Rust 1.100: Cargo Cooldowns and the Never Type Change (2026)

Rust 1.100 stabilizes the never type and adds Cargo dependency cooldowns. Here is how to upgrade, what can break and which setting to turn on first.

Tyler Brennan

Runtime & Language Tooling Writer

Published 8 min read
Developer workstation with two monitors and a keyboard, ready for a toolchain upgrade
On this page 7 sections

To upgrade to Rust 1.100, run rustup update stable, rebuild every target with warnings visible, and fix anything the never type fallback change surfaces. Then opt in to Cargo's new dependency cooldown by setting global-min-publish-age in .cargo/config.toml. Rust 1.100 shipped on November 12, 2026, and the cooldown is the change most teams will want first.

Most Rust upgrades are quiet, and this one mostly is too. It carries one small breaking change and one new Cargo setting worth adopting today. This guide is for engineers who own a Rust codebase or a CI pipeline that builds one. It covers what changed, the exact commands to test the upgrade, how the never type change can break a build and how to turn on cooldowns.

Backtrace covers languages, tooling and security for working developers, and this guide follows our usual rule for upgrade posts: list the failure you will see first, then the command that finds it. Backtrace's editors read the official release announcement and the Cargo and edition documentation line by line before writing it.

What changed in Rust 1.100 that affects your project?

Four changes matter most. The never type is now stable, Cargo can hold back freshly published dependency versions, Cargo warns about unused dependencies, and the build directory layout changed. Only the never type fallback change can break compilation, and the Rust team expects it to go unnoticed in most code.

The table below ranks each change by who feels it and how risky it is, based on the official 1.100.0 announcement.

What changed in Rust 1.100 that affects your project?
ChangeWho feels itRisk
Never type (!) stableLibrary authors, mostlyLow
Never type fallback is now ! on all editionsCrates on editions 2015, 2018 and 2021Low, rare compile errors
Cargo min-publish-age (cooldowns)Anyone who runs cargo updateNone until you opt in
Unused dependency warningsWorkspaces with several build targetsWarnings only
New build-dir layoutTeams sharing a build directory or scripting around itLow to medium
Allocator trait for Vec and BoxLibrary authorsNone for applications

How do you upgrade to Rust 1.100 safely?

Update the toolchain with rustup, rebuild every target in the workspace, and read the warnings before the errors. Run your full test suite next, then update any dependency that fails on the never type change. Pin the new version in CI only after a clean local run.

Desk with an iMac and tablet, the workstation where a Rust toolchain upgrade gets rebuilt and tested

These steps cover a typical workspace. Adapt the commands to your own layout.

  1. Run rustup update stable and confirm that rustc --version reports 1.100.0.
  2. Run cargo check --workspace --all-targets so every target compiles and unused dependency warnings can appear.
  3. Run cargo test --workspace and compare any failures with your last green build on the old toolchain.
  4. Update any dependency that fails with a never type error, because a fix may already be published.
  5. Remove build scripts that worked around the old build directory layout, then rerun a clean build.
  6. Pin 1.100.0 in rust-toolchain.toml and in CI once the local run is clean.

The first four steps fit in one shell session:

text
rustup update stable
rustc --version
cargo check --workspace --all-targets
cargo test --workspace

At Backtrace, we start every language upgrade guide with the failure you will see first. For 1.100, that is an inference error or an unreachable code warning tied to the never type. The same rebuild-then-test routine shows up in our guide to testing a Node.js major version upgrade before production.

What does the never type fallback change break?

Rust 1.100 changes the never type fallback from the unit type to the never type in editions 2015, 2018 and 2021. Most code never notices. It can matter when you ignore a result from a function that returns a generic parameter, and the compiler may flag more code as unreachable.

The Rust team says it gave future compatibility warnings far in advance and shipped fixes to public crates that broke, per the release announcement. If a dependency fails, update it first. A fix has probably been released.

The Rust Edition Guide adds two details. The change is no longer specific to edition 2024, and the dependency_on_unit_never_type_fallback lint that handled the migration has been removed. If your code carries an allow or warn attribute for that lint, delete it. You may otherwise see a warning about a lint that no longer exists.

The upside is that you can now name the never type anywhere. A function that cannot fail can return a result with no error variant, and the compiler lets you unwrap it without a branch:

text
fn always_ok(input: &str) -> Result<usize, !> {
    Ok(input.len())
}

let Ok(n) = always_ok("rust");

If an abandoned crate still fails after you try the steps above, open an issue upstream. Meanwhile, point Cargo at a fixed fork with a [patch.crates-io] section until a release lands.

How do you turn on Cargo dependency cooldowns?

Add global-min-publish-age under the registry table in .cargo/config.toml. Cargo then skips any crate version published more recently than that window and prints what it held back. The official example uses three days. Override the check for a single update when you need a fix immediately.

Stopwatch representing the waiting window a dependency cooldown enforces before new crate versions are used

The Rust team explains the reasoning in its announcement: malicious package versions are often caught within hours or days, by automated scanners or the community. A cooldown lets that detection window pass before your lockfile moves. This is the whole config:

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

When you run cargo update, Cargo reports versions it skipped, such as a release published three hours ago. If you need one of those versions today, set CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow for that single update and pin the version with --precise. The newer version then stays in Cargo.lock until a later update re-resolves it.

Three days matches the official example. For production services, consider seven days, the value the Cargo configuration reference uses in its sample. That reference also shows a per-registry min-publish-age key under the registries table, which overrides the global value for one registry.

Know the limits before you rely on it:

  • Versions without a pubtime field in the registry index are never held back.
  • cargo install ignores the minimum age, so pin a version such as foo@1.2.3.
  • Cooldowns reduce the risk from some supply chain attacks but are not a complete defense.

That last point deserves emphasis. A delay only helps if somebody catches the bad release during the wait, and it does nothing for a secret already leaked from your own pipeline. Our walkthrough of the wfx-loot CI secret stealer shows why both layers matter. Keep reviewing dependency updates the way you did before.

What do Cargo's unused dependency warnings and cache changes mean for CI?

Cargo now warns about unused dependencies, and it reorganizes the build directory around build steps instead of file types. The warning is on by default and only appears when every target that might use a dependency gets built. The cache change can break scripts that assumed the old layout.

The unused dependency warning is part of Cargo's new lint system, which you control through the [lints.cargo] table in Cargo.toml. It has two blind spots, both listed in the announcement. Running cargo check --bin foo will not show unused [dependencies] entries, because another binary may use them. Unused dev-dependencies never produce a warning at all.

The practical fix is a periodic full check in CI. Run cargo check --workspace --all-targets on a schedule and review the new warnings. Trimming dead entries also shrinks the package list you need to track, which pairs well with an SBOM generation workflow.

The build directory change matters more to teams with custom tooling. Cargo now applies the build configuration hash consistently, moving it from file names to the parent directory. The Rust team warns that build processes and tests with workarounds for the old behavior may break, and it points to cargo issue 17287 for solutions.

Which new Rust 1.100 APIs can wait?

Most application teams can skip the new APIs for now. The Allocator trait mainly serves library authors, and it currently works only with Vec and Box. DropGuard is the one worth trying soon, because it removes boilerplate from rollback code. The conjure_zst function is narrow and unsafe.

Close-up of a circuit board and processor chip, a visual for memory allocation and low-level APIs

Here is how each one fits a normal codebase:

  • Allocator trait: defines custom allocators for Vec and Box. More collections will follow in later releases.
  • DropGuard: runs a closure when a value is dropped, and a dismiss call cancels it, which suits all-or-nothing updates with a rollback.
  • conjure_zst: creates a zero-sized value in unsafe code, replacing patterns such as transmuting the unit type.

Adopt DropGuard in new code where a function mutates state and may fail halfway. Leave existing code alone until a real bug points to it.

Next steps for your Rust 1.100 upgrade

Today, update the toolchain on one machine and run the four commands above. This week, fix whatever the never type change exposes and add a scheduled full workspace check to CI. Then decide on a cooldown window and commit it in .cargo/config.toml.

Pinning is the common thread: pin the toolchain, hold back brand-new crates, and review what changes. It is the same instinct behind our advice on vetting and pinning agent skills. A small delay costs little and buys time for someone else to find the problem.

Is upgrading to Rust 1.100 a breaking change?
Mostly no. The one breaking change moves the never type fallback from the unit type to the never type in editions before 2024. It rarely affects code, but it can cause compile errors or new unreachable code warnings. If a dependency fails, update it first, because fixes were already released for many crates.
What is a Cargo dependency cooldown?
A cooldown makes Cargo skip any crate version published more recently than a window you set, such as three days. The idea is that malicious releases are often caught within hours or days. You enable it with global-min-publish-age in .cargo/config.toml. It lowers risk but is not a complete defense.
How do you install a crate version newer than your cooldown?
Set CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow for a single update and pin the version with --precise, for example on a clap update. Cargo records the newer version in Cargo.lock and keeps it there until a later update re-resolves it. Use this override only when you actually need the fix right away.
Does cargo install respect the minimum publish age?
No. The cargo install command ignores min-publish-age for both the crate you install and its dependencies. If you want protection there, pin an exact version, such as foo@1.2.3, after reviewing it yourself. Cooldowns apply to dependency resolution in your projects, not to tools you install globally.

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