Improving Your Rust Life
summary
Suggests using the beta channel (six-week lead, ~35 point releases so far) to get fixes early without nightly churn; shows Cargo shortcuts (cargo run --example, single-letter build/test), enable release stripping and target-cpu=native, and share a target folder to cut duplicate builds. Recommends Clippy and cargo lints (duplicate-deps, non-std lazy statics, unnecessary Option<&T>, same-name-method, excessive-bools), snapshot testing with cargo insta, mutation testing with cargo-mutants/cargo-mutagen, cargo sweep for old artifacts, and small wins like must_use, expect annotations and box_leak.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 2:59Beta channel for Rust
- 4:45Cargo shortcuts
- 7:13Advanced cargo configs
- 9:24Clippy lints
- 12:33Clippy’s hidden lints
- 14:21Configuring Clippy
- 15:45Cargo audit checks
- 16:29Modern testing
- 17:58Snapshot testing with Insta
- 19:42Mutation testing
- 21:09Rust Analyzer settings
- 22:17Cargo sweep
- 23:25Cargo templates
- 23:45WebAssembly with Cargo Component
- 24:50Pattern matching
- 28:08Rust annotations
- 30:38Box leak for static
related talks
32mBuilding and Maintaining Rust at Scale
38mStrategies to speed up build iteration, or dynamic hot reloading
29mPerformance: We're In This Together
22mShipping a Solid Rust Crate
26mPiecing together Rust: It is more than just writing code
38mMaking Rust Delightful
29mRust is easy
12mWhy you should be checking out Rust
