A glasses-wearing crab holds up a pencil

Rust Exercises

by Mainmatter

Level up your Rust, one exercise at a time

You can learn only so much by reading books or watching videos. To truly master a new programming language, such as Rust, you need to practice. A lot.

That's where our courses come in: they blend theory and practice, forcing you to write code to solve tailor-made exercises while you get familiar with the theory behind them.

Free Course

100 Exercises To Learn Rust

Start the course

Go through "100 Exercises to Learn Rust". It will teach you Rust's core concepts, one exercise at a time. You'll learn about Rust's syntax, its type system, its standard library, and its ecosystem.

The course doesn't assume any prior knowledge of Rust, but it assumes you know at least another programming language. It also doesn't assume any prior knowledge of systems programming or memory management. Those topics will be covered in the course.

In other words, you'll be starting from scratch! You'll build up your Rust knowledge in small, manageable steps. By the end of the course, you will have solved ~100 exercises, enough to feel comfortable working on small to medium-sized Rust projects.

Photo of the 100 Exercises To Learn Rust book lying on a grey table

Do you prefer a physical copy?

Buy the paperback

Beyond the basics: masterclasses

Learning the language is just the beginning. To become productive with Rust you need to learn how to leverage its ecosystem

That's where the masterclasses come in. They focus on a specific topic and dive deep into it, retaining the same exercise-driven approach of the beginner course.

At the moment, we offer these masterclasses:

Photo of crab with a colorful back sitting on a grey table

Masterclass

Rust-Python Interoperability

Speed up your Python programs using Rust native extensions, via the PyO3 crate.

Start the course
Photo of crab with a colorful back sitting on a grey table

Masterclass

Advanced testing

Learn how to write tests for your Rust code. By the end of this course, you'll have a strategy to test most of the scenarios that are relevant for a complex Rust application.

Start the course
Photo of crab with a colorful back sitting on a grey table

Masterclass

Telemetry for Rust applications

Your Rust application has finally been deployed to production! Nice! But is it working? This workshop will introduce you to a comprehensive toolkit to detect, troubleshoot and resolve issues in your Rust APIs.

Start the course

Mainmatter: Team Up With Us for Rust!

All the courses on this website have been written by Mainmatter. We are a software consulting company that specializes in Rust. We offer consulting services, training, and mentorship to companies that want to adopt Rust or scale their usage.

Get in touch if you are on a journey to adopt Rust at your company and need support.

Team Up With Us for Rust!
Photo of a group of EuroRust attendees standing in front of the big inflatable Ferris

Meet other Rust enthusiasts at EuroRust

Mainmatter organizes EuroRust, a 2 day conference for the European Rust community. We cover all things Rust: from Rust patterns and idioms to system programming and CLI tooling, servers WASM and embedded systems. Join us in Paris in October 2025!