Free Rust Tutorials

26 free, hands-on Rust tutorials — run every code example directly in your browser, no install or signup required. Start from the basics and work through ownership, lifetimes, traits, async/await, and a capstone project.

intermediate

Ownership & Borrowing

Rust ownership explained — understand move semantics, borrowing rules, and how Rust guarantees memory safety without a garbage collector

+150 XP
25 min read
2 prerequisites

Structs & Enums

Learn how to define Rust structs and enums to create custom data types, implement methods, and model your domain effectively

+140 XP
20 min read
3 prerequisites

Pattern Matching

Master Rust's powerful pattern matching with match expressions, if let, and destructuring

+150 XP
25 min read
2 prerequisites

Borrowing in Depth

Deep dive into Rust borrowing and references — learn shared and mutable references, the borrow checker, and safe data access

+150 XP
25 min read
1 prerequisites

Closures

Rust closures tutorial — learn how closures capture variables, understand Fn, FnMut, and FnOnce traits, and use closures with iterators

+150 XP
25 min read
2 prerequisites

Option and Result

Master Rust Option and Result types for handling absence and errors with combinators, the ? operator, and error propagation

+150 XP
25 min read
2 prerequisites

Error Handling

Learn Rust error handling with the Result type, panic!, recoverable vs unrecoverable errors, and the ? operator for propagation

+140 XP
20 min read
3 prerequisites

Collections

Learn to use Rust's standard collections including Vec, HashMap, and HashSet with iterators

+150 XP
25 min read
2 prerequisites

Iterators

Master Rust's powerful iterator system to write expressive, efficient, and functional-style code

+150 XP
25 min read
3 prerequisites

Strings and Text

Understand Rust's two string types, text manipulation, UTF-8 encoding, and common string operations

+150 XP
25 min read
3 prerequisites

Testing in Rust

Learn how to write unit tests, integration tests, and use Rust's built-in testing framework to ensure your code is correct

+150 XP
25 min read
3 prerequisites

File I/O

Learn how to read from and write to files in Rust using std::fs and std::io traits

+150 XP
25 min read
4 prerequisites

Serde and JSON

Learn how to serialize and deserialize data structures to and from JSON using the serde and serde_json crates

+150 XP
25 min read
4 prerequisites

Frequently Asked Questions

Is this a course for the Rust programming language?
Yes. LearningRust.org teaches the Rust programming language through a free browser-based course, not the survival game. You will practice ownership, borrowing, lifetimes, traits, async Rust, and command-line projects.
Can I learn Rust for free here?
Yes. The full Rust curriculum, examples, and online playground are free to use. You can start with lesson one, run code in the browser, and continue through the capstone project without installing Rust first.
Do I need to install Rust before starting?
No. The lessons and playground run Rust code in a secure browser sandbox, so you can learn the language before setting up rustup, Cargo, or a local editor.
What is the best way to learn Rust?
Start with variables and functions, spend extra time on ownership and borrowing, then practice with structs, enums, traits, collections, and error handling. The fastest path is to run small examples, break them, read the compiler feedback, and fix them.