What's New in Rust 1.56 and 1.57
Posted Thu, 23 Dec 2021 20:00:00 +0000Episode TranscriptJon and Ben discuss the highlights of the 1.56 and 1.57 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:14] - Rust 2021 edition
- [@01:16] - What is an edition?
- [@05:03] - Disjoint captures in closures
- [@09:00] -
IntoIterator
for arrays - [@11:12] - Or patterns in macro_rules
- [@13:31] - New default Cargo feature resolver
- [@15:16] - Additions to the prelude
- [@19:38] - Panic macro consistency and new reserved syntax
- [@20:33] - Implicit formatting captures (more on Reddit)
- [@25:00] - Reserved syntax for “f-strings”
- [@27:54] - Why
panic!
had to change - [@28:55] - Other uses for reserved syntax
- [@30:15] - Warnings promoted to errors
- [@35:23] -
cargo fix
[@36:20] - Rust 1.56
- [@36:30] - Cargo.toml
rust-version
- [@42:54] - New bindings in
binding @ pattern
- [@44:27] - Stabilized APIs
- [@49:27] - Changelog deep-dive
- [@49:27] -
impl From<[(K, V), N]>
for collections - [@53:07] - Remove
P: Unpin
bound onimpl Future for Pin
- [@55:16] - Instant backsliding protection optimization
- [@58:01] - LLVM 13 upgrade
- [@59:23] - Have Cargo set environment variables
- [@49:27] -
- [@1:00:17] - Rust 1.56.1
[@1:04:52] - Rust 1.57
- [@1:05:20] - Panic in const contexts
- [@1:07:20] - Custom Cargo profiles
- [@1:08:45] - Fallible allocation
- [@1:12:33] - Stabilized APIs
- [@1:16:45] - Changelog deep-dive
- [@1:16:50] -
Vec::leak
no longer allocates - [@1:18:03] - Nintendo 3DS added as Tier 3 platform
- [@1:19:03] - Cargo no longer passes through
RUSTFLAGS
- [@1:20:13] - Lots more
#[must_use]
instd
- [@1:22:00] -
File::read_to_*
optimized - [@1:23:24] - Curly braces macros accept following
.
and?
- [@1:16:50] -
- [@1:25:22] - Banter – Rust all the way down.
Credits
Intro Theme: Aerocity
Audio Editing: Aerocity
Hosting Infrastructure: Jon Gjengset
Show Notes: Jon Gjengset
Hosts: Jon Gjengset and Ben Striegel
Transcript: Eric Seppanen