deniz.in

Markets

Weather

Loading weather

· via dev.to (home feed)

Rust 1.100 stabilizes the never type, allocator APIs and Cargo dependency cooldowns

Rust 1.100.0 lands the never type after a decade of attempts, stabilizes the core Allocator trait, and adds a Cargo setting that delays newly published dependency versions.

Rust 1.100 stabilizes the never type, allocator APIs and Cargo dependency cooldowns

Rust 1.100.0 shipped on November 12, 2026, with a patch release, 1.100.1, following on November 27, according to a dev.to article originally published on The Weekly Signal. The release stabilizes the never type, the core Allocator trait, and a Cargo setting that can delay newly published dependency versions. It also reorganizes where Cargo puts intermediate build artifacts, which can break tools that read them.

The never type, stable at last

The headline language change is the never type, written !. Citing the official Rust announcement, the write-up says it has landed "after 10 years and 5 failed stabilization attempts." The type describes computations that never yield a value, such as return or break. It can now be named anywhere a type can be — Result<T, !> for example — and Infallible is now an alias for !.

There is a compatibility wrinkle. In the 2015, 2018 and 2021 editions, the never type fallback changes from () to !, matching what edition 2024 already did. The announcement reportedly calls this "largely unnoticeable," but rare cases can be affected, and the compiler may now flag more code as unreachable.

Allocators and new library items

The core Allocator trait is now stable, so library authors can write custom allocators for Vec and Box; the announcement says more collections and pointer types are still to come.

Two standard library additions stand out. core::mem::DropGuard runs a closure when dropped, and DropGuard::dismiss cancels it — the announcement's example uses it to roll back a Vec if parsing any string fails. std::mem::conjure_zst is an unsafe function intended as the sanctioned way to create a value of a zero-sized type, replacing workarounds such as transmuting ().

Cargo cooldowns, lints and a new layout

The most operationally interesting change is a publish-age threshold. Cargo can skip dependency versions published more recently than a configured time; the announcement's example sets [registry] global-min-publish-age = "3 days" in .cargo/config.toml. The reasoning is that malicious package versions are often caught within hours or days, so waiting filters many of them out. Versions already recorded in Cargo.lock are exempt.

Cargo also gains its own lint system, controlled by the [lints.cargo] table. The first built-in check, cargo::unused_dependencies, warns about dependencies nothing uses. It only appears once every build target that might use the dependency is built, and dev-dependencies are out of scope.

Intermediate build artifacts now live in a new directory layout. Because that layout is not a stable interface, tools that scan the build directory may need to rely on Cargo's JSON messages to locate artifacts instead. Separately, cargo install now defaults to the lockfile bundled inside the .crate tarball.

A large release, plus a patch

Counting the GitHub release notes, the write-up tallies 88 bullet entries: 47 stabilized APIs, 20 compatibility notes, 7 language items, 4 Cargo items, 3 each for platform support and libraries, 2 for the compiler, and 1 each for Rustdoc and other changes. The compatibility notes are the first thing to read before upgrading a sizable codebase.

Other changes worth knowing: wasm32-wasip3 is promoted to Tier 2 and i686-pc-windows-gnu moves to Tier 2, minus host tools; the standard library now tracks Unicode 18.0.0; box patterns are no longer valid syntax; and on ARM targets, -Ctarget-feature and -Ctarget-cpu values that would change the ABI now fail as hard errors. Release 1.100.1 fixes a regression where some types were no longer inferred as implementing Iterator — anyone who hit that on 1.100.0 should move to the patch.

The write-up's authors add a caveat: they relied on the official announcement, the release notes and the GitHub releases API, and did not build anything with 1.100 themselves, so the behavior described is the project's own account.

What to do before upgrading

The write-up suggests a short checklist: run rustup update stable and build your project. If the build fails, start with the compatibility notes, then check for crates affected by the never type fallback change. Test any tooling that reads Cargo's build directory now rather than later. Teams concerned about supply-chain risk can pick a cooldown value and see how often it holds back a version they actually wanted.

Why it matters

Three groups are affected at once. Language users get a decade-old item finally stabilized, together with a fallback change that touches type inference in pre-2024 editions — the kind of shift that can surface as new unreachable-code warnings or puzzling type errors in rarely-exercised code paths. Library authors get stable allocator APIs, opening the door to custom allocation strategies for core collection types. Anyone managing supply-chain risk gets a low-effort Cargo mitigation against a documented attack pattern, at the cost of a few days' delay on new dependency versions. And teams whose CI parses Cargo's build directory have a concrete migration task, because that layout just changed underneath them.

  • #rust
  • #cargo
  • #programming-languages
  • #compilers
  • #supply-chain

Related posts