Synopses & Reviews
Synopsis
Create bulletproof, high-performance web apps and servers with Rust. In Rust Web Development you will learn:
Handling the borrow checker in an asynchronous environment
Learning the ingredients of an asynchronous Rust stack
Creating web APIs and using JSON in Rust
Graceful error handling
Testing, tracing, logging, and debugging
Deploying Rust applications
Efficient database access
Rust Web Development is a pragmatic, hands-on guide to creating server-based web applications with Rust. If you've designed web servers using Java, NodeJS, or PHP, you'll instantly fall in love with the performance and development experience Rust delivers. Hit the ground running Author Bastian Gruber's sage advice makes it easy to start tackling complex problems with Rust. You'll learn how to work efficiently using pure Rust, along with important Rust libraries such as tokio for async runtimes, warp for web servers and APIs, and reqwest to run external HTTP requests.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the technology
If you're sick of cookie-cutter web development tools that are slow, resource hungry, and unstable, Rust is the solution. Rust services deliver rock-solid safety guarantees, an amazing developer experience, and even a compiler that automatically prevents common mistakes
About the book
Rust Web Development, teaches you to build server-side web apps using Rust, along with important Rust libraries like tokio for async runtimes, warp for web servers and APIs, and reqwest to run external HTTP requests. The book is packed full of examples, code samples, and pro tips for setting up your projects and organizing your code. As you go, you'll build a complete Q&A web service and iterate on your code chapter-by-chapter, just like a real development project.
What's inside
Handle the borrow checker in an asynchronous environment
Build web APIs and handle JSON
Compose a tech stack for asynchronous Rust development
Handle errors gracefully
Test, trace, log, and debug
Deploy Rust applications to multiple environments
About the reader
This book is for web developers familiar with Java, Node, or Go, and the absolute basics of Rust.
About the author
Bastian Gruber is a Protocol Engineer at Centrifuge. He was part of the official Rust Async Working Group, and founded the Rust and Tell Berlin MeetUp group.
Table of Contents
PART 1 INTRODUCTION TO RUST
1 Why Rust?
2 Laying the foundation
PART 2 GETTING STARTED
3 Create your first route handler
4 Implement a RESTful API
5 Clean up your codebase
6 Logging, tracing, and debugging
7 Add a database to your application
8 Integrate third-party APIs
PART 3 BRING IT INTO PRODUCTION
9 Add authentication and authorization
10 Deploy your application
11 Testing your Rust application
Synopsis
Create bulletproof, high-performance web apps and servers with Rust. In
Rust Web Development you will learn:
Handling the borrow checker in an asynchronous environment Creating web APIs and using JSON in Rust Graceful error handling Testing, tracing, logging, and debugging Deploying Rust applications Efficient database access
Rust Web Development is a hands-on guide to building server-based web applications with Rust. If you've built web servers using Java, C#, or PHP, you'll instantly fall in love with the performance and development experience Rust delivers. This book shows you how to work efficiently using pure Rust, along with important Rust libraries such as tokio for async runtimes, warp for web servers and APIs, and reqwest to run external HTTP requests. about the technology Web development languages and libraries can be resource hungry, with poor safety for maintaining vital web services. Rust services perform better and guarantee better safety. Plus, Rust's awesome compiler gives you an amazing developer experience. You'll get the speed of low-level programming languages like C along with the ease-of-use you'd expect from high-level languages Python or Ruby, with a super strong compiler that automatically prevents common mistakes such as null pointers. about the book In
Rust Web Development, you'll learn to build server-side web applications using the Rust language and its key libraries. If you know the basics of Rust, you'll quickly pick up some pro tips for setting up your projects and organizing your code. This book gets you hands-on fast, with numerous small and large examples. You'll get up to speed with how Rust streamlines backend development, implements authentication flows, and even makes it easier for your APIs to interact. As you go, you'll build a complete Q&A web service and iterate on your code chapter-by-chapter, just like a real development project.
RETAIL SELLING POINTS - Handling the borrow checker in an asynchronous environment - Creating web APIs and using JSON in Rust - Graceful error handling - Testing, tracing, logging, and debugging - Deploying Rust applications - Efficient database access
AUDIENCE For experienced web developers familiar with Java, Node, or Go, and the absolute basics of Rust