Rust 1.100 stabilizes the never type, allocator APIs and Cargo dependency cooldowns
Brief
Rust 1.100 adds several stable language and library capabilities, along with Cargo changes for dependency maintenance and resolution.
Language and library
- The never type
!can now be named anywhere;Infalliblebecomes an alias for it. The change also updates never-type fallback in editions 2015, 2018 and 2021, which may affect some code. - The stabilized core of
allocator_apilets library authors use custom allocators withVecandBoxthrough theAllocatortrait. core::mem::DropGuardruns a closure when dropped and providesdismissto return the guarded value without running the destructor.
Cargo changes
- Cargo reports unused dependencies by default, with limitations: warnings require building all targets that might use a dependency, and are not shown for unused dev-dependencies.
- Cargo now consistently applies build-configuration hashes in its build directory; the change may affect build processes or tests that relied on workarounds.
- Set
global-min-publish-agein.cargo/config.tomlto make dependency resolution skip versions published more recently than the configured age. This can reduce risk from some supply-chain attacks, but is not a complete defense.
Getting the release
- Update an existing rustup installation with
rustup update stable.
Generated by AI from the original article. Check the source for full details.