Course

A Beginner's Guide To Rust

Glad you're here! Let's learn some Rust today. Each chapter has exercises, a code editor, and tests that turn green when your code is right. No setup needed.

Along the way we'll meet ownership and borrowing, pattern matching, Option and Result, iterators, structs and methods, modules. 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