erikwco / Rust-Web-Programming-2nd-Edition

Rust Web Programming - Second Edition, published by Packt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust Web Programming - Second Edition

Rust Web Programming - Second Edition

This is the code repository for Rust Web Programming - Second Edition, published by Packt.

A hands-on guide to developing, packaging, and deploying fully functional Rust web applications

What is this book about?

Are safety and high performance a big concern for you while developing web applications? With this practical Rust book, you’ll discover how you can implement Rust on the web to achieve the desired performance and security as you learn techniques and tooling to build fully operational web apps.

This book covers the following exciting features:

  • Structure and build scalable Rust web apps by creating a basic to-do list web app
  • Manage authentication and databases in Rust web applications
  • Get to grips with wrapping web applications in distroless
  • Understand the building blocks of web development such as HTTPS, TCP, and middleware
  • Build app infrastructure on AWS using Terraform with databases, servers, load balancers, HTTPS, and URL routing
  • Build end-to-end tests using Postman
  • Build async systems implementing the actor model using Tokio

If you feel this book is for you, get your copy today!

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

use std::env;

fn main() {
  let args: Vec<String> = env::args().collect();
  println!("{:?}", args);
}

Following is what you need for this book: This Rust programming book is for web developers who want to learn and implement Rust to build web applications. Developers familiar with languages such as Python, Ruby, and JS will be able to use this book to build high performant web apps with Rust. Although no prior experience in Rust is necessary, a solid understanding of web development principles, along with basic knowledge of HTML, CSS, and JavaScript, is necessary to get the most out of this book.

With the following software and hardware list you can run all code files present in the book (Chapter 1-18).

Software and Hardware List

Chapter Software/Hardware required OS required
1-18 Rust Windows, macOS, or Linux (any)
1-18 Node (for JavaScript) Windows, macOS, or Linux (any)
1-18 Python 3 Windows, macOS, or Linux (any)
1-18 Docker Windows, macOS, or Linux (any)
1-18 docker-compose Windows, macOS, or Linux (any)
1-18 Postman Windows, macOS, or Linux (any)
1-18 Terraform Windows, macOS, or Linux (any)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Errata

  • Page 29 (line 10): Because one is defined in the inner scope, should be Because two is defined in the inner scope,

Related products

Get to Know the Author

Maxwell Flitton is a software engineer who works for the open source financial loss modeling foundation Oasis LMF. In 2011, Maxwell achieved his Bachelor of Science degree in nursing from the University of Lincoln, UK. While working 12-hour shifts in the A&E departments of hospitals, Maxwell obtained another degree in physics from the Open University in the UK, and then moved on to another milestone, getting a postgraduate diploma in physics and engineering in medicine from UCL in London. He’s worked on numerous projects, such as medical simulation software for the German government and supervising computational medicine students at Imperial College London. He also has experience in financial tech and Monolith AI.

Other books by the author

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781803234694

About

Rust Web Programming - Second Edition, published by Packt

License:MIT License


Languages

Language:Rust 52.3%Language:Makefile 18.4%Language:JavaScript 12.6%Language:CSS 4.3%Language:Shell 3.7%Language:HTML 2.7%Language:HCL 2.5%Language:Python 1.6%Language:PLpgSQL 1.4%Language:Dockerfile 0.4%Language:LLVM 0.1%