Course

A Beginner's Guide To Rust

Glad you're here. You're going to write Rust in a browser tab. No setup, no project structure to wrangle, just small problems that build into real fluency. Each chapter has a short note, a working code editor, and tests that turn green when your code is right. Most take five to ten minutes.

Along the way you'll meet ownership and borrowing, pattern matching, Option and Result, iterators, structs and methods, modules, and four hands-on mini-projects: a password validator, a word counter, an env-file parser, and a CSV parser. Skip ahead if a chapter feels familiar; come back when something clicks.

Let's get acquainted

Here's your first piece of Rust. Hit Run below to send it off to the compiler — if everything's wired up, you'll see Hello, Rust! appear underneath. Then we'll sign you up and start chapter 1.

hello.rs

Output