Rust Basics
Five short modules that take you from your first cargo run to writing safe, idiomatic Rust.
Course modules
Short, practical lessons with an exercise at the end of each one.
-
01
15 min
Hello, Cargo
Install Rust, create a project, and understand what cargo does for you.
-
02
20 min
Variables, Types and Functions
Immutability by default, the core types, and how functions return values.
-
03
25 min
Ownership and Borrowing
The rule that makes Rust memory-safe without a garbage collector.
-
04
20 min
Structs, Enums and match
Model your data, then handle every case the compiler can see.
-
05
25 min
Option, Result and Errors
No null, no exceptions: how Rust makes missing values and failures explicit.