The Rust Programming Language, 3rd Edition, teaches you to write code that the compiler can verify, teams can maintain, and systems can evolve safely over time. Written by longtime Rust community members, this book shows you how to work effectively with Rust’s type system, concurrency model, and tooling, using patterns and idioms chosen for long-term stability.
Learn how Design programs that communicate their invariants to the compilerUse ownership, lifetimes, and traits to model real-world constraintsWrite concurrent and multithreaded code with confidence and clarityBuild, test, document, and refactor projects using Cargo effectivelyHandle errors explicitly and idiomaticallyApply expressive pattern matching to simplify complex logic Three substantial project chapters—focusing on a number-guessing game, a command-line tool, and a multithreaded server—demonstrate how these concepts work together in complete, real programs.
Whether you’re new to Rust or already using it in production, this book helps you write code that scales safely and makes its guarantees explicit.
New to this Complete async programming chapterMiri for analyzing unsafe codeBuilt on the Rust 2024 EditionModern Rust idioms, tooling, and practices
Steve Klabnik is a prominent software developer and open-source advocate known for his contributions to the Rust programming language. Right now he works as a software engineer at Oxide Computer. Steve is considered one of the leading experts on Rust, and is widely respected for his knowledge and expertise. He is also a strong advocate for open-source software, believing that it has the power to transform the way we build and use technology. Through his work, Steve has helped shape the future of programming and technology and has inspired countless developers around the world to embrace new and innovative approaches to software development. He is a sought-after speaker, having given talks at numerous technology conferences and events around the world.