What's New in Rust 1.58 and 1.59

08/03/2022 1h 13min
 What's New in Rust 1.58 and 1.59

Listen " What's New in Rust 1.58 and 1.59 "

Episode Synopsis

Jon and Ben discuss the highlights of the 1.58 and 1.59 releases of Rust.

Contributing to Rustacean Station

Rustacean Station is a community project; get in touch with us if you’d like to suggest an idea for an episode or offer your services as a host or audio editor!


Twitter: @rustaceanfm
Discord: Rustacean Station
Github: @rustacean-station
Email: [email protected]


Timestamps & referenced resources

[@01:10] - Rust 1.58

[@01:18] - Captured identifiers in format strings
[@07:40] - Reduced Windows Command search path

ripgrep CVE
ripgrep fix commit


[@11:05] - More #[must_use] in the standard library

Tracking issue for #[must_use] PRs
When to use #[must_use]


[@17:16] - Stabilized APIs

std::fs::OpenOptions
Tracking issue for *::unwrap_unchecked


[@22:50] - Rust 1.58.1

Security Advisory
C++ is probably also vulnerable




[@27:15] - Rust 1.59


[@28:00] - Inline assembly

std::intrinsics
Inline assembly by example


[@39:06] - Destructuring assignments
[@44:00] - Const generics defaults and interleaving
[@46:11] - Future incompatibility warnings
[@51:28] - Creating stripped binaries
[@53:54] - Incremental compilation off by default

Incremental disabled back in Rust 1.52.1
The identified issue


[@58:50] - Stabilized APIs

available_parallelism
num_cpus crate


[@1:03:04] - Changelog deep-dive

cargo r -r
Tracking issue for v0 symbol mangling
Switching to v0 by default
HashSet and HashMap method bounds changed
fantoccini using multiple impl blocks




Credits

Intro Theme: Aerocity

Audio Editing: Aerocity

Hosting Infrastructure: Jon Gjengset

Show Notes: Jon Gjengset

Hosts: Jon Gjengset and Ben Striegel