Rust Tutorial

Learn Rust 1.99 and the 2024 edition step by step, from Cargo and ownership to traits, async code and a real command-line project.

18 free lessons Intermediate to Advanced Covers Rust 1.99 (edition 2024)

Start the first lesson

Getting Started

  1. 1Rust Introduction
  2. 2Install Rust with rustup
  3. 3Cargo: New, Run, Build & Check
  4. 4Variables, Mutability & Shadowing
  5. 5Scalar & Compound Types
  6. 6Functions & Expressions
  7. 7Control Flow: if, loop, while & for

Ownership & Borrowing

  1. 8Ownership & Moves
  2. 9References & Borrowing
  3. 10Slices

Structs, Enums & Errors

  1. 11Structs & Methods
  2. 12Enums & match
  3. 13Option & Result
  4. 14Error Handling with ? & Custom Errors

Collections

  1. 15Vectors (Vec)
  2. 16Strings & UTF-8
  3. 17HashMap & BTreeMap

Modules, Traits & Generics

  1. 18Modules, Crates & Visibility
  2. 19Traits (coming soon)
  3. 20Generics & Trait Bounds (coming soon)
  4. 21Lifetimes (coming soon)

Closures & Iterators

  1. 22Closures (coming soon)
  2. 23Iterators (coming soon)

Advanced Rust

  1. 24Smart Pointers: Box, Rc & RefCell (coming soon)
  2. 25Fearless Concurrency (coming soon)
  3. 26Async Rust with Tokio (coming soon)
  4. 27Testing: Unit, Integration & Doc Tests (coming soon)
  5. 28Popular Crates: serde, clap & anyhow (coming soon)
  6. 29Unsafe Rust (coming soon)
  7. 30Editions & What Changed in 2024 (coming soon)
  8. 31Project: Log Analyser CLI (coming soon)

Learn Rust with a mentor

Free lessons get you started. Our Programming & Software Development training adds real projects and code reviews from working developers.

  • Project-based learning
  • Mentor code reviews
  • Free counselling call