What's New in Rust 1.74 and 1.75

09/10/2024 1h 23min
 What's New in Rust 1.74 and 1.75

Listen " What's New in Rust 1.74 and 1.75 "

Episode Synopsis

Jon and Ben discuss the highlights of the 1.74 and 1.75 releases of Rust.

This episode was recorded as part of a YouTube live stream on
2024-05-18, which you can still
watch.

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

[@00:13] - Rust 1.74


[@00:21] - Lint configuration through Cargo
[@07:42] - Cargo registry authentication

Cargo documentation


[@11:02] - Projections into opaque return types
[@14:23] - Stabilized APIs

[@14:23] - io::Error::other
[@15:38] - Saturating wrapper type
[@18:43] - const transmute_copy


[@18:03] - Compatibility notes
[@20:51] - Changelog deep-dive

[@20:51] - --keep-going
[@22:42] - Cargo -p partial versions
[@24:21] - Warning boxes in rustdoc
[@26:02] - Generic parameters in rustdoc search
[@29:08] - impl Step for Ipv4
[@31:33] - private_in_public lint

RFC 2145


[@36:02] - New Cargo lockfile recommendation

Rationale






[@37:34] - Rust 1.74.1

No super interesting changes.

But, check in on PR filed during stream.

[@41:56] - Rust 1.75


[@41:56] - async fn and -> impl Trait in traits

Blog announcing what’s actually stabilizing
Jon’s impl Trait talk


[@55:34] - Pointer byte offset APIs
[@58:22] - Code layout optimizations for rustc

BOLT


[@1:04:34] - Stabilized APIs

[@1:04:34] - Atomic*::from_ptr
[@1:06:42] - OS-independent file times
[@1:07:46] - Option::as_slice

Long reddit comment




[@1:09:59] - Changelog deep-dive

[@1:09:59] - impl BufRead for VecDeque<u8>
[@1:12:40] - Workspace-aware cargo new
[@1:13:20] - matching with exhaustive integer ranges
[@1:14:52] - Cross-crate auto-inlining for small fns
[@1:18:31] - Cargo output hyperlinking




[@1:22:00] - Mid-stream PR check-in

Another PR check-in and tracking in homu rustc build queue.

Credits

Intro Theme: Aerocity

Audio Editing: Aerocity

Hosting Infrastructure: Jon Gjengset

Show Notes: Jon Gjengset

Hosts: Jon Gjengset and Ben Striegel