explaingit

rust-lang/rustlings

Analysis updated 2026-06-20

62,716RustAudience · developerComplexity · 1/5Setup · easy

TLDR

Rustlings is a set of small hands-on coding exercises for learning Rust, designed to be worked through alongside the official Rust book to build real familiarity with the language's unique rules.

Mindmap

mindmap
  root((repo))
    What it does
      Coding exercises
      Rust practice
      Instant feedback
    Topics Covered
      Ownership rules
      Lifetimes
      Error handling
    Audience
      Rust beginners
      Self-taught devs
    Use Cases
      Learn borrow checker
      Practice syntax
      Companion to book
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Work through bite-sized exercises to learn Rust's ownership and borrowing rules by actually writing code.

USE CASE 2

Practice Rust syntax with instant compiler feedback rather than just reading about it.

USE CASE 3

Use as a hands-on companion to the official Rust book to reinforce concepts as you read.

What is it built with?

Rust

How does it compare?

rust-lang/rustlingsburntsushi/ripgrepfuellabs/sway
Stars62,71663,37961,710
LanguageRustRustRust
Setup difficultyeasyeasyhard
Complexity1/51/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

In plain English

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.

Copy-paste prompts

Prompt 1
I am on Rustlings exercise 12 about ownership and getting a borrow checker error. Here is my code, explain what is wrong and how to fix it: [paste code]
Prompt 2
I just finished all the Rustlings exercises. What should I build next to practice Rust, and what beginner-friendly open-source Rust projects could I contribute to?
Prompt 3
Explain Rust lifetime annotations to me the way Rustlings would, with a minimal example, step by step, no advanced theory.
Prompt 4
I installed Rustlings but the watch mode keeps crashing with this error, help me debug it: [paste error output]

Frequently asked questions

What is rustlings?

Rustlings is a set of small hands-on coding exercises for learning Rust, designed to be worked through alongside the official Rust book to build real familiarity with the language's unique rules.

What language is rustlings written in?

Mainly Rust. The stack also includes Rust.

How hard is rustlings to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is rustlings for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub rust-lang on gitmyhub

Verify against the repo before relying on details.