The Rust Programming Language

Steve Klabnik, Carol Nichols and Chris Krycho

The official book on Rust by Steve Klabnik, Carol Nichols and Chris Krycho, updated for the 2024 edition of the language. It explains the language chapter by chapter, and three chapters are projects: a guessing game, a command line search tool and a multithreaded web server. The book assumes you have written code in another language before.

What you'll learn

  • Ownership, borrowing and slices
  • Structs, enums and pattern matching
  • Organizing code with packages, crates and modules
  • Error handling with Result and panic!
  • Generics, traits and lifetimes
  • Concurrency with threads and async/await

More Programming Languages courses