rustlings
:crab: Small exercises to get you used to reading and writing Rust code!
A collection of small, hands-on coding exercises to learn Rust by writing real code. Work through bite-sized problems to build familiarity with Rust's memory safety concepts.
Rustlings is a collection of small coding exercises designed to help beginners learn Rust by actually writing and reading Rust code. Rust is a programming language known for strict memory safety rules that can feel unfamiliar at first, and Rustlings gives you a hands-on way to build familiarity with those concepts one small exercise at a time.
The README recommends using it alongside the official Rust book, meaning it works best as a companion to reading rather than a standalone course. Each exercise is small enough to complete quickly, making it approachable for people just starting out. The topics list it as beginner-friendly, and it is maintained by the official Rust language organization.
Where it fits
- Work through structured exercises to learn Rust fundamentals without building a full project from scratch.
- Practice Rust syntax and concepts like ownership, borrowing, and pattern matching with immediate feedback.
- Supplement reading the official Rust book with hands-on coding to reinforce what you've learned.