mirror of
https://github.com/theoludwig/rust_book.git
synced 2024-12-08 00:45:41 +01:00
Book to get started with the Rust programming language.
https://doc.rust-lang.org/book/
chapter_1_getting_started | ||
chapter_2_guessing_game | ||
chapter_3_common_concepts | ||
chapter_4_ownership | ||
chapter_5_structs | ||
chapter_6_enums | ||
chapter_7_packages_crates_modules | ||
chapter_8_common_collections | ||
chapter_9_error_handling | ||
chapter_10_generics_traits_lifetimes | ||
chapter_11_testing | ||
chapter_12_minigrep | ||
chapter_13_iterators_and_closures | ||
chapter_14_cargo_and_crates | ||
.gitignore | ||
README.md |
The Rust Programming Language
Book to get started with the Rust programming language.
Available online: https://doc.rust-lang.org/book/
Available offline: rustup docs --book
About
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
)
Summary
- 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