Rust Tutorial

Rust is a statically typed, memory-safe systems language that guarantees thread safety without a garbage collector. This roadmap builds from first principles — syntax, then ownership and borrowing, abstractions, and on to concurrency, async, and the ecosystem — one small, gradual step at a time.

Scope: Study the lessons in order, compile each example locally with rustc (or cargo run), and treat the index as a fast-forward, not a reference manual.

Rust Study Progress

0% Complete
# RUST Topic Description
PHASE 1: FOUNDATIONS
01OverviewRust's purpose, safety model, and ecosystem.
02Setup & ToolchainInstall rustup, Cargo, and your first program.
03Syntax & ExpressionsStatements, expressions, comments, keywords.
04Scalar Types & VariablesIntegers, floats, bool, char, inference, casting.
05Composite TypesTuples, arrays, structs, and enums.
06Strings & Text&str vs String, formatting, UTF-8.
PHASE 2: OWNERSHIP & FUNCTIONS
07Ownership & BorrowingMoves, references, and the borrow checker.
08LifetimesReference validity and elision.
09Functions & Closuresfn, return values, and closures.
10CollectionsVec, HashMap, HashSet, and slices.
11Control Flowif, match, and loops.
PHASE 3: ABSTRACTION & ERRORS
12Traits & GenericsTraits, generics, and trait objects.
13Modules & Cratesmod, use, pub, and code organization.
14Error HandlingOption, Result, and the ? operator.
15Iterators & ClosuresLazy pipelines and combinators.
16Smart PointersBox, Rc/Arc, and RefCell.
PHASE 4: PROFESSIONAL
17Testing & Documentation#[test], integration tests, doc-tests.
18File I/OReading and writing files and JSON.
19Packages & crates.ioCargo packages and dependencies.
20Frameworks & EcosystemWeb, async, and embedded crates.
21ConcurrencyThreads, channels, and sync primitives.
22Async & Futuresasync/await and the tokio runtime.
PHASE 5: PRACTICE & REFERENCE
23Lab ExamplesSingle-file practice demos.
24Study ProjectsComposed mini-projects.
25References & ToolsPlaygrounds, docs, courses, samples.
Credits: Lesson content drafted with DeepSeek via Fireworks AI. References: free tutorials and documentation below.

Free References

For the full categorized table — online Rust playgrounds, official documentation, courses, and sample codebases — see the References & Tools page.