Book to get started with the Rust programming language.
Available online: https://doc.rust-lang.org/book/
Available offline: rustup docs --book
Rust is a multi-paradigm, general-purpose programming language. Rust emphasizes performance, type safety, and concurrency. Rust enforces memory safety—that is, that all references point to valid memory—without requiring the use of a garbage collector or reference counting present in other memory-safe languages.
Rust keeps track of who can read and write to memory. It knows when the program is using memory and immediately frees the memory once it is no longer needed.
- Website
- Local Documentation:
rustup doc
- Rust version used: v1.75.0 (
rustc --version
)
- Getting Started
- Programming a Guessing Game
- Common Programming Concepts
- Understanding Ownership
- Using Structs to Structure Related Data
- Enums and Pattern Matching
- Managing Growing Projects with Packages, Crates, and Modules
- Common Collections
- Error Handling
- Generic Types, Traits, and Lifetimes
- Testing
- An I/O Project: Building a Command Line Program:
minigrep
- Functional Language Features: Iterators and Closures
- More About Cargo and Crates.io