Technology1 min read

Rust 1.100

By · Published by Everything Blog

In short

Rust version 1.100.0 introduces the stabilized never type while turning the existing Infallible type into an alias, alongside a breaking fallback adjustment for pre-2024 editions. Core components of the Allocator API are now stable, enabling developers to supply custom allocators directly to standard Box and Vec types. Furthermore, the release adds a DropGuard helper to run closures upon exit, supports conjuring zero-sized types, and implements Cargo tools to identify unused dependencies.

Key points

  • Developers can install the new release immediately through the rustup tool by switching t…: Developers can install the new release immediately through the rustup tool by switching to the stable channel.
  • Standard library memory management expands with custom allocator support alongside the ne…: Standard library memory management expands with custom allocator support alongside the new core memory DropGuard helper.
  • Existing codebases must account for a breaking change that updates never type fallback be…: Existing codebases must account for a breaking change that updates never type fallback behavior across pre-2024 editions.

Sources checked by our analysis pipeline: 1

The Rust team is happy to announce a new version of Rust, 1.100.0. Rust is a programming language empowering everyone to build reliable and efficient software.

If you have a previous version of Rust installed via rustup

, you can get 1.100.0 with:

$ rustup update stable

If you don't have it already, you can get rustup

from the appropriate page on our website, and check out the detailed release notes for 1.100.0.

If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (rustup default beta

) or the nightly channel (rustup default nightly

). Please report any bugs you might come across!

What's in 1.100.0 stable

- Never type

Allocator

APIDropGuard

API- Conjuring zero-sized types

- Reporting unused dependencies in Cargo

- Reducing Cargo cache collisions

- Cargo min-publish-age

- Stabilized APIs

Never type

After 10 years and 5 failed stabilization attempts, the never type is finally stable! This also completes the project goal for this work.

The never type, spelled !

in code, is the canonical uninhabited…

Technology