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

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serve Static

Rust application that creates an HTTP server and serves the specified directory.

Usage

Usage: serve-static.exe [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

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(.exe) to your $PATH.

serve-static -c -d html -p 8080

About

HTTP server to serve static files (written in Rust)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published