100-exercises-to-learn-rust
A self-paced course to learn Rust, one exercise at a time.
A structured course of 100 hands-on exercises for learning the Rust programming language from scratch, aimed at programmers who have some coding background but no prior Rust experience.
This repository is a structured course for learning the Rust programming language from scratch through 100 hands-on exercises. Rust is a systems programming language known for being fast and for catching many categories of software bugs before the program even runs, but it has a reputation for a steep learning curve. This course is designed to reduce that friction by breaking the learning process into small, incremental steps.
The course is aimed at people who have heard of Rust but have not yet written any of it. You do not need prior experience with Rust specifically, though the course assumes some general programming background. By the end, the goal is that you can start writing your own Rust programs.
To get started, you visit rust-exercises.com and follow the setup instructions there. You need Rust installed on your machine, which you get via a tool called rustup. An IDE with Rust autocompletion is optional but recommended; the README suggests RustRover or Visual Studio Code with a specific extension.
Solutions to all 100 exercises are available in a separate branch of the same repository, so you can check your work or get unstuck without leaving GitHub.
The course was written by Mainmatter, a software consulting firm that offers Rust training and consulting as a commercial service. The course content itself is released under a Creative Commons license that allows non-commercial use with attribution.
Where it fits
- Work through 100 progressive coding exercises to learn Rust step by step without a classroom.
- Check the solutions branch when stuck to see the correct approach and understand why it works.
- Use as a self-paced Rust curriculum where compiler errors guide you toward the right answer.