BBuzzard
Rust, edition 2024

A hands-on tour of Rust,
one small runnable lesson at a time.

Sixty lessons, one topic each. Every lesson opens with an explanation, then works through the topic in small examples with the output they print. Code the compiler rejects is shown commented out, with the real error it produces.

Lessons
60
Examples
392
Compiler errors explained
46
Lines of Rust
11,773

Basics01–09

Ownership and borrowing10–13

Structs, enums, and errors14–19

Standard traits20–24

Generics and traits25–29

Iterators, closures, and lifetimes30–35

Collections36–39

Smart pointers and concurrency40–46

The standard library47–52

Organizing code53–56

Advanced57–60