Rust 1.100 released with stable custom allocators and Cargo lints
What happened next
Update · : Rust 1.100.0 stabilizes the never type (!), which was previously blocked after 10 years and five failed stabilization attempts, completing the associated project goal. The article shows that the never type can be coerced to any other type and gives an example of its use in match or if branches.
Rust 1.100.0 is a new release of the Rust programming language, and its notes cover the compiler, platform support, libraries, Cargo and compatibility. Under Rust's tiered platform support[1], the i686-pc-windows-gnu target is now tier 2 without host tools, wasm32-wasip3 is promoted to tier 2, and powerpc64-sony-ps3 is added as a new tier 3 target.
Custom allocators are now stable, ENOTSUP maps to ErrorKind::Unsupported, and soundness[2] issues in std::sys::pal::sgx::waitqueue::unsafe_list are fixed. Cargo gets its own linting system, where some warnings can be controlled in the [lints.cargo] table, and a new unused dependency check is added. Cargo also adds minimum publish age settings, known as dependency cooldowns, under which the resolver skips versions published more recently than the set age unless they are already in Cargo.lock[3]. By default, cargo install now uses the lockfile from the .crate tarball, so --locked becomes a no-op.
The compatibility notes include closures capturing variables in if let more precisely, which may cause new errors, and Infallible becoming a type alias to !. Box patterns are no longer syntactically allowed, and the standard library uses Unicode 18.0.0.
Read the original github.comDiscussion
Discussion
Commenters mostly welcome the release and highlight the change making --locked the default for cargo install, the new &str::trim_prefix method and custom allocators. One commenter asked whether DropGuard fully replaces the scopeguard library, and no answer is given.
Links from the post and discussion
- Official Rust blog post summarizing the key changes blog.rust-lang.org
- Cargo pull request making --locked the default for cargo install github.com
Sources
-
GitHub
Rust 1.100
-
blog.rust-lang.org new source ·
Announcing Rust 1.100.0 | Rust Blog
OriginalDiscussion · 320Discussion · 200Discussion · 48Discussion · 14Discussion
-
KRGeekNews KO new source ·
Rust 1.100.0 - never 타입과 사용자 정의 메모리 할당자 안정화
-
KRGeekNews KO new source ·
Rust 1.100 - never 타입과 사용자 정의 할당자 API 안정화


