Learn Rust in a Month of Lunches

  • 9h 13m
  • David MacLeod
  • Manning Publications
  • 2024

One month. One hour a day. That’s all it takes to start writing Rust code

Learn Rust in a Month of Lunches teaches you to write super fast and super safe Rust code through lessons you can fit in your lunch break. Crystal-clear explanations and focused, relevant examples make it accessible to anyone—even if you’re learning Rust as your first programming language.

By the time you’re done reading Learn Rust in a Month of Lunches you’ll be able to:

  • Build real software in Rust
  • Understand messages from the compiler and Clippy, Rust’s coding coach
  • Make informed decisions on the right types to use in any context
  • Make sense of the Rust standard library and its commonly used items
  • Use external Rust “crates” (libraries) for common tasks
  • Comment and build documentation for your Rust code
  • Work with crates that use async Rust
  • Write simple declarative macros
  • Explore test driven development in Rust

Learn Rust in a Month of Lunches is full of 24 easy-to-digest lessons that ease you into real Rust programming. You’ll learn essential Rust skills you can use for everything from system programming, to web applications, and games. By the time you’re done learning, you’ll know exactly what makes Rust unique—and be one of the thousands of developers who say it’s their best loved language!

about the technology

Learn how to create fast powerful programs in Rust in just 24 short lessons! Rust gives you modern features like a top-notch compiler, a rich ecosystem of pre-built libraries, and the same low-level performance you get with a language like C, but without the awkward syntax, complex memory management, and code safety concerns. This book guides you step by step from your first line of code.

about the book

Learn Rust in a Month of Lunches breaks down the Rust language into concise hands-on lessons designed to be completed in an hour or less. The examples are fun and easy to follow, so you’ll quickly progress from zero Rust knowledge to handling async and writing your own macros. You won’t even need to install Rust—the book’s code samples run in the browser-based Rust Playground. There’s no easier way to get started!

About the Author

Dave MacLeod was an educator, Korean-English translator, project controller, and copywriter before becoming a full-time Rust developer. The technical editor on this book was Jerry Kuch.

In this Book

  • Foreword
  • Some Basics
  • Memory, Variables, and Ownership
  • More Complex Types
  • Building Your Own Types
  • Generics, Option, and Result
  • More Collections, More Error Handling
  • Traits: Making Different Types Do the Same Thing
  • Iterators and Closures
  • Iterators and Closures Again!
  • Lifetimes and Interior Mutability
  • Multiple Threads and a Lot More
  • More on Closures, Generics, and Threads
  • Box and Rust Documentation
  • Testing and Building Your Code from Tests
  • Default, the Builder Pattern, and Deref
  • Const, “Unsafe” Rust, and External Crates
  • Rust’s Most Popular Crates
  • Rust on Your Computer
  • More Crates and Async Rust
  • A Tour of the Standard Library
  • Continuing the Tour
  • Writing Your Own Macros
  • Unfinished Projects: Projects for You to Finish
  • Unfinished Projects, Continued
SHOW MORE
FREE ACCESS