27 lines
No EOL
624 B
Markdown
27 lines
No EOL
624 B
Markdown
A simple http server like `python -m http.server` but:
|
|
|
|
* written in rust with actix, should be faster
|
|
* allow concurrency
|
|
* fancier directory listing
|
|
|
|
```
|
|
USAGE:
|
|
http-server [OPTIONS] [PORT]
|
|
|
|
FLAGS:
|
|
-h, --help Prints help information
|
|
-V, --version Prints version information
|
|
|
|
OPTIONS:
|
|
--bind <ADDRESS> Specify alternate bind address [default: 0.0.0.0]
|
|
--chdir <DIRECTORY> Specify directory to server [default: .]
|
|
|
|
ARGS:
|
|
<PORT> Specify alternate port [default: 8000]
|
|
```
|
|
|
|
## Release builds
|
|
```
|
|
cargo build --release
|
|
strip --strip-unneeded ./target/release/http-server
|
|
``` |