Dave MacLeod's book breaks Rust into 24 short lessons, each sized to fit into a lunch break, so learning the language doesn't require carving out large blocks of study time. It's written to work even if Rust is your first programming language.
What you'll be able to do afterward
- Write real Rust programs and make sense of compiler and Clippy messages
- Choose appropriate types for different situations
- Navigate the standard library and pull in third-party crates
- Document code and work with async Rust
- Write simple declarative macros
- Apply test-driven development in Rust
Rust itself is positioned as a language that gets you C-like performance without C's memory-safety headaches, backed by a strict compiler and a growing library ecosystem — and this book is built to get you writing it productively, one short lesson at a time.
After reading the book, you will be able to:
- Create real programs in Rust
- Understand compiler messages and Clippy - a tool for code writing suggestions
- Make informed decisions about choosing the right types in different contexts
- Navigate the Rust standard library and its popular components
- Use third-party Rust libraries (“crates”) to solve common tasks
- Document your Rust code
- Work with libraries using asynchronous Rust
- Write simple declarative macros
- Master the test-driven development (TDD) approach in Rust
About the technology
Rust is a modern programming language that offers low-level performance comparable to C, but without the complex syntax, memory management issues, and code safety concerns. Rust combines a powerful compiler, a rich library ecosystem, and high performance.
About the book
“Learn Rust in a Month of Lunches” divides learning the language into 24 small lessons, each of which can be completed in an hour or less. The examples are easy to understand, allowing you to quickly transition from zero knowledge of Rust to mastering asynchronous programming and creating your own macros. The code from the book can be run in the browser environment Rust Playground, so you won't need to set up a development environment. It’s the easiest way to start programming in Rust!