Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages