Skip to content

Rust for Beginners

From your first program to ownership, borrowing, structs, enums, collections, errors, traits, iterators, smart pointers and threads.

Free16 modules122 lessons3 exercises≈ 7 h

Tests check every exercise: in your browser and in the cloud

The course has no coding tasks on the site yet: the lessons and quizzes need nothing installed. To run the lesson examples on your own computer, set it up in two steps.

  1. Install Rust

    The lessons use Rust 1.99 or newer. Rust is installed with rustup, which also installs Cargo, the tool that builds and runs your programs.

    • Open Install Rust on rust-lang.org: the page offers the installer for your system.
    • On Windows the installer also needs the Microsoft C++ build tools and offers to install them for you; the Windows guide shows that step.
    • First steps with Cargo shows how to create and run your first project.
  2. Install VS Code

    Download VS Code and add the rust-analyzer extension from the Rust team: it highlights errors as you type and shows the types the compiler inferred.

Syllabus