Building Web Applications with Rust

In this chapter, we'll explore building web applications with Rust. We'll get to know the benefits of a static type system and the speed of a compiled language when building web applications with it. We'll also explore Rust's strongly typed HTTP libraries and build a URL shortener as an exercise. Following that, we'll look at a very popular framework called Actix-web and build a bookmark API server with it.

In this chapter, we will cover the following topics:

  • Web applications in Rust
  • Building a URL shortener with Hyper Crate
  • The need for web frameworks
  • Understanding the Actix-web framework
  • Building an HTTP Rest API using Actix-web

Get Mastering Rust - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.