Rust 1.100.0 stabilizes custom allocators and the never type
ยท FPTWaze news desk ยท New version
Rust 1.100.0 is released with stable custom allocators, the never type, and Cargo dependency cooldowns. Some existing code may now see new errors.

The Rust project has released Rust 1.100.0. This version makes custom allocators and the never type stable, and it adds several changes to Cargo. Custom allocators let Vec and Box work with an allocator you choose, through new functions such as Vec::new_in and Box::new_in.
The never type, written as !, is now stable. Infallible is now a type alias for !, and the never type fallback is now ! on all editions. The extern custom ABI is also stable.
Other changes in this release: - Cargo has its own lint system, configured in the [lints.cargo] table, with a new unused dependency check. - Dependency cooldowns let Cargo ignore versions published too recently, unless they are already in Cargo.lock. - cargo install uses the lockfile inside the crate package by default, so --locked has no effect.
Cargo also uses a new layout for intermediate build artifacts. Tools that read the build directory should use Cargo's JSON messages to find artifacts, because the layout is not a stable interface. The standard library now uses Unicode 18.0.0.
Some existing code may get new errors. Closures now capture variables used in if let more precisely, and some impls on Box now cover arbitrary allocators, which can cause new type inference errors.
Source: Rust release notes โ. This summary is prepared automatically from the official source and may contain mistakes; the source is authoritative.