Welcome to RustLearn
RustLearn is a hands-on, analogy-driven path through the language that most people bounce off once before it clicks. It is not a syntax tour and not a reference — it is twenty modules that take you from installing the toolchain to writing concurrent, async, macro-driven Rust, one idea at a time, with the compiler as your tutor rather than your opponent.
Why Rust?
Every other systems language asks you to choose. C and C++ give you control and hand you the entire class of memory bugs that dominate security advisories. Java, Go, Python and JavaScript take those bugs away and hand you a garbage collector, a runtime, and pauses you cannot schedule. Rust's contribution is refusing the trade: control and safety, proven before the program ever runs.
- Memory safety without a garbage collector: no use-after-free, no double free, no null dereference — and no runtime pauses, because the proof happens at compile time.
- Fearless concurrency: the same rules that make single-threaded code safe make data races a compile error. The bug that does not reproduce becomes the bug that does not build.
- Errors you cannot ignore: there is no
nulland there are no exceptions. Absence and failure are ordinary values the type system will not let you forget. - Zero-cost abstractions: iterator chains, generics and traits compile down to what you would have written by hand. You do not pay for the elegance.
- Refactoring without fear: change a type and the compiler hands you the list of every place that now needs a decision. Large Rust codebases stay malleable for the same reason they are safe.
The difference is not that Rust programmers are more careful. It is where the checking happens:
Caught by tests and review
Discipline, code review and a good test suite — everything they miss ships.
Caught by the compiler
Ownership, borrowing and exhaustive types — the build simply fails instead.
Testing and review catch the bugs you thought to look for. The compiler catches the entire category, every time, including in code paths your tests never reached.
Analogy
Working in a language that trusts you is cooking in a kitchen with no guard on the mandoline: perfectly fine with full attention, and the accident happens on the day you are tired. Rust bolts the guard on. It is genuinely more awkward for the first fortnight — and then you notice you have stopped flinching.
What this course costs you
Honesty first: Rust has a real learning curve, and it is front-loaded. Modules 04, 05 and 13 — ownership, borrowing, lifetimes — are the whole difficulty of the language in one stretch. You will fight the borrow checker for roughly two weeks.
The fight ends at a specific moment: when you stop asking "how do I make the compiler shut up" and start asking "what is the compiler telling me about who owns this data." This course is built to bring that moment forward.
Your learning path at a glance
Four parts, twenty modules, each assuming the one before it:
- Part I — Foundations (01–05): toolchain and Cargo, bindings and types, expression-oriented control flow, then ownership and borrowing. This is where the language actually starts.
- Part II — Building Blocks (06–10): structs, enums and pattern matching,
Option/Resulterror handling, collections and strings, and how to lay out a real project. - Part III — Abstraction (11–15): generics, traits, lifetimes, closures and iterators, and smart pointers for when a single owner is not enough.
- Part IV — Mastery (16–20): testing and tooling, threads, async, macros and
unsafe, then idioms, profiling and four capstone projects.
Here is the whole course as a map. Click any part to expand or collapse it; click a module to jump straight in.
How to get the most out of this platform
- Learn in order. The path is deliberate, and nothing forward-references. Do not skip ahead past module 04 — everything after it assumes ownership.
- Type every example by hand. Do not copy-paste. Muscle memory for
&,mut,::and?is real, and it pays off around module 06. - Read the whole error. Rust's compiler errors are the best in the industry and they are written to be read top to bottom —
help:andnote:lines included. When you want the full essay on an error, runrustc --explain E0382. - Do the drills before opening a solution. Every module ends with graded exercises — 🟢 warm-up, 🟡 core, 🔴 challenge — and every solution stays folded away until you commit to an attempt.
- Lean on the analogies. They exist because ownership, borrowing and lifetimes are unfamiliar ideas, not unfamiliar syntax. Get the idea, and the syntax is an afternoon.
- Let progress carry you. Checkboxes, per-part completion and module checkmarks are saved in your browser, so you can always pick up where you left off.
Prerequisites
You need to be comfortable programming in some language — TypeScript, Python, Java, Go, C# all count. You do not need C or C++ experience, and you do not need to know what a stack or a heap is: module 02 covers the minimum and module 04 covers the rest. If you come from TypeScript, watch for the TS ↔ Rust notes throughout.
No account, no paywall
Open a module and start — your progress lives in your browser. When you want the bird's-eye view of where this leads, the learning roadmap lays out the whole journey, including what to build after module 20.
Ready? Start with Module 01 — Setup, Cargo & Hello World.
