Learn / Rust
Track
Rust, safe and fast.
Rust is the language trusted for browsers, operating systems and security tools, because it stops memory bugs before a program ever runs. Every example in these lessons has been compiled and run, and each lesson ends with a quiz that checks itself.
Writing and running your own Rust here is coming soon, on our own secure code runner.
- 1Your first Rust program
Write your first Rust program: the main function, println! and Cargo, explained simply. - 2Variables: safe by default
Learn let, mut and shadowing in Rust, and why values do not change unless you say so. - 3Types and functions: a unit converter
Rust number types, text and functions with typed inputs and return values. - 4Ownership and borrowing: the big idea
How Rust ownership and borrowing prevent memory bugs, the reason security teams choose Rust. - 5Option, Result and match: no surprises
Handle missing values and errors safely in Rust with Option, Result and match.