An anime-guided Rust tutor for people who want the compiler to yell at them until they're right.
She doesn't comfort you. She corrects you. That's the respect.
Built by Omega Mu Gamma Studio ยท the team behind SeeDS, KMapX, EG Suite, GateLab, Java-chan, and PlusPlus-chan.
Rust-chan is a browser-based Rust learning app where an intense, principled mascot character teaches you systems programming the way the borrow checker would, if the borrow checker had a face. She does not soften bad news. If your code doesn't compile, she tells you exactly why, and exactly what rule you broke โ because in her view, that's the only kind of teaching that actually works.
The curriculum is built around CLI tools โ every concept earns its place by being useful in something you'd actually ship from a terminal. Ownership isn't abstract; it's why your file-processing tool doesn't leak memory. Lifetimes aren't scary; they're why your string parser doesn't hand back garbage. By the end of all 75 lessons, you've built and packaged a real async CLI tool, ready for crates.io.
No hand-holding. No participation trophies. Just Rust, taught with discipline.
๐ Try it live โ rust-chan.vercel.app
Every single lesson โ all 75 of them โ follows this exact structure:
| Phase | Name | What Happens |
|---|---|---|
| 1 | See It Work | Rust-chan shows working code, the output, and explains what's happening line by line |
| 2 | See It Break | Same code, deliberately broken โ she explains the compiler error, what caused it, and why the compiler is right |
| 3 | You Try | Student writes code or fills in blanks; pattern-based validation gives immediate feedback |
Validation is regex/pattern-based โ no code execution in the browser. For full programs, students compile and run in their own environment.
All five units are complete, published, and available from day one.
| Unit | Topic | Lessons |
|---|---|---|
| 1 | Rust Basics | 15 |
| 2 | Ownership and Borrowing | 15 |
| 3 | Types, Traits, and Patterns | 15 |
| 4 | Collections, Closures, and Concurrency | 15 |
| 5 | Async Rust and Final Project | 15 |
๐ View all 75 lessons
Unit 1 โ Rust Basics 1.1 Why Rust Exists โ Safety Without GC ยท 1.2 Setting Up Rust and Cargo ยท 1.3 Your First Rust Program ยท 1.4 How the Compiler Talks to You ยท 1.5 Variables and Mutability ยท 1.6 Scalar Types ยท 1.7 Compound Types โ Tuples and Arrays ยท 1.8 Functions ยท 1.9 Control Flow โ if, loop, while, for ยท 1.10 String vs &str ยท 1.11 Comments and Documentation ยท 1.12 Cargo โ Build, Run, Test ยท 1.13 Crates and the Ecosystem ยท 1.14 Common Beginner Compiler Errors ยท 1.15 Mini Challenge โ CLI Calculator
Unit 2 โ Ownership and Borrowing 2.1 What is Ownership? ยท 2.2 Move Semantics ยท 2.3 Clone and Copy ยท 2.4 References and Borrowing ยท 2.5 The Borrow Checker ยท 2.6 Mutable References ยท 2.7 Dangling References ยท 2.8 Slices ยท 2.9 String Slices ยท 2.10 Ownership in Functions ยท 2.11 Ownership in Structs ยท 2.12 The Stack vs The Heap ยท 2.13 Lifetime Annotations ยท 2.14 Lifetime Elision ยท 2.15 Mini Challenge โ String Processor
Unit 3 โ Types, Traits, and Patterns 3.1 Defining Structs ยท 3.2 Methods and impl Blocks ยท 3.3 Tuple Structs ยท 3.4 Enums ยท 3.5 The Option Type ยท 3.6 The Result Type ยท 3.7 match Expressions ยท 3.8 if let and while let ยท 3.9 Defining Traits ยท 3.10 Implementing Traits ยท 3.11 Default Implementations ยท 3.12 Trait Bounds ยท 3.13 Generics ยท 3.14 Common Standard Traits ยท 3.15 Mini Challenge โ Shape Calculator
Unit 4 โ Collections, Closures, and Concurrency 4.1 Vectors ยท 4.2 HashMaps ยท 4.3 Iterators ยท 4.4 Iterator Adaptors โ map, filter, collect ยท 4.5 Chaining Iterators ยท 4.6 Closures ยท 4.7 Capturing the Environment ยท 4.8 Fn, FnMut, FnOnce ยท 4.9 Threads in Rust ยท 4.10 Message Passing with Channels ยท 4.11 Shared State with Mutex ยท 4.12 Arc and Send/Sync ยท 4.13 The ? Operator ยท 4.14 Custom Error Types ยท 4.15 Mini Challenge โ Multi-Threaded Word Counter
Unit 5 โ Async Rust and Final Project 5.1 What is Async? ยท 5.2 async/await Syntax ยท 5.3 Tokio Runtime ยท 5.4 Async File I/O ยท 5.5 Async Network I/O ยท 5.6 Building an Async HTTP Client ยท 5.7 Parsing CLI Arguments ยท 5.8 Reading and Writing Files in a Real App ยท 5.9 Error Handling in Production Code ยท 5.10 Writing Tests in Rust ยท 5.11 Benchmarks ยท 5.12 Publishing to Crates.io ยท 5.13 Project โ Scope Your CLI Tool ยท 5.14 Project โ Implement and Test ยท 5.15 Project โ Package and Ship
- Three-phase lesson structure โ See It Work โ See It Break โ You Try, on every lesson, no exceptions
- CLI-tool context throughout โ every code example builds toward a real, shippable command-line tool
- Contextual hint escalation โ hint appears at 2 wrong attempts, solution unlocks at 5 (she makes you earn it)
- Pattern-based validation โ instant feedback without a server or code execution engine
- Full lesson navigation โ collapsible sidebar with per-lesson completion tracking
- XP system โ earn XP on lesson completion; bonus XP for first-attempt success and hint-free runs
- 10 levels โ clear thresholds (100 XP per level) with a persistent progress bar
- Level-gated cosmetics โ new rewards unlock as you level up, alternating themes and outfits
- localStorage persistence โ no account needed, progress is saved in the browser
App Themes (equippable backgrounds):
| Level | Item | Style |
|---|---|---|
| 1 | Forge & Rust ๐ฅ | Burnt orange and iron โ heat-treated metal, the default |
| 3 | Compiler's Bunker โ๏ธ | Concrete and copper pipe, the room where the borrow checker lives |
| 5 | Blueprint Black ๐ | Technical drafting paper, white ink, zero tolerance for ambiguity |
| 7 | Molten Core ๐ | Deep red-orange, the heat of a build that finally passed cargo test |
| 9 | Midnight Refinery ๐ญ | Cold blue-black industrial skyline, the night shift |
Character Outfits (equippable; all with full 6-expression sprite art):
| Level | Outfit | Vibe |
|---|---|---|
| 1 | Blacksmith's Apron ๐จ | Leather and soot. Her signature look, always equipped |
| 2 | Foundry Coveralls ๐ฆพ | Systems Mode โ ON. Steel-toed and unimpressed |
| 4 | Field Engineer's Jacket ๐งฐ | Tool belt loaded. The borrow checker travels with her |
| 5 | Off-Duty Flannel ๐ชต | The build finally compiled. She allows herself a coffee |
| 6 | Iron Knight's Plate โ๏ธ | Memory safety isn't a suggestion, it's armor |
| 7 | Crimson Architect ๐๏ธ | Concurrency Mode โ ON. She designed this thread pool herself |
| 7 | Idol โ Zero-Cost Abstraction โจ | She already performs a Celebration. Might as well dress for it |
| 8 | Async Operative ๐ถ๏ธ | Cold logic. Non-blocking. Every await is intentional |
| 8 | Master Smith ๐ฅ๐ | She forged the language. Or close enough |
| 10 | Crate Maintainer's Crown ๐ | You shipped to crates.io. Wear the crown |
| 10 | Off the Clock ๐๏ธ | cargo test passed. So has she earned a beach day. Don't push it |
Downloadable Wallpapers (phone/desktop art, save to your device):
| Level | Wallpaper | Vibe |
|---|---|---|
| 3 | Compile Time, No Warnings ๐ | The longest wait ends with zero errors and zero excuses |
| 3 | Iron Foundry Sunrise ๐ | Sparks rising off the forge, dawn breaking through the smoke |
| 5 | The Borrow Checker's Throne ๐ฐ | She rules here. Every reference answers to her |
| 5 | Mountain Summit โ No Segfaults ๐๏ธ | She made it to the top without a single unsafe block |
| 5 | Steel Library ๐ | Cold light, technical manuals, the Rust Book dog-eared to chapter 10 |
| 7 | Rainy Foundry Window ๐ง๏ธ | Even in the rain, the forge stays lit |
| 7 | Rooftop Watchpoint ๐ | City skyline, the sign reads // no unsafe here |
| 7 | Neon Refinery ๐น๏ธ | Hot orange, cold blue, one cabinet running an async benchmark |
| 9 | Shrine Steps โ Memory Safe ๐ฎ | Stone steps, dawn mist, no dangling references in sight |
| 9 | Forge at Dusk ๐ | Even the longest debug sessions end with the fire dying down |
Rust-chan has 6 distinct expressions that fire contextually throughout lessons:
| State | Trigger |
|---|---|
idle |
Phase 1 โ explaining working code |
thinking |
Hint mode; waiting for input |
surprised |
Correct answer |
happy |
Phase transitions and encouragement |
sad |
Wrong answer (first few times) |
idle-sleep |
Idle between interactions |
Each equipped outfit has its own full set of 6 expression sprites โ swapping outfits changes Rust-chan's entire look, not just a filter.
Domain Expansion โ a fullscreen celebration effect fires on milestone level-ups, complete with confetti (and, unusually for her, a smile).
| Layer | Choice | Why |
|---|---|---|
| Frontend | React 19 + Vite 8 | Fast HMR, ES modules, modern JSX transform |
| Styling | Plain CSS + Framer Motion 12 | No CSS framework overhead; animations via Motion |
| State | Zustand 5 | Minimal boilerplate, works with persist middleware out of the box |
| Data | JSON files + localStorage | Zero backend for Phase 1; data adapter ready for Phase 2 |
| Routing | React Router v7 | File-level page components |
| Hosting | Vercel | Zero-config deployment |
- Node.js 18+
- npm or yarn
# Clone the repo
git clone https://github.com/Omega-Mu-Gamma-Studio/Rust-Chan.git
cd Rust-Chan
# Install dependencies
npm install
# Start the dev server
npm run devThe app runs at http://localhost:5173 by default.
# Build for production
npm run build
# Preview the production build locally
npm run previewThis repo is Vercel-ready with no configuration needed. Connect the repo in the Vercel dashboard and it'll detect the Vite setup automatically. No environment variables required for Phase 1.
Rust-Chan/
โโโ public/
โ โโโ sprites/ # Character expressions (Blacksmith's Apron โ base outfit)
โ โ โโโ teaching.png
โ โ โโโ excited.png
โ โ โโโ frustrated.png
โ โ โโโ thinking.png
โ โ โโโ oops.png
โ โ โโโ idle.png
โ โ โโโ uniforms/ # Outfit-specific sprite sets (6 expressions each)
โ โ โโโ foundry-coveralls/
โ โ โโโ field-jacket/
โ โ โโโ flannel/
โ โ โโโ iron-plate/
โ โ โโโ crimson-architect/
โ โ โโโ idol/
โ โ โโโ async-operative/
โ โ โโโ master-smith/
โ โ โโโ maintainer-crown/
โ โ โโโ off-the-clock/
โ โโโ wallpapers/ # Downloadable device wallpapers (10 total)
โ โโโ rustchan-compile-clean.png
โ โโโ rustchan-foundry-sunrise.png
โ โโโ rustchan-borrow-throne.png
โ โโโ rustchan-no-segfault-summit.png
โ โโโ rustchan-steel-library.png
โ โโโ rustchan-rainy-foundry.png
โ โโโ rustchan-rooftop-watchpoint.png
โ โโโ rustchan-neon-refinery.png
โ โโโ rustchan-shrine-memsafe.png
โ โโโ rustchan-forge-dusk.png
โ
โโโ src/
โ โโโ components/
โ โ โโโ character/RustChan.jsx # Sprite renderer; reads spriteOverrides from equipped outfit
โ โ โโโ layout/AppLayout.jsx # Root layout; applies theme + background
โ โ โโโ lesson/ # LessonCanvas, CodeBlock, PhaseIndicator
โ โ โโโ ui/ # Sidebar, BottomBar, XPDisplay, ProgressBar
โ โ
โ โโโ data/
โ โ โโโ lessons/ # 75 JSON lesson files (unit1โ5, lessons 1โ15)
โ โ โโโ units/ # 5 unit JSON files (id, title, lesson list)
โ โ โโโ shopItems.js # All cosmetic definitions (outfits, themes, downloadables)
โ โ
โ โโโ hooks/
โ โ โโโ useLesson.js # Lesson phase state machine
โ โ โโโ useProgress.js # Progress store bindings
โ โ โโโ useSound.js # Sound effect hooks
โ โ
โ โโโ pages/
โ โ โโโ Home.jsx # Dashboard / unit selection
โ โ โโโ UnitPage.jsx # Lesson list for a unit
โ โ โโโ LessonPage.jsx # The actual lesson experience
โ โ โโโ Shop.jsx # Cosmetics shop
โ โ
โ โโโ services/
โ โ โโโ lessonService.js # JSON loader + lesson data access
โ โ โโโ storageService.js # localStorage adapter (Phase 2: swap for API)
โ โ
โ โโโ store/
โ โ โโโ progressStore.js # Zustand store: XP, level, outfits, progress
โ โ โโโ lessonStore.js # Zustand store: active lesson state
โ โ
โ โโโ utils/
โ โโโ xpCalculator.js # XP thresholds, level math, earned XP calculation
โ โโโ patternMatcher.js # Regex-based answer validation engine
โ โโโ rustHighlighter.js # Rust syntax highlighting for code blocks
Lesson JSON files live at src/data/lessons/unit{N}/{N}.{M}.json. Each file follows this structure:
{
"id": "1.1",
"title": "Why Rust Exists",
"xp": 10,
"phases": [
{
"phase": 1,
"title": "See It Work",
"dialogue": "Rust-chan's explanation text here",
"code": "fn main() {\n println!(\"Hello, Player!\");\n}",
"output": "Hello, Player!"
},
{
"phase": 2,
"title": "See It Break",
"dialogue": "Here's what happens when...",
"code": "fn main() {\n println!(\"Hello, Player!\")\n}",
"error": "error: expected `;`, found `}`"
},
{
"phase": 3,
"title": "You Try",
"dialogue": "Your turn. Don't make me explain `cargo run` again.",
"prompt": "What macro prints to standard output in Rust, with a newline?",
"answer": "println!()",
"hint": "It ends with a bang.",
"solution": "println!()"
}
]
}- Create a folder under
public/sprites/uniforms/<outfit-name>/ - Drop in 6 PNGs named:
teaching.png,idle.png,oops.png,thinking.png,frustrated.png,excited.png - Add an entry to
src/data/shopItems.jswithspriteOverridesmapping each expression state to the correct file path - That's it โ
RustChan.jsxandShop.jsxboth readspriteOverridesautomatically
In the Shop page, triple-click the Shop title to toggle the dev cheat:
- First triple-click โ instantly sets XP to 9999 and level to 10 (unlocks everything)
- Second triple-click โ resets XP and level back to 0 / 1
- All 75 lessons authored and published
- Full cosmetics system (11 outfits, 5 themes, 10 downloadable wallpapers)
- XP/leveling, shop, expressions, domain expansion
- localStorage persistence, no account required
- PostgreSQL + Express API backend
- User accounts and cross-device sync
- Progress stored server-side (the store already has a
_resetForMigrationhook and storage adapter pattern ready for this) - Instructor view: class-wide completion dashboards
- No frontend rewrite required โ only the storage layer changes
Character Art: Rust-chan's sprites were generated using AI tools and hand-curated for expression consistency by the Omega Mu Gamma Studio team. All character designs are proprietary to Omega Mu Gamma Studio.
Note: As a free, open-source educational tool, we prioritized shipping a complete learning experience over commissioning custom art. If you're an artist interested in contributing official character designs, reach out โ we'd love to collaborate.
Rust-chan is part of a student-built suite of open-source engineering and CS education tools from Omega Mu Gamma Studio.
| Tool | What it does |
|---|---|
| SeeDS | 3D data structure visualizer with drag-and-drop Playground mode |
| KMapX | Karnaugh map simplifier with don't-care support |
| EG Suite | 3D Engineering Graphics simulator for ME22201 |
| GateLab | 2D digital logic schematic playground (CS22303) |
| Java-chan | Anime-guided Java tutor for CS22301 |
| PlusPlus-chan | Anime-guided C++ tutor for aspiring game developers |
| Rust-chan | Anime-guided Rust tutor for systems programming and CLI tools โ this repo |
The source code for this project is released under the MIT License.
The character art, sprites, and visual assets for Rust-chan are proprietary. They are not covered by the MIT License and may not be reproduced, redistributed, or used outside this project without explicit permission from Omega Mu Gamma Studio.
ยฉ 2026 Omega Mu Gamma Studio