Beginner Rust Tutorials
Build concrete Rust programs step by step. Each tutorial adds a new concept while producing a working application.
Learning Path
| # | Tutorial | Concepts |
|---|---|---|
| 01 | Install Rust | Toolchain setup, Cargo basics |
| 02 | Hello World | Basic syntax, fn main, println! |
| 03 | Variables and Mutability | let, mut, shadowing, constants |
| 04 | Data Types | Scalars, compounds, type inference |
| 05 | Functions | Parameters, returns, expressions vs statements |
| 06 | Control Flow | if, else, loop, while, for |
| 07 | Ownership | Move semantics, Drop, Copy |
| 08 | References and Borrowing | &T, &mut T, borrow rules, slices |
| 09 | Structs | Defining, methods, associated functions |
| 10 | Enums and Pattern Matching | enum, match, Option, Result |
| 11 | Collections | Vec, String, HashMap |
Prerequisites
- Rust installed
- Basic programming knowledge (variables, loops, functions)
Start with 01 Install Rust.