Book description
"The Rust Programming Language is the official book on Rust; a community-developed, systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. Rust’s memory safety guarantees, enforced at compile time, safeguard your programs against the many problems that pervade other systems languages. Rust offers the control and performance of a low-level language with the helpful abstractions of a high level one, and does this all without having a garbage collector. These characteristics make Rust useful for embedding in other languages, programs with specific space and time requirements, and writing low-level code, like device drivers and operating systems.
The Rust Programming Language begins with a quick hands-on project to introduce the basics, then explores key concepts in depth, such as ownership, the type system, error handling, and fearless concurrency. Detailed explanations of Rust-oriented takes on topics like pattern matching, iterators, and smart pointers combine with examples and exercises to take you from theory to practice.
In addition to its thorough coverage of more granular topics, The Rust Programming Language will show you how to:
• Grasp important concepts unique to Rust like ownership, borrowing, and lifetimes• Use Cargo, Rust’s built-in package manager, to build your code, including downloading and building dependencies• Effectively use Rust’s zero-cost abstractions and learn to build your own
Developed with help from the community, The Rust Programming Language is your official guide to becoming a productive Rust programmer."
Publisher resources
Table of contents
- Cover Page
- Title Page
- Copyright Page
- About the Authors
- BRIEF CONTENTS
- CONTENTS IN DETAIL
- FOREWORD by Nicholas Matsakis and Aaron Turon
- ACKNOWLEDGMENTS
- INTRODUCTION
- 1 GETTING STARTED
- 2 PROGRAMMING A GUESSING GAME
- 3 COMMON PROGRAMMING CONCEPTS
- 4 UNDERSTANDING OWNERSHIP
- 5 USING STRUCTS TO STRUCTURE RELATED DATA
- 6 ENUMS AND PATTERN MATCHING
- 7 USING MODULES TO REUSE AND ORGANIZE CODE
- 8 COMMON COLLECTIONS
- 9 ERROR HANDLING
- 10 GENERIC TYPES, TRAITS, AND LIFETIMES
- 11 WRITING AUTOMATED TESTS
- 12 AN I/O PROJECT: BUILDING A COMMAND LINE PROGRAM
- 13 FUNCTIONAL LANGUAGE FEATURES: ITERATORS AND CLOSURES
- 14 MORE ABOUT CARGO AND CRATES.IO
- 15 SMART POINTERS
- 16 FEARLESS CONCURRENCY
- 17 OBJECT-ORIENTED PROGRAMMING FEATURES OF RUST
- 18 PATTERNS AND MATCHING
- 19 ADVANCED FEATURES
- 20 FINAL PROJECT: BUILDING A MULTITHREADED WEB SERVER
- A KEYWORDS
- B OPERATORS AND SYMBOLS
- C DERIVABLE TRAITS
- D MACROS
- INDEX
Product information
- Title: The Rust Programming Language
- Author(s):
- Release date: July 2018
- Publisher(s): No Starch Press
- ISBN: 9781593278519
You might also like
book
The Rust Programming Language, 2nd Edition
The Rust Programming Language, 2nd Edition is the official guide to Rust 2021: an open source …
book
The Rust Programming Language (Covers Rust 2018)
The Rust Programming Language is the official book on Rust: an open source systems programming language …
book
Programming WebAssembly with Rust
WebAssembly fulfills the long-awaited promise of web technologies: fast code, type-safe at compile time, execution in …
book
Programming Rust
Rust is a new systems programming language that combines the performance and low-level control of C …