Courses

Learn Rust

14 lessons ยท 0 completed

Start
0%
  1. 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. 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. 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. 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. 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. 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. 7 Error Handling: Dealing with Failure Unrecoverable Errors with panic!Recoverable Errors with ResultPropagating Errors: The ? OperatorThe Option Enum: Handling Absence of Value โ“
  8. 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. 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. 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. 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. 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. 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. 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!)