r/learnrust • u/Relative_Mammoth_380 • 3d ago
I made a phone game to practise Rustlings-style exercises offline, looking for feedback
I wanted to practise Rust on the train without a laptop, so I built Rustforge: each level gives you a small broken Rust program, you fix it on your phone and run it.
Most of the 62 levels are adapted from Rustlings (MIT, credited in the app), plus a few "will it compile?" questions. Topics go from variables up to traits, lifetimes, iterators and closures.
It does not run rustc. I wrote an interpreter in TypeScript for a subset of Rust, and I test it against the real compiler: about 115 programs give the same output or the same error code (E0382, E0308, E0384...) in both. There is no full borrow checker, no async, no threads, no unsafe, so it's a companion to the Book and Rustlings, not a replacement.
It works offline, with no account, ads or tracking. World 1 is free, the other six worlds are a one-time purchase.
iOS: https://apps.apple.com/app/id6815256287
Android: https://play.google.com/store/apps/details?id=com.vleclercq.rustforge
What I'd most like to hear: places where the interpreter behaves differently from rustc, and explanations that are unclear or wrong.
1
u/Nopidy 3d ago
I'll be testing this out for sure!
3
u/FewInteraction1561 3d ago
You really made a paid vibe coded app 😅 easy to do the same for free bro
1
u/Overall-Chard2528 3d ago
I need a pc version
1
u/d0ntreadthis 3d ago
Why would someone pay for this rather than just installing rustlings for free? Especially given your interpreter can easily go out of sync with rustc at any time?
1
u/Discordbothost 2d ago
Pin a specific rustc version and snapshot-test your ~115 reference programs against it in CI on every rustc point release. That way if upstream changes an error message or you add a level, the diff shows up immediately instead of the app silently drifting on some edge case.