Rust Web Programming (3 Revised edition)
A hands-on guide to Rust for modern web development, with microservices and nanoservices

By (author) Maxwell Flitton

ISBN13: 9781835887769

Imprint: Packt Publishing Limited

Publisher: Packt Publishing Limited

Format: Paperback / softback

Published: 02/06/2025

Availability: Available

Description
A comprehensive guide to developing, packaging, and deploying Rust web applications – with new coverage on async Rust, WebAssembly, nanoservices, and more. Purchase of the print or Kindle book includes a free eBook in PDF format. Key Features Get a comprehensive introduction to Rust for full-stack web development Explore the exciting evolution of Rust in recent years with WebAssembly, Axum, native TLS, and SurrealDB Build code in a scalable way with microservice and nanoservice design patterns Book DescriptionRust is no longer just for systems programming. This book will show you why this safe and performant language is a crucial up-and-coming option for developing web applications, and get you on your way to building fully functional Rust web apps. You don’t need any experience with Rust to get started, and this new edition also comes with a shallower learning curve. You’ll get hands-on with emerging Rust web frameworks including Actix, Axum, Rocket, and Hyper. You’ll look at injecting Rust into the frontend with WebAssembly and HTTPS configuration with NGINX. Later, you’ll move onto more advanced async topics, exploring TCP and framing, and implementing async systems. As you work through the book, you’ll build a to-do application with authentication using a microservice architecture that compiles into one Rust binary, including the embedding of a frontend JavaScript application in the same binary. The application will have end-to-end atomic testing and a deployment pipeline. By the end of this book, you’ll fully understand the significance of Rust for web development. You’ll also have the confidence to build robust, functional, and scalable Rust web applications from scratch.What you will learn Build scalable Rust web applications as monoliths or microservices Develop a deeper understanding of async Rust Get to grips with Rust language features like traits and the borrow checker Manage authentication and databases in Rust web apps Build app infrastructure on AWS using Terraform Learn how to package and deploy Rust servers Build unit tests and end-to-end tests for your Rust web apps with Python Who this book is forThis book is for web developers who are looking to learn or adopt Rust to build safe and performant web applications. This includes developers familiar with languages such as Python, Ruby, and JavaScript. You don’t need any prior experience in Rust to start this book. However, you’ll need a solid understanding of web development principles, along with basic knowledge of HTML, CSS, and JavaScript to get the most out of it.
Table of Contents A Quick Introduction to Rus Useful Rust Patterns for Web Programming End-to-End Testing Designing Your Web Application in Rust Async Rust Processing HTTP Requests Displaying Content in the Browser Handling HTTP Requests Data Persistence with PostgreSQL Managing User Sessions Building RESTful Services Unit Testing Injecting Rust in the Frontend with WebAssembly Deploying our Application on AWS Configuring Basic HTTPS with NGINX Implementing Native Rust TLS From Microservices to Nanoservices Rocket Axum Exploring the Tokio Framework Rolling our Own HTTP Protocol from TCP with Framing Going One Level Higher with the Hyper Framework Building gRPC Servers Data Persistence with SurrealDB
  • Web programming
  • Web services
  • General (US: Trade)
  • Professional & Vocational
Height:
Width:
Spine:
Weight:0.00
List Price: £29.99