Skip to content

HTTP server to serve static files (written in Rust)

Notifications You must be signed in to change notification settings

lysender/serve-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serve Static

HTTP server that serves files from the specified directory.

Written in Rust.

Demo files

cargo run -- -d html -p 8080

Then visit the following urls:

Build release mode

cargo build --release

Then copy the executable from target/release/serve-static to your $PATH.

serve-static -c -d html -p 8080

Usage

Usage: serve-static [OPTIONS] --dir <DIR>

Options:
  -c, --cors
      --public       Expose to local network
  -d, --dir <DIR>
  -p, --port <PORT>  Local port [default: 3000]
  -h, --help         Print help
  -V, --version      Print version

About

HTTP server to serve static files (written in Rust)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published