A practical guide to updating to Rust 1.100, reviewing the impact of the never type, and safely enabling Cargo's dependency cooldown.
Rust 1.100.0 is the first stable three-digit version and arrives with a long-awaited feature: the ! type. We set out to update an existing project, verify that nothing breaks, and enable Cargo's new defense against newly published versions. This guide follows that journey, supported by the official release notes and InfoQ's coverage.

What you need
You'll need rustup installed and a Rust project under version control, so you can revert if anything warns about unreachable code. It's worth noting that Rust 1.99 is no longer supported and 1.101 will arrive following the six-week cycle, around December 24, 2026. Also, review what the never type is in the stabilization goal: a decade of work and five failed attempts.
- Create a test branch and verify that the project compiles and passes tests with your current version.
- Update the toolchain with
rustup update stableand confirm the installed version. - First, update dependencies and recompile: fixes for the most used crates have already been published.
- Review new warnings, especially those for unreachable code, and decide if any adjustments are needed.
- Add the cooldown setting to your Cargo configuration and validate that resolution still works.
Update and monitor the never type change
The command is as indicated in the release notes. Afterward, we check which compiler we have:
rustup update stable
rustc --versionWhat to expect: std::convert::Infallible becomes an alias for !, so APIs that already used Infallible transparently accept the new type. To achieve this, the 2015, 2018, and 2021 editions change the never type's fallback behavior from () to !, matching what the 2024 edition already did. The described impact is almost imperceptible, although more code might be marked as unreachable.
If something fails during the update, don't touch your code yet: first, upgrade your dependencies. Now you can name the type in signatures like Result<T, !> to express an operation that cannot fail.
Enable dependency cooldown in Cargo
The version adds an optional setting that delays the adoption of newly published versions, intended as a defense against malicious crate publications. In Cargo's configuration, it's declared as follows:
[registry]
global-min-publish-age = "3 days"There are important nuances. According to comments collected on Hacker News, a user detected in the beta that cargo install ignores the setting and that an update could degrade a forced security fix; the release notes mention this as a known warning. Therefore, cooldown should not hinder urgent patches: let normal updates wait, but apply security advisories immediately.

Other new features worth trying
The core of the allocator API is now stable: the Allocator trait allows defining custom allocators for Vec and Box, and is the basis of the Allocators 1.0 project. There are criticisms in the internals forum: the current design does not support inline storage because moves invalidate internal pointers.
core::mem::DropGuard: executes a closure on any scope exit.std::mem::conjure_zst: for zero-sized types inunsafecode.- Small ergonomic improvements:
bool::toggle,str::trim_prefix,str::trim_suffix, andBox::map, which several readers pointed out in the discussion thread for not appearing in the official blog.
Original source: infoq.com
Article generated with AI.larebelion



Comments (0)
No comments yet. You can be the first.
Write a comment