Why learn Rust?
-
Memory safety without a garbage collector.
-
C-level performance, modern ergonomics.
-
Powering the next generation of tools (ripgrep, Astro's Rolldown, Bun internals).
-
A standout on resumes for systems and infra roles.
What you can build with Rust
Performance-critical backends Systems and embedded programming WebAssembly modules CLI tools and compilers
Rust tutorials
11 articlesHand-written tutorials, ordered as a recommended learning path.
- 01 What Is Rust? A practical introduction to Rust — where it came from, the three design goals that shape every decision, what it's the right tool for, and what it isn't. With your first Rust program.
- 02 Install & First Program A complete walkthrough of installing Rust with rustup on macOS, Linux, and Windows, then creating your first Cargo project and running it from the terminal.
- 03 Variables & Types A practical tour of Rust variables and scalar types — let, mut, shadowing, integers, floats, booleans, chars, tuples, arrays, type inference, and constants. With runnable examples.
- 04 Functions A practical guide to Rust functions — fn syntax, parameter types, return values, the difference between statements and expressions, the trailing-expression rule, and early returns.
- 05 Ownership Basics A friendly tour of Rust's ownership system — the three rules, move semantics, Copy vs Clone, borrowing with & and &mut, the borrow checker, and the beginner errors you'll see first.
- 06 Cargo Basics A practical tour of Cargo — creating projects, managing dependencies and features, running tests, building release binaries, and using workspaces.
- 07 Collections A hands-on tour of Rust's core collections — Vec, HashMap, and HashSet — with common operations, iteration patterns, and ownership gotchas.
- 08 Error Handling A practical guide to error handling in Rust covering Result, the ? operator, unwrap and expect, custom error types, and the thiserror and anyhow crates.
- 09 Lifetimes A friendly introduction to Rust lifetimes — what they are, when you must annotate them, common function signatures, elision rules, and struct lifetimes.
- 10 Structs & Enums Learn how to model domain data in Rust with structs and enums, use pattern matching exhaustively, and lean on Option and Result for safety.
- 11 Traits Understand how Rust traits define shared behavior, with default methods, trait bounds, derive, and a clear take on dyn Trait versus impl Trait.