Skip to content

A basic multi-threaded webserver server written in rust. Nothing fancy, built fully custom and runs of a static sized thread pool serving basic html to set routes with a 404.

Notifications You must be signed in to change notification settings

alexquar/Rust-Custom-Webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Custom Rust Webserver

This project is a custom-built webserver written in Rust. For implementation details, please refer to the code base.

About

  • 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

Getting Started

Prerequisites

  • Rust (latest stable version recommended)
  • Cargo (comes with Rust)

Building and Running

Clone the repository and navigate to the project directory:

git clone <repo-url>
cd <project-directory>

Build and run the server:

cargo run

Manual Compilation

If you want to compile and run manually:

rustc src/main.rs
./main

Project Structure

  • src/main.rs: Entry point of the webserver.
  • Additional modules and configuration files as needed.

Usage

Once running, the server will listen on the configured port. Check the code base for endpoints and further customization.

About

A basic multi-threaded webserver server written in rust. Nothing fancy, built fully custom and runs of a static sized thread pool serving basic html to set routes with a 404.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published