Sign up
Forgot password?
FAQ: Login

Klabnik S., Nichols C. The Rust Programming Language

  • pdf file
  • size 7,21 MB
Klabnik S., Nichols C. The Rust Programming Language
Updated Edition to cover Rust 2018. — No Starch Press, 2019. — 562 p. — ISBN13: 978-1-7185-0044-0
The Rust Programming Language is the official book on Rust: an open-source systems programming language that helps you write faster, more reliable software. Rust offers control over low-level details (such as memory usage) in combination with high-level ergonomics, eliminating the hassle traditionally associated with low-level languages.
The authors of The Rust Programming Language, members of the Rust Core Team, share their knowledge and experience to show you how to take full advantage of Rust’s features — from installation to creating robust and scalable programs. You’ll begin with basics like creating functions, choosing data types, and binding variables and then move on to more advanced concepts, such as:
Ownership and borrowing, lifetimes, and traits
Using Rust’s memory safety guarantees to build fast, safe programs
Testing, error handling, and effective refactoring
Generics, smart pointers, multithreading, trait objects, and advanced pattern matching
Using Cargo, Rust’s built-in package manager, to build, test, and document your code and manage dependencies
How best to use Rust’s advanced compiler with compiler-led programming techniques
You’ll find plenty of code examples throughout the book, as well as three chapters dedicated to building complete projects to test your learning: a number guessing game, a Rust implementation of a command line tool, and a multithreaded server.
New to this edition: An extended section on Rust macros, an expanded chapter on modules, and appendixes on Rust development tools and editions.
Getting Started
Programming a Guessing Game
Common Programming Concepts
Understanding Ownership
Using Structs to Structure Related Data
Enums and Pattern Matching
Managing Growing Projects with Packages, Crates, and Modules
Common Collections
Error Handling
Generic Types, Traits, and Lifetimes
Writing Automated Tests
An I/O Project: Building a Command Line Program
Functional Language Features: Iterators and Closures
More About Cargo and Crates.io
Smart Pointers
Fearless Concurrency
Object-Oriented Programming Features of Rust
Patterns and Matching
Advanced Features
Final Project: Building a Multithreaded Web Server
True PDF
  • Sign up or login using form at top of the page to download this file.
  • Sign up
Up