Announcing Rust 1.100.0
Rust 1.100.0 stabilizes the never type `!` after a decade and five failed attempts, makes `Infallible` an alias for it, and switches never-type fallback from `()` to `!` in pre-2024 editions, a rare-case breaking change that may also surface more unreachable code. The release also stabilizes the core `Allocator` trait for `Vec` and `Box`, adds `DropGuard` for closure-based cleanup with a `dismiss` escape hatch for rollback patterns, and introduces unsafe `conjure_zst` as the sanctioned way to create zero-sized types. Cargo gains an unused-dependency lint under `[lints.cargo]`, a `build-dir` layout that consistently applies the build-configuration hash to cut cache collisions, and `global-min-publish-age` dependency cooldowns that hold back freshly published crate versions to reduce supply-chain risk.
Related posts
- Announcing Rust 1.99.0
Rust Blog mediumAdept
Rust 1.99.0 stabilizes defining C-ABI variadic functions in Rust using `...`, typed as `VaList` (ABI-compatible with C `va_list`) with readable types gated by the `VaArgSafe` trait. It also stabilizes `Layout::for_value_raw`, `mem::size_of_val_raw` and `mem::align_of_val_raw`, settling the safety rules for getting size and alignment from raw pointers to unsized types. The `Box::leak` docs now recommend against later deallocating leaked memory because it interacts badly with compiler optimizations and upcoming custom allocators, so `Box::into_raw` or `Box::into_non_null` should be used instead. Other stabilized APIs include `Vec::into_parts`/`from_parts`, `String::from_utf8_lossy_owned` and `std::fs::set_times`.
- Announcing Stable V8 Bindings for Rust
Deno mediumAdeptRusty V8, Deno's zero-overhead Rust bindings to V8's C++ API, is now stable and skips 1.0 to align with Chrome versioning, starting at 129.0.0. The crate integrates V8's build into Cargo and supports custom runtimes, WebAssembly, the V8 Inspector, the Fast API and cppgc garbage collection. Rust's scope-tied `Local<T>` handles catch invalid handle use at compile time, which C++ embedders must manage by hand. The major version bumps every 4 weeks with each V8 upgrade, so breaking changes follow semver and land only alongside V8 updates.
- Toolchain Horizons: Exploring Rust Dependency-Toolchain Compatibility
TigerBeetle mediumAdeptTesting the top 100 crates.io crates by binary-searching Rust releases 1.0–1.94 for the oldest toolchain where `cargo check` succeeds suggests any given Rust compiler stays viable for a dependency-using project for only about two years. The cause is crates bumping `rust-version` in point releases, not language changes. Ecosystem staples like serde (1.31) and futures-core still have wide support, while syn and proc-macro2 pull many crates toward recent toolchains. The TigerBeetle Rust client dropped all dependencies, including hand-rolled replacements for futures' block_on, unfold and oneshot channels, and was backported to Rust 1.39. The shipped client targets 1.63 (about 3.5 years of support).
- Bun 1.4
Bun mediumAdept
Bun 1.4 adds 1,517 newly passing Node.js test-suite tests, fixes over 2,900 issues, and rewrites Bun from Zig to Rust. JavaScriptCore now uses an extended mimalloc instead of libpas, adding a scavenger thread, partial page clearing and better lazy zeroing. Together with GC timer tuning, segmented-array Strong roots and fewer futex calls, this cuts idle CPU 5x, HTTP server peak memory 13–48%, and Linux startup time in half. New APIs include Bun.Image, Bun.WebView, Bun.markdown, Bun.cron and Bun.Terminal, plus Markdown CPU, heap and bundle profiles and a cross-platform memoryPressure event built on kqueue, PSI and Windows resource notifications.
- Announcing Rust 1.99.1
Rust Blog mediumAdept
Rust 1.99.1 is a point release fixing three regressions. LLVM's loop-idiom-wcslen pass could emit calls to `wcslen` on targets lacking it, breaking UEFI builds using `std`, so compiler-builtins now provides a fallback. FFI functions returning `bool` on x86_64 could leave bits 1-7 of the return register unspecified; the return type is again marked for zero-extension as the ABI requires. `rust-lld` on macOS could fail to load libLLVM when invoked without the rustup proxy and now carries an rpath entry for libLLVM.dylib.