Rust Standard Library Tutorials
A structured series on the Rust standard library, targeting Rust 1.99 (compiler 1.99.0, edition 2024). The material is a Prologue plus 26 domains — thematic areas that group related types, traits, functions, and macros by use case rather than by where they live in the std module hierarchy.
Each tutorial is a ~15-minute lesson. The sidebar is the table of contents: open a domain, then a chapter. Every chapter ends with a Code Examples table of runnable binaries.
The examples live in this GitHub repository and verify their own behavior with assert! / assert_eq! — cargo run exiting successfully is the test.
# Requires Rust >= 1.99
git clone https://github.com/feamcor/rust-standard-library-tutorials.git
cd rust-standard-library-tutorials
cargo build --workspace --bins
cargo run -p domain-01-ownership-mechanics --bin 01_01_copy_semantics
Nightly-only samples (unstable APIs in domains 2, 5, 6, 7, and 25) are skipped on stable. Build them with:
cargo +nightly build -p domain-02-error-handling --features nightly --bins
HTML comments like <!-- slide:N --> mark slides for the in-repo presenter; you can ignore them while reading.
Start with P.1 · What the Prelude Imports and Why, or pick a domain in the sidebar.