Rust Web Development
eBook - ePub

Rust Web Development

  1. 400 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Rust Web Development

About this book

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

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Rust Web Development by Bastian Gruber in PDF and/or ePUB format, as well as other popular books in Computer Science & Web Services & APIs. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. inside front cover
  2. Rust Web Development
  3. Copyright
  4. dedication
  5. contents
  6. front matter
  7. Part 1 Introduction to Rust
  8. 1 Why Rust?
  9. 2 Laying the foundation
  10. Part 2 Getting started
  11. 3 Create your first route handler
  12. 4 Implement a RESTful API
  13. 5 Clean up your codebase
  14. 6 Logging, tracing, and debugging
  15. 7 Add a database to your application
  16. 8 Integrate third-party APIs
  17. Part 3 Bring it into production
  18. 9 Add authentication and authorization
  19. 10 Deploy your application
  20. 11 Testing your Rust application
  21. appendix A Thinking about security
  22. index
  23. inside back cover