The Spectrum Dispatch News

technology

Rust 1.100.0 released with never type stabilization and custom allocators

The latest Rust version stabilizes the never type, custom allocators, and extern "custom", while introducing new platform support and Cargo improvements.

Rust 1.100.0 released with never type stabilization and custom allocators

Rust 1.100.0 has been released with significant language and tooling improvements. According to the release notes, the language now stabilizes the never type, a feature that represents computations that never return a value. The release also stabilizes extern “custom”, which allows declaring functions with custom calling conventions.

Rust 1.100.0 released with never type stabilization and custom allocators

A major library addition is the stabilization of custom allocators, enabling developers to use alternative memory allocation strategies beyond the default global allocator. The release includes new standardized APIs for allocators and extended implementations for existing types like Box, Vec, and Rc that now support custom allocators.

The compiler gains several quality-of-life improvements. A new lint catches repeated #[repr(..)] attributes, helping developers avoid redundant attribute specifications. Several existing lints—dropping_references, dropping_copy_types, and undropped_manually_drops—have been extended to cover drop_in_place operations. The compiler now treats repr(align) fields in repr(packed) types as a deny-by-default lint rather than an error.

Platform support continues to expand. The i686-pc-windows-gnu target has been promoted to tier 2 without host tools, while wasm32-wasip3 is now a tier 2 platform. A new tier 3 target for powerpc64-sony-ps3 has been added.

Cargo, Rust’s package manager, introduces a new linting system where some warnings can now be controlled via a [lints.cargo] table. This includes a built-in unused dependency check. The release also adds minimum publish age configurations (dependency cooldowns), allowing users to exclude recently published versions unless already locked. Additionally, cargo-install now uses existing lockfiles from crate tarballs by default, and Cargo has changed its directory layout for build artifacts—tools relying on the old layout should use Cargo’s JSON messages instead.

The release includes several API additions, such as string trimming methods (trim_prefix, trim_suffix), Box::take, Box::map, and implementations of PartialEq for Cow comparisons. Standard library updates include mapping ENOTSUP to ErrorKind::Unsupported and soundness fixes in SGX-related code.

Multiple compatibility notes describe breaking changes. Closures now more precisely capture variables in if let expressions, potentially causing new compilation errors. The never type fallback now defaults to ! across all editions. Box patterns are no longer syntactically allowed, and dyn-compatibility checks for trait objects have been extended. Several ARM-related changes address FPU baseline feature corrections from earlier versions.

Key facts

  • Never type and extern “custom” are now stabilized features
  • Custom allocators can now be used with Box, Vec, Rc, and Arc types
  • New Cargo linting system allows users to control warnings via [lints.cargo]
  • Dependency cooldowns (minimum publish age) feature introduced via RFC 3923
  • i686-pc-windows-gnu promoted to tier 2, wasm32-wasip3 promoted to tier 2, powerpc64-sony-ps3 added as tier 3
  • Cargo build artifact directory layout has changed; tools should use JSON messages instead

Sources

← All posts