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.
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.
| Change | Who feels it | Risk |
|---|---|---|
| Never type (!) stable | Library authors, mostly | Low |
| Never type fallback is now ! on all editions | Crates on editions 2015, 2018 and 2021 | Low, rare compile errors |
| Cargo min-publish-age (cooldowns) | Anyone who runs cargo update | None until you opt in |
| Unused dependency warnings | Workspaces with several build targets | Warnings only |
| New build-dir layout | Teams sharing a build directory or scripting around it | Low to medium |
| Allocator trait for Vec and Box | Library authors | None 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.
These steps cover a typical workspace. Adapt the commands to your own layout.
- Run rustup update stable and confirm that rustc --version reports 1.100.0.
- Run cargo check --workspace --all-targets so every target compiles and unused dependency warnings can appear.
- Run cargo test --workspace and compare any failures with your last green build on the old toolchain.
- Update any dependency that fails with a never type error, because a fix may already be published.
- Remove build scripts that worked around the old build directory layout, then rerun a clean build.
- 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:
rustup update stable
rustc --version
cargo check --workspace --all-targets
cargo test --workspaceAt 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:
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.
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:
[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.
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.