Course

A Beginner's Guide to Rust

The day has finally come. You're ready to dive into this mysterious programming language your peers can't stop talking about.

And somehow, your search for a place to start has brought you to this little course. I'm Matthias and I'll do my best to rise to the occasion and guide you through the basics of Rust.

Along the way we'll meet ownership and borrowing, pattern matching, Option and Result, iterators, structs and methods, and modules. Skip ahead if a chapter feels familiar, or come crawling back when the compiler breaks your spirit.

Now Then! Let's Write Some Rust Code

Here's your very first piece of Rust. Hit Run below to send it off to the compiler. If everything's wired up, you'll see the output underneath. Welcome to the world of Rust!

hello.rs

Output


        

Optional Chapters

Extra practice to explore at your own pace. These chapters do not count toward course progress.

Matthias Endler

Hi, I'm Matthias Endler, a Rust consultant and founder of corrode. I put this course together to help you get comfortable with Rust, one small program at a time. If you know variables, functions, and loops in another language, you're in the right place. You don't need any Rust experience.

Everything here is free, including the hints and solutions. Try the exercises right in your browser, with nothing to install. You can start without an account. Sign up whenever you'd like to save your progress by submitting solutions. Prefer your own editor? The README will help you get set up locally. Take your time, experiment, and don't be afraid to ask the compiler a few questions.