Rust Basics

Five short modules that take you from your first cargo run to writing safe, idiomatic Rust.

5 modules Self-paced Lifetime access By Harkirat Singh

Course modules

Short, practical lessons with an exercise at the end of each one.

  1. 01

    Hello, Cargo

    Install Rust, create a project, and understand what cargo does for you.

    15 min
  2. 02

    Variables, Types and Functions

    Immutability by default, the core types, and how functions return values.

    20 min
  3. 03

    Ownership and Borrowing

    The rule that makes Rust memory-safe without a garbage collector.

    25 min
  4. 04

    Structs, Enums and match

    Model your data, then handle every case the compiler can see.

    20 min
  5. 05

    Option, Result and Errors

    No null, no exceptions: how Rust makes missing values and failures explicit.

    25 min