"Compiler-Driven Development: Making Rust Work for You"
summary
Rust compiler features drive concrete outcomes: rust-analyzer runs check-on-save, shows inlay hints, autoimports and refactors; cargo fix applies compiler suggestions; enabling lints surfaces bugs early (claims ~70% of memory-safety CVEs avoided) and clippy can require safety comments for every unsafe block. Design patterns (newtype, builder, typestate) leverage the type system to prevent invalid states; a custom "providence" lifetime proves a parser’s remaining-input originates from the original input and enforces it at compile time.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:42Diagnostics
- 1:46Warnings vs Errors
- 3:00Lints
- 5:44Clippy
- 6:23Rust Analyzer
- 7:49Refactoring
- 9:38Type System
- 12:26Design Patterns
- 16:33Pitfalls
- 18:30Usability
related talks
58mRust for The Curious C++ Developers
26mFriendly Ferris: Developing Kind Compiler Errors
25mMaking Tools for Rust: An Introduction to the Compiler and How It Can Help You
32mBuilding and Maintaining Rust at Scale
40mWhy Rust?
35mLet’s Talk About Rust
29mRust is easy
25mLessons Learned From the Rust Ecosystem That Can Be Adopted Elsewhere
