This is the final project in the Rust Book. It is a multithreaded web server that usess a thread pool to handle requests.
Solidify understanding of Rust by building a web server from scratch.
- How to use the
thread
module to create and manage threads - How to use the
mpsc
module to create a channel for communication between threads - How to use the
Arc
andMutex
types to share data between threads - How to use the net module to create a TCP server
- Graceful shutdown of a server using the
Drop
trait
cargo run