Rust 1.100.0 stable release brings never type, allocator and Cargo updates
The Rust team released Rust 1.100.0 on November 12, stabilizing the never type, core Allocator APIs and Cargo features for dependency management and supply-chain security.
The Rust team released Rust 1.100.0 stable on November 12, marking the first time the language’s version number has reached three digits.
One of the release’s most notable changes is the stabilization of the never type, written as !. After about 10 years and five stabilization attempts, developers can now explicitly use it in any position, including definitions such as Result<T, !>. In Rust 2015, 2018 and 2021, its default fallback also changes from () to !, which may affect a small amount of code.
Rust 1.100 stabilizes core parts of the Allocator API, allowing custom allocators to be defined with the Allocator trait and used with some standard-library types, including Vec and Box. The standard library also adds core::mem::DropGuard and the unsafe std::mem::conjure_zst interface.
Cargo now warns by default about unused dependencies, reorganizes build-cache directories using a unified build-configuration hash, and stabilizes the min-publish-age dependency cooling mechanism. Developers can set a minimum publication age, such as three days, in .cargo/config.toml. Existing rustup installations can be upgraded with rustup update stable.