Rust in Depth: Efficient Programming: Lifetimes, Traits, Async/Await, REST APIs, and Databases with Rust (Rust Programming)
ANT
• Instant access to your digital edition.
• Read anytime, anywhere, on your favorite device.
• No shipping — your book is delivered digitally.
• Simple, secure access after purchase.
Instant digital delivery after purchase.
Discover another great read to add to your digital library.
Description
You know Rust. Now it's time to use it in real projects. Book 2 of the Rust Programming series takes readers from beginner to professional competence: the topics that separate someone who has read a tutorial from someone who can work on a professional Rust team.
Each chapter tackles a critical area of professional Rust development: the advanced lifetimes that confuse most developers, the trait system that makes Rust so expressive, closures and iterators that replace loops with elegant code, smart pointers that control memory without unsafe, and the concurrency model that makes data races impossible. The second half builds complete applications: a robust CLI with Clap, a file parser, JSON serialization with Serde, a complete REST API, and a SQLite database with SQLx.
What you will learn:
Advanced lifetimes: resolving borrow checker errors like an expert Traits and generics: high-performance abstraction with zero runtime cost Closures and iterators: Rust's idiomatic functional style Box, Rc, Arc, RefCell: when and how to use each smart pointer Safe concurrency with Mutex, RwLock, and mpsc channels Async/Await with Tokio: handling thousands of simultaneous connections Advanced testing: unit tests, integration tests, mocks, and benchmarks Complete CLI application with arguments, subcommands, and autocomplete REST API with Axum, JWT authentication, and OpenAPI documentation Database layer with SQLx: typed queries, migrations, and connection pooling The Chapter 13 capstone integrates everything into a task management application with a Rust backend, REST API, database, and CLI client. Full code available on GitHub.
Requires completing Book 1 or basic Rust knowledge.
Specifications
Frequently asked
Do I need an account to download?
No. After purchase, you can access your ebook directly from the order confirmation or download page.
What if a copy arrives damaged?
Contact us and we’ll help you access the file or provide a replacement download if needed.