Tutorials
Step-by-step walkthroughs covering the essentials of writing real Rust programs against the standard library.
Install the Rust toolchain, write your first program, and learn the build cycle with cargo.
Rust's ownership system replaces a garbage collector with compile-time guarantees. Learn the three rules that make it work.
Use enums and `match` expressions to model data with exhaustive, compile-checked branches.
Group related data into structs and attach behaviour through impl blocks.
Stop reaching for exceptions. Rust uses `Result`, the `?` operator, and custom error types instead.
Combine iterators and closures to write expressive, allocation-free data pipelines.
Spawn OS threads safely with `std::thread`, share data with channels, and protect mutable state with Mutex.
Cargo is more than a build tool. Use it to publish, discover, and depend on crates from the wider Rust ecosystem.
When safe Rust isn't enough, unsafe blocks let you cross the safety boundary — carefully.
Write tests next to your code, document with examples that double as integration tests, and run everything with cargo test.