Rust 1.96.0
Rust 1.96.0 ships new standard library types, stabilised APIs across core and the compiler, and targeted tooling improvements.
- New range types —
core::range::Rangeandcore::range::RangeIterreplace the previousRangeimplementation with properCopysemantics and ergonomic iterator integration array::each_ref/array::each_mut— borrow each element of an array as a reference slice, eliminating manual indexing in array pipelinescore::netmoved to core —IpAddr,Ipv4Addr,Ipv6Addr, andSocketAddrnow live incore, enabling no-alloc networking use casesf32::round_ties_even/f64::round_ties_even— bank-rounding semantics added to floating-point primitives- Compiler fix for
Copyspecialisation — the compiler stopped unsound internal specialisation on theCopytrait, fixing a correctness issue - s390x inline assembly — support for s390x vector registers in inline assembly, expanding the languages reach on IBM Z hardware
- Reproducible cargo archives —
cargo packagenow produces reproducible archives by default
Available via rustup update stable.