Jump to ratings and reviews
Rate this book

Rust Web Development: With warp, tokio, and reqwest

Rate this book
Create bulletproof, high-performance web apps and servers with Rust.

In Rust Web Development you will

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 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

400 pages, Paperback

Published January 24, 2023

14 people are currently reading
59 people want to read

About the author

Bastian Gruber

2 books4 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
21 (72%)
4 stars
3 (10%)
3 stars
3 (10%)
2 stars
2 (6%)
1 star
0 (0%)
Displaying 1 - 10 of 10 reviews
Profile Image for Bastian Gruber.
Author 2 books4 followers
Read
January 15, 2023
Very proud how this book turned out! I am re-reading chapters every now and then, which gives me some ideas what a follow up book might look like!
1 review
December 31, 2022
An excellent read. I’ve read a few Rust books but this one is probably my favourite.

It is very well structured, carefully building on each topic and explaining how we can build an app piece by piece, just as we would in real world scenarios.

Bastian also provides some really useful links for the larger topics which would require wider reading.

If you are at all interested in Rust and especially web development with Rust I say this is a must read.
23 reviews
January 12, 2023
This guy is the master of Rust right now. And you can see how passionate is about it.
1 review
January 12, 2025
Decent concept design and content. Horrible quality control and upkeep. I would have rated this book a 4 or maybe even a 5, but the lack of care in code review and abandoned GitHub repo ruined the reading and learning experience.

This book has good design in terms of introducing Rust to web developers using a small framework with little magic. It covers a good foundation of important concepts.

The code examples included have severe problems. Misprints aside, there would be chapters where code variations from future chapters are included, which leads to confusion and frustration when trying to follow along. At one point, a function (local_paseto) is referenced in a couple of code examples but the function definition is nowhere to be found. The accompanying GitHub repo has not been updated in 3 years and none of the issues are addressed.

In 2025, this book can still give you value if you are relatively new to Rust and want to get an overview of some important concepts like logging and tracing. Personally I would not try to follow through the code examples, but if you do, it might help to keep in mind that you will have to research and fix some of the included code on your own.
2 reviews
March 28, 2023
This is a good book on Applying Rust language to Web development, it's very practical and useful, it proves that Rust is a general programming language, not only as an system programming language as C++. In this book, it also explains the tokio library which I think is one of the most popular library in Rust, and every Rustacean should know and able to use the tokio library.
Overall, "Rust web development" is a comprehensive guide for developers who want to learn how to build web applications using Rust. It covers a wide range of topics, and the author provides clear explanations and practical examples. If you have an interest in Rust and web development, this book could be a valuable resource for you.
1 review
February 12, 2023
As a senior software consultant and developer, Web Development with Rust was on my checklist. I come across Rust Web Development Book. I spent a few days after work following the book. I have learned a lot and gained new knowledge. I will absolutely bring the knowledge I have to my next project or client.
Profile Image for Mochammad Hadyan.
123 reviews4 followers
July 9, 2024
Really good book covering end to end web dev using Rust.

Many chapters are web framework specific, however the concepts still generics for any languages or frameworks.

However, I personally find Warp is too verbose as web framework, I wish the author can replace it with Axum in the next edition which more modern and elegant.
3 reviews
January 28, 2023
A great book to get started with web development using the Rust programming language.
After a brief introduction to the language and tooling you'll start building an API. The author does a great job at explaining the technical details in a simple way.
Profile Image for Manzur.
28 reviews1 follower
January 27, 2023
An interesting and practical book to learn Rust without being hit by its steep learning curve.
Profile Image for Cristiano Pacheco.
1 review
January 31, 2023
I liked how the book was written. Simply straight to the point. It covers things from basics to advanced and is an excellent introduction to the Warp framework.
Displaying 1 - 10 of 10 reviews

Can't find what you're looking for?

Get help and learn more about the design.