Rust Docs - Complete Documentation by ntxm.org

Rust Docs

Learn Rust step by step: ownership and borrowing, structs and enums, error handling, traits and generics, smart pointers and concurrency.

Rust gives you the speed of C and C++ without the memory bugs. There is no garbage collector. Instead, the compiler checks ownership and borrowing before your program runs, so whole classes of crashes and data races never make it to production.

Version:

These docs use the Rust 2021 edition and current stable Rust. Install it with rustup and every example should compile as shown.

Start with Why Rust for the design story, then install the toolchain and take a tour of the language. From there the docs walk through ownership, error handling, traits and generics and concurrency.