
Rustlings
Small Rust exercises that teach you to read and write Rust code step by step.
- Stars
- 64.5k
- Forks
- 11.3k
- Licence
- MIT
- Language
- Rust
- Last update
- 10 days ago
- Type
- Learning resource
What it is
Rustlings is a set of small practice exercises for the Rust programming language. You work through them one at a time, fixing code so it compiles and runs, which helps you get comfortable reading and writing Rust. The project's README recommends using it alongside the official Rust book.
- Work through exercises that cover Rust syntax and concepts in small steps
- Practice alongside chapters of the official Rust book
- Check your progress as you complete each exercise
Great for
- People learning Rust for the first time
- Readers of the official Rust book who want hands-on practice
- Developers who prefer learning by fixing small pieces of code
Not ideal for
- Experienced Rust developers looking for production tools, since the README describes it only as a learning aid
- People who want a reference guide rather than guided exercises
How to get it
- 1
See the README
Clone the repository
git clone https://github.com/rust-lang/rustlings - 2
Run it
- Visit https://rustlings.rust-lang.org for setup instructions
- Follow the setup steps on the website to install rustlings
- Start working through the first exercise and fix the code until it compiles
- 3
Get the most out of it
- Read the official Rust book in parallel, as the README recommends
- Use the website at rustlings.rust-lang.org for demos and setup details
Downloads
Strengths
- Free and open source under the MIT license
- Exercises are small and focused, so each one is quick to finish
- Officially hosted under the rust-lang organization with a website for setup and demos
Trade-offs
- The README is truncated here, so the exact exercise list and setup details are not confirmed in this entry
- Latest release is listed without binaries, so installation requires a Rust toolchain or following the website instructions
- Works best alongside other learning material rather than on its own
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| rustlings (this) | 64.5k | Learning resource | beginner | 10 days ago | People learning Rust for the first time |
| first-contributions | 56.7k | Learning resource | beginner | 4 days ago | People who have never submitted a pull request to an open source project |
| public-api-lists | 16.3k | Learning resource | beginner | 2 months ago | Developers looking for a free data source for a side project |
| numpy-100 | 14.7k | Learning resource | beginner | 14 days ago | Beginners who want hands-on practice with NumPy |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.