This project is a custom-built webserver written in Rust. For implementation details, please refer to the code base.
- Multi threaded webserver custom built using a threadpool
- Serves HTML to set route
- Allows a statically set number of threads
- Features flawless shutdown through custom drop methods of workers
- Rust (latest stable version recommended)
- Cargo (comes with Rust)
Clone the repository and navigate to the project directory:
git clone <repo-url>
cd <project-directory>Build and run the server:
cargo runIf you want to compile and run manually:
rustc src/main.rs
./mainsrc/main.rs: Entry point of the webserver.- Additional modules and configuration files as needed.
Once running, the server will listen on the configured port. Check the code base for endpoints and further customization.