Courses

Rust from Zero

Learn Rust from absolute zero. Short lessons, code you run right in the page, pictures for every idea, and a small text-adventure game you build as you go. No setup and no experience needed.

Beginner · 4 lessons · about 47 min · Free, runs in your browser

Start the course
  1. 1 Hello, Rust

    Run your first program, print anything you like, and store values in variables.

    1. 1.1 Your first Rust program (and why Rust is worth learning) 10 min
    2. 1.2 Fill in the blanks: printing values with println! 10 min
    3. 1.3 Variables: why Rust values don’t change (unless you ask) 12 min
    4. 1.4 Project: start your text adventure game 15 min
  2. 2 Values and decisions

    Numbers, text, true and false, if and else, and loops that repeat work.

    Coming soon

  3. 3 Functions

    Break a program into named pieces that take inputs and give back answers.

    Coming soon

  4. 4 Ownership, the big idea

    How Rust keeps memory safe without a garbage collector: moves, borrows and references, drawn step by step.

    Coming soon

  5. 5 Structs and enums

    Model your game's world with your own types, and let match handle every case.

    Coming soon

  6. 6 Handling errors

    Option, Result and the ? operator: programs that fail gracefully instead of crashing.

    Coming soon

  7. 7 Collections

    Vec, HashMap and iterators for working with many values at once.

    Coming soon

  8. 8 Real projects with Cargo

    Install Rust on your own machine, use crates, and turn the game into a real program.

    Coming soon