Your guide to the programming language that's revolutionizing software development Ready to learn Rust, the language that combines blazing performance with memory safety? Rust All-in-One For Dummies takes you from complete beginner to confident developer, covering the essentials of writing Rust code through applying it to real-world projects. Unlike programming books that throw you into the deep end, Rust All-in-One For Dummies builds your skills systematically. Each mini-book contained in this All-in-One reference focuses on a specific aspect of Rust development, complete with hands-on projects that apply what you've learned. You'll move seamlessly from understanding basic syntax to building real-world applications that showcase Rust's incredible versatility. Whether you're writing your first line of code or adding Rust to your programming toolkit, you'll discover how to harness its unique features to build everything from command-line tools to web applications. Get expert insight on: Rust fundamentals and real-world applications – Learn ownership, borrowing, and the borrow checker while building practical projects like number guessing games, file organizers, chat servers, and data analysis dashboards.Advanced development across multiple domains – Create command-line tools, WebAssembly browser applications, networked programs, desktop GUIs, and high-performance web servers using Rust's growing ecosystem.Professional development practices – Master testing, documentation, error handling, concurrency, and code organization techniques that make Rust applications production-ready and maintainable.Perfect for complete beginners starting their programming journey and experienced developers ready to explore why Rust consistently ranks as the most loved programming language. Join the community that's discovered Rust isn't just another language – it's the future of safe, fast, and reliable software development.
Paul McFedries is an experienced programmer and technology author. He has written more than 100 books, including Coding For Dummies and HTML, CSS, & JavaScript All-in-One For Dummies, and is an expert in app and web development, operating systems, and programming languages.
Introduction 1Book 1: Welcome to the Rust Side 5CHAPTER 1: Getting to Know Rust 7CHAPTER 2: Getting Your Hands Rusty 17CHAPTER 3: Speaking Rust: The Basics 39CHAPTER 4: Crafting Expressions 61CHAPTER 5: Controlling the Flow 77CHAPTER 6: Pattern Matching: The Swiss Army Knife of Rust 93CHAPTER 7: Functions: Teaching Rust New Tricks 107Book 2: Learning the Rust Way of Doing Things 131CHAPTER 1: Ownership: Rust's Secret Sauce 133CHAPTER 2: Structs: Rolling Your Own Types 159CHAPTER 3: Enums: Embracing Possibilities 177CHAPTER 4: Storing Data in Rust 197CHAPTER 5: The String Section: Text in Rust 225CHAPTER 6: Functional Programming with Closures and Iterators 253CHAPTER 7: Organizing Your Code 279Book 3: Deeper Rust Concepts 303CHAPTER 1: Traits: Shared Behaviors 305CHAPTER 2: Generics: Code That Works for Almost Anything 325CHAPTER 3: Lifetimes: How Long Things Live 343CHAPTER 4: Handling Errors Like a Pro 361CHAPTER 5: Macros: When Code Writes Code 381CHAPTER 6: Parallelism and Concurrency: Rust Multitasking 395CHAPTER 7: Testing, Debugging, and Documenting 421Book 4: Building Command-Line Tools 447CHAPTER 1: Coding Your First Tools 449CHAPTER 2: File Processing and Configuration 465CHAPTER 3: Polishing Your Command-Line Tools 487Book 5: WebAssembly: Rust in Your Browser 503CHAPTER 1: WebAssembly Basics and Setup 505CHAPTER 2: Exchanging Data between Rust and JavaScript 525CHAPTER 3: Building Interactive WebAssembly Apps 545Book 6: Networking with Rust 569CHAPTER 1: Building a Web Server 571CHAPTER 2: Building a REST API 593CHAPTER 3: Building a Server-Side Web App 617Index 645