API
< Back to all clusters
[TECHNOLOGY] · 2 sources

started · updated

Rust 1.100 stabilizes never type and custom allocator API

The Rust programming language has released version 1.100, marking the stabilization of the never type (!). This development follows approximately ten years and five previous attempts at stabilization. The never type represents expressions that do not produce a value, such as infinite loops or process exits. As part of this update, std::convert::Infallible has become an alias for the never type.

This release also stabilizes the core custom allocator API, allowing library authors to implement the std::alloc::Allocator trait. This enables types like Vec and Box to utilize specific allocators through new constructors such as Vec::new_in and Box::new_in.

Additionally, the Cargo package manager has introduced new supply-chain features, including warnings for unused dependencies and optional dependency cooldowns to skip recently published crate versions. Developers are advised to review compatibility notes, as the change in the never type fallback from the unit type () to ! in the 2015, 2018, and 2021 editions may cause existing code to fail compilation.

Entities

Cargo · Rust