Rustacean Station
Rustacean Station
Rustacean Station
What's New in Rust 1.42 and 1.43
1 hour 10 minutes Posted May 8, 2020 at 2:30 pm.
] Useful line numbers on unwrap
] Subslice patterns
] matches!
] Error::description deprecation
] Other changes in 1.42
] Rust 1.43
] item macro fragments and parser improvements in general
] Primitive type inference
] Smaller changes surfacing in release notes
] New cargo environment variables
] Associated consts on numeric types
] What can we do in an edition?
] The primitive module
] String implements AsMut<str>
] cargo profile in config
] New feature resolver
] Lots of new clippy lints: 1.42, 1.43
] Rustfest postponed
0:00
1:10:53
Download MP3
Show notes
Jon and Ben examine the features of Rust 1.42 and Rust 1.43.
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:45] - Useful line numbers on unwrap
#[track_caller]
[@
04:22] - Subslice patterns
Stabilization report
Ignoring with ..
@-patterns
struct updates with ..
[@
16:09] - matches!
Macro documentation
Jon proposes assert_matches
[@
18:13] - Error::description deprecation
RFC
Soft deprecation in 1.27
failure
thiserror
anyhow
eyre
Jane expermenting with track_caller in eyre
[@
24:23] - Other changes in 1.42
Documentation improvements to cargo
[@
26:47] - Rust 1.43
[@
27:17] - item macro fragments and parser improvements in general
More details about the problem
PR that fixed this
[@
33:30] - Primitive type inference
[@
Steve Klabnik’s blog post
Rust 2020 roadmap on “finishing things”
[@
39:00] - New cargo environment variables
Cargo target directory
assert_cmd
Environment variables set by cargo
[@
43:39] - Associated consts on numeric types
Ben’s RFC
Issue from way back when
The associated constants PR (2015)
max_value PR (2015)
PR for Ben’s RFC
[@
Error::source RFC
[@
54:20] - The primitive module
use paths
The Rust prelude
Next edition prelude
[@
57:50] - String implements AsMut<str>
[@
59:40] - cargo profile in config
cargo global configuration
[@
1:02:03] - New feature resolver
cargo merges features between dependency types
[@
1:05:30] - Lots of new clippy lints: 1.42, 1.43
All the clippy lints
Pruning unwanted clippy lints
[@
1:08:52] - Rustfest postponed
Credits
Intro Theme: Aerocity
Audio Editing: @alphastrata
Hosting Infrastructure: Jon Gjengset
Show Notes: Jon Gjengset
Hosts: Jon Gjengset and Ben Striegel