- 1 Welcome to Rust: Setup and First Steps The Why Before the How: Why Rust? ๐ฆSetting up the Toolchain: rustup, rustc, and cargoYour First Rust Program: Hello, World!Cargo Deep Dive: The Rust Package Manager
- 2 Rust Fundamentals: Building Blocks Variables and Mutability: Making Things ChangeData Types: Scalars and Compounds ๐ท๏ธFunctions: Reusable Blocks of CodeControl Flow: If, Else, and Loops ๐
- 3 The Secret Sauce: Ownership and Borrowing The Ownership Rules: Memory Safety Without a Garbage CollectorReferences and Borrowing: Lending Your Data ๐คThe Slice Type: Referencing Sequences safelyFixing Common Borrow Checker Errors
- 4 Structuring Data: Structs and Enums Structs: Defining Custom Data TypesMethods: Adding Behavior to StructsEnums: Defining a Type by its VariantsThe Match Control Flow Operator: Pattern Matching Magic โจ
- 5 Managing Growing Projects: Packages and Modules Packages and Crates: The Rust Module SystemDefining Modules to Control Scope and PrivacyPaths for Referring to an Item in the Module TreeBringing Paths into Scope with the use Keyword
- 6 Common Collections: Storing Multiple Values Vectors: Storing Lists of Values DynamicallyStrings: UTF-8 Text Manipulation ๐Hash Maps: Storing Keys and ValuesIterating Over Collections Safely
- 7 Error Handling: Dealing with Failure Unrecoverable Errors with panic!Recoverable Errors with ResultPropagating Errors: The ? OperatorThe Option Enum: Handling Absence of Value โ
- 8 Generics, Traits, and Lifetimes Generic Data Types: Removing Code DuplicationTraits: Defining Shared Behavior (Interfaces in Rust)Trait Bounds: Constraining GenericsLifetimes: Validating References (The Basics) โณ
- 9 Functional Language Features Closures: Anonymous Functions that Capture Their EnvironmentIterators: Processing a Series of ItemsPerformance of Iterators: Zero-Cost AbstractionsPractical Functional Patterns in Rust
- 10 Writing Automated Tests How to Write Tests in Rust ๐งชControlling How Tests are RunTest Organization: Unit Tests vs. Integration TestsDocumenting Code with rustdoc and Doc-tests
- 11 Smart Pointers: Beyond Standard References Box<T>: Allocating Data on the HeapRc<T>: The Reference Counted Smart PointerRefCell<T> and the Interior Mutability PatternMemory Leaks are Safe: Preventing Reference Cycles
- 12 Fearless Concurrency Spawning Threads to Run Code Simultaneously ๐งตMessage Passing: Transferring Data Between Threads (Channels)Shared-State Concurrency: Mutexes and ArcSync and Send Traits: Extensible Concurrency
- 13 Asynchronous Rust (Async/Await) Introduction to Asynchronous Programming: Why Async?The Future Trait and State MachinesUsing async and await SyntaxesIntroduction to Tokio: The Async Runtime Ecosystem ๐
- 14 Practical Rust Patterns and Ecosystem The Builder Pattern: Constructing Complex ObjectsWorking with JSON and Serialization (Serde) ๐ฆCommand Line Applications: Argument Parsing with ClapDeclarative Macros: Metaprogramming Basics (macro_rules!)