Skip to content

matusdrobuliak66/rust-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-server

A tiny, dependency-free HTTP server written in Rust. It serves static files from public/ and includes a couple of example routes.

Features

  • Pure Rust, no external crates
  • Serves static files from a configurable PUBLIC_PATH
  • Minimal HTTP request parsing/response writing (for learning and experiments)

Running

cargo run

Then open:

Configuration

PUBLIC_PATH controls where static files are loaded from.

By default it uses: <repo>/public

Example:

PUBLIC_PATH=/absolute/path/to/your/public cargo run

Notes

This project is intentionally minimal and currently focuses on GET requests and simple file serving.

About

Building rust http server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors