Rust 1.100 stabilizes the never type and hardens the Cargo supply chain
On November 12, 2026, Rust shipped 1.100.0, a milestone release: the never type, ten years after its first attempt, and a Cargo that learns to flag unused dependencies and cool down freshly published crates.io versions.
November 12, 2026. Rust ships version 1.100.0. Ten years. That is how long the never type — the ! type of diverging computations — took to finally stabilize, after five failed attempts. 3 days. That is the cooldown Cargo can now impose on any freshly published crates.io version. Why it matters: beyond the symbolism of the hundredth release, this batch delivers a language fix a decade in the making and a concrete hardening of the software supply chain.
The never type, finally stable after ten years
The never type, spelled ! in code, is the canonical uninhabited type: the type of computations that produce no value — return, break, std::process::exit — after which all code is unreachable. Because no value of this type can exist, Rust allows a never-to-any coercion. That is what lets you write, in a match, one arm that returns next to an arm that yields a value:
fn mrrrow(option: Option<u32>) {
let value = match option {
Some(x) => x, // x: u32
None => return, // return: !, coerced to u32
};
}
The type could already be observed — and even named in return position (-> !) — but not used everywhere. 1.100 lifts that restriction: Result<T, !> is now writable. As a consequence, Infallible becomes an alias of the never type, keeping every older API that used it compatible. It was precisely this Infallible migration that made stabilization so hard for a decade.
The price of a decade of debt is paid in one breaking change: the never type fallback moves from () to ! in editions before 2024. The team calls the impact "largely unnoticeable," but a few rare cases may change behavior — the compiler sometimes flagging more code as unreachable.
Custom allocators and a DropGuard
Two other stabilizations matter to teams writing systems code. The Allocator trait is stabilized at its core: libraries can now define a custom allocator for Vec and Box. This is the foundation of the Allocators 1.0 project goal, opening the door to specialized allocators — arenas, bump allocators, shared memory — in the standard type.
DropGuard answers a more everyday need: run a closure when a function exits, no matter which path it takes. Where Drop attaches to a type, DropGuard wraps a value and a closure, and its dismiss method lets you commit the operation without triggering the cleanup. The textbook case is an all-or-nothing transactional API:
let mut nums = DropGuard::new(nums, move |nums| {
nums.truncate(len); // rollback on failure
});
for s in strings {
nums.push(s.parse()?); // `?` triggers the rollback
}
DropGuard::dismiss(nums); // success: commit
Cargo learns to cool down dependencies
The most useful addition for an operator is not in the language, but in Cargo. Malicious package versions are usually caught within hours or days by automated scanners or the community. 1.100 stabilizes min-publish-age — also known as dependency cooldowns — which lets you wait out that window before adopting a freshly published version.
Enabling it takes three lines in .cargo/config.toml:
[registry]
global-min-publish-age = "3 days"
From then on, cargo update skips any version published less than three days ago, and tells you what it held back:
$ cargo update
Updating crates.io index
Locking 2 packages to highest compatible version as of min-publish-age
Adding cc v1.11.0 (available: v1.18.0, published 3 hours ago)
Adding clap 4.6.7 (available: 4.6.9, published 2 days ago)
When an update cannot wait, the lock lifts for a single command:
$ CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow cargo update clap --precise 4.6.9
The nuance is explicit in the announcement: cooldowns reduce the risk of supply-chain attacks without being a complete defense. The mechanism depends on the pubtime field in the index — versions without one are never held back — and cargo install ignores it, for both the installed crate and its dependencies. The follow-up is already planned under the crates.io supply chain hardening project goal, with package quarantine and automated detection of suspicious releases.
A cleaner build: unused dependencies and cache
Cargo also gains two hygiene guards. The first flags unused dependencies — cargo::unused_dependencies defaults to warn — while avoiding the false positives that come from dependencies shared across multiple build targets. The second fixes build-dir cache collisions: the build-configuration hash, once applied to file names, is now moved into the parent directory, eliminating spurious rebuilds and paving the way for cross-workspace cache deduplication.
Verdict
If you maintain Rust projects, take two settings on upgrade: enable global-min-publish-age = "3 days" in .cargo/config.toml to cool down fresh dependency adoption, and let the unused_dependencies lint clean up your Cargo.toml. The cost is nil, the supply-chain gain is real, and this is the part of the release that matters to an SRE or a CISO as much as to a developer. The never-type stabilization, by contrast, mostly concerns library maintainers: it simplifies infallible signatures and aligns Infallible, but is not by itself a reason to rush a migration — unless you maintain code that already writes ! in return position.
References
You are reading the DevOps section.