Rust from Zero
Learn Rust from absolute zero. Short lessons, code you run right in the page, pictures for every idea, and a small text-adventure game you build as you go. No setup and no experience needed.
-
1 Hello, Rust
Run your first program, print anything you like, and store values in variables.
-
2 Values and decisions
Numbers, text, true and false, if and else, and loops that repeat work.
Coming soon
-
3 Functions
Break a program into named pieces that take inputs and give back answers.
Coming soon
-
4 Ownership, the big idea
How Rust keeps memory safe without a garbage collector: moves, borrows and references, drawn step by step.
Coming soon
-
5 Structs and enums
Model your game's world with your own types, and let match handle every case.
Coming soon
-
6 Handling errors
Option, Result and the ? operator: programs that fail gracefully instead of crashing.
Coming soon
-
7 Collections
Vec, HashMap and iterators for working with many values at once.
Coming soon
-
8 Real projects with Cargo
Install Rust on your own machine, use crates, and turn the game into a real program.
Coming soon