Learn Rust by writing real code
From your first cargo run to async HTTP: ownership, borrowing, enums, traits and real programs, one step at a time.
Each chapter explains one idea, shows a worked example and then asks you to write and run your own Rust code in the browser, with tests that check your answer.
Anyone can read the chapter list. The chapters themselves are part of licode Club.
Rust chapters
- Hello, Cargo
- Variables & Mutability
- Data Types
- Functions
- Conditions & Loops
- Ownership
- Borrowing & References
- Strings & Slices
- Structs
- Enums & Pattern Matching
- Collections
- Error Handling
- Traits & Generics
- Command-line Args & Files
- Async Rust & HTTP
- Iterators & Closures
- Lifetimes
- Smart Pointers
- Threads & Shared State
- Modules & Project Structure
- Testing in Rust
- Debugging & Reading Rust Codebases
- Performance & Profiling
- Capstone: A Production-Grade CLI