THE READING COURSE / RUST 2024Rust,
Rust,
understood.
A complete theory-led route through the language. Read how ownership, types, traits, concurrency, and async work fit together. Each chapter explains the rules in plain language and walks through several code examples. The cookbook stays available as a separate collection of complete projects.
Begin with Rust's model21 long chapters5 reference appendices0 read in this browser
THE COMPLETE ROUTE
Six parts. One coherent model.
01 / 06
The language
01What Rust checksSee the compiler, Cargo, and the promises a successful build actually makes.LONG READ ↗02Values, types, and expressionsUnderstand bindings, type inference, functions, and the value of a block.LONG READ ↗03Control flow is a value storyFollow branches, loops, tuples, and arrays without losing track of types.LONG READ ↗04Ownership and movesLearn why one owner is responsible for a value and what assignment can transfer.LONG READ ↗
02 / 06
Data and models
05Borrowing and slicesUnderstand shared reads, exclusive writes, and views into existing data.LONG READ ↗06Structs and methodsGive related fields a named shape and put behavior beside that shape.LONG READ ↗07Enums and patternsRepresent alternatives as data and make every case visible.LONG READ ↗08Collections and UTF-8 textChoose a collection by its operations and understand why text is not an array of characters.LONG READ ↗
03 / 06
Abstraction
09Errors as part of the typeUse Result, propagation, and custom errors to expose failure honestly.LONG READ ↗10Generics and traitsDescribe reusable code through types and capabilities instead of special cases.LONG READ ↗11Polymorphism without inheritanceCompare enum dispatch, generic dispatch, and trait objects as different design choices.LONG READ ↗12Lifetimes and data flowRead reference relationships, captured context, and lazy iterator pipelines.LONG READ ↗
04 / 06
Programs and tools
13Modules, crates, and visibilityUnderstand how a Rust program names and protects its boundaries.LONG READ ↗14Files, command lines, and data boundariesFollow external input from bytes to validated meaning.LONG READ ↗15Tests and debuggingKnow what the compiler proves and what evidence a test still needs to provide.LONG READ ↗16Smart pointers and shared ownershipUnderstand indirection, reference counts, interior mutability, and cleanup.LONG READ ↗
05 / 06
Systems boundaries
17Threads and communicationUnderstand independent work, ownership transfer, and message passing.LONG READ ↗18Shared state across threadsExplain Arc, Mutex, Send, and Sync without treating a lock as magic.LONG READ ↗19Async work and networkingSee what a future represents, how it is driven, and why cancellation matters.LONG READ ↗20Macros and unsafe boundariesUnderstand code generation and where the programmer must supply a safety proof.LONG READ ↗21Performance and complete systemsConnect language rules to measurement, deployment, and a coherent system design.LONG READ ↗
06 / 06
Reference notes
22Appendix A · Keywords and namesUnderstand why some words shape Rust syntax and how names communicate intent.LONG READ ↗23Appendix B · Operators and symbolsRead punctuation as type, borrowing, comparison, and control-flow information.LONG READ ↗24Appendix C · Derivable traitsKnow what generated trait implementations promise and where a manual rule is needed.LONG READ ↗25Appendix D · The Rust toolchainPlace rustc, Cargo, rustfmt, Clippy, rustdoc, and tests in one mental model.LONG READ ↗26Appendix E · Editions and compatibilitySee how an edition changes source-language rules while crates continue to work together.LONG READ ↗
Built with curiosity. By Navan Sami. ↗Rust · The rules behind the code.