Build stable, production-grade systems with Rust.
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 to:
- Design programs that communicate their invariants to the compiler
- Use ownership, lifetimes, and traits to model real-world constraints
- Write concurrent and multithreaded code with confidence and clarity
- Build, test, document, and refactor projects using Cargo effectively
- Handle errors explicitly and idiomatically
- Apply 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 edition:
- Complete async programming chapter
- Miri for analyzing unsafe code
- Built on the Rust 2024 Edition
- Modern Rust idioms, tooling, and practices
Inhaltsverzeichnis
Foreword< BR> Preface< BR> Acknowledgments< BR> Introduction< BR> < BR> Chapter 1: Getting Started< BR> Chapter 2: Programming a Guessing Game< BR> Chapter 3: Common Programming Concepts< BR> Chapter 4: Understanding Ownership< BR> Chapter 5: Using Structs to Structure Related Data< BR> Chapter 6: Enums and Pattern Matching< BR> Chapter 7: Packages, Crates, and Modules< BR> Chapter 8: Common Collections< BR> Chapter 9: Error Handling< BR> Chapter 10: Generic Types, Traits, and Lifetimes< BR> Chapter 11: Writing Automated Tests< BR> Chapter 12: An I/O Project: Building a Command Line Program< BR> Chapter 13: Functional Language Features: Iterators and Closures< BR> Chapter 14: More About Cargo and Crates. io< BR> Chapter 15: Smart Pointers< BR> Chapter 16: Fearless Concurrency< BR> Chapter 17: Fundamentals of Asynchronous Programming< BR> Chapter 18: Object-Oriented Programming Features< BR> Chapter 19: Patterns and Matching< BR> Chapter 20: Advanced Features< BR> Chapter 21: Final Project: Building a Multithreaded Web Server< BR> < BR> Appendix A: Keywords< BR> Appendix B: Operators and Symbols< BR> Appendix C: Derivable Traits< BR> Appendix D: Useful Development Tools< BR> Appendix E: Editions< BR> < BR> Index