2 Laying the foundation

This chapter covers

  • Getting to know the Rust types
  • Understanding the Rust ownership system
  • Implementing custom behavior in your own types
  • Understanding the building blocks of an asynchronous ecosystem
  • Choosing third-party libraries to build web services with Rust
  • Setting up a basic working web service with Rust

The first chapter provided a pretty good rundown of the features that come with Rust, and the tooling we need to add to be able to create web services with Rust. This chapter elaborates on these points. The first part details how to use the language to create your own types and functions. In the second part, you’ll add a web server so you can serve your first response to the user.

As mentioned before, you will ...

Get Rust Web Development 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.