From setting up your environment through conditionals, loops, data structures, ownership, functions, structs and traits, all the way to debugging. Fifty lessons that take you to the point where you can read Rust, write it, and hold a conversation with the compiler. Every piece of code shown actually compiles.
about 1 hours in total (estimate)
The 50 lessons are grouped into seven chapters. Working through them in order is the best way, but you are welcome to dip into whatever interests you. Note: Rust cannot run inside the browser, so try the code locally or in the Rust Playground (play.rust-lang.org).
Take this chapter's review quiz ›
From setting up your environment through println!, variables, numbers and strings, to reading compiler errors. Come out the other side and you can write code, compile it, and fix it.
Take this chapter's review quiz ›
Branch with if, repeat with loop, while and for. You gather the tools that give a program its flow, and finish by building a number-guessing game with an external crate.
Take this chapter's review quiz ›
Vec, HashMap, HashSet, tuples and iterators. This is also where we take on ownership and borrowing — the heart of Rust — head-on.
Take this chapter's review quiz ›
Give a piece of work a name and pull it out. You go as far as slices, closures and generics, then tidy long code by splitting it into functions.
Take this chapter's review quiz ›
Result and Option in place of exceptions, propagation with ?, files, JSON and splitting into modules. This is the foundation of a program people actually use.
Take this chapter's review quiz ›
Data in a struct, behavior in an impl, shared promises in a trait. You finish by designing an inventory system with structs.
Take this chapter's review quiz ›
Cargo and external crates, writing your own iterators, debugging and testing. This chapter hands you the map for everything beyond the course.
Once you have finished all 50 lessons, move on to lifetimes, concurrency and async/await. Membership unlocks every course.