Practice Rust with challenging exercises that fill the gap between learning and ...
P

Practice Rust with challenging exercises that fill the gap between learning and ...

Practice Rust with challenging exercises that fill the gap between learning and ...

14,625 stars
N/A forks
N/A contributors

README

Project documentation from GitHub

Rust by Practice: The Missing Middle Ground Between Tutorials and Real Projects

If you've spent any time learning Rust, you know the pattern. You work through the book, follow the examples, and feel pretty good about Option, Result, borrowing, and lifetimes. Then you open a real project and realize you're not ready. The gap between "I've read the concepts" and "I can actually solve problems" is real.

Rust by Practice is a direct shot at bridging that gap. It's a collection of exercises that push you past the basics without throwing you into a full production codebase.

What It Does

Rust by Practice is an open source exercise book. It's structured like a course, but every chapter is packed with hands on problems. You don't just read about pattern matching, generics, or async. You write code that breaks, fix it, and learn from the experience.

The exercises range from filling in blanks to writing small programs. They cover topics like:

  • Basic syntax and ownership
  • Pattern matching and enums
  • Structs, traits, and generics
  • Error handling and collections
  • Lifetimes, closures, and smart pointers
  • Async programming, macros, and more

Everything is organized into clear chapters with increasing difficulty. You start with "easy" and slowly work your way toward "hard" without abrupt jumps.

Why It's Cool

  • It's not a tutorial. There's no hand holding. You get a problem, sometimes with type hints or skeletons, and you need to make it work. That's how you actually learn.

  • Real world relevance. The exercises mimic patterns you see in real Rust projects. You'll practice ownership transfers between functions, implement traits, handle errors properly, and work with lifetimes. It's not academic.

  • Built in online editor. You don't need to clone the repo or set up a Rust environment to try it. There's a web version where you can write code directly. That lowers the friction to almost zero.

  • It's free and community driven. The project is MIT licensed, and contributions are welcome. People add new exercises and fix issues regularly. It's not a stale project.

How to Try It

You have two options.

Option 1: Use the web version
Go to practice.rs and start immediately. No setup, no installs.

Did you like this issue?

Join our weekly newsletter

Love discovering amazing projects?

Help us continue bringing you the best open-source discoveries every week.

Back to Projects
Last updated: Jun 19, 2026