Free · No signup
Rust Tutorial
Learn Rust from the ground up. Every code example on every lesson is real and runnable — the output shown was captured from an actual execution on this site's own compiler, not typed by hand — and you can try each one yourself with one click.
- 1Introduction to Rust
- 2Your First Rust Program
- 3Variables and Mutability
- 4Basic Types
- 5Ownership
- 6References and Borrowing
- 7Strings and Slices
- 8Structs
- 9Enums and Pattern Matching
- 10Option and Result
- 11Functions
- 12Control Flow
- 13Vectors
- 14Iterators and Closures
- 15Traits
- 16Generics
- 17Error Handling
- 18Collections and the Standard Library
More lessons are added regularly. Want to practice outside the tutorial? Open the Rust compiler. Prefer TypeScript? Read the TypeScript tutorial. Prefer JavaScript? Read the JavaScript tutorial. Prefer Python? Read the Python tutorial. Prefer C? Read the C tutorial. Prefer Hindi? Hindi mein padhein. Prefer Urdu? Roman Urdu mein parhein. ¿Prefieres español? Leer en español.