No description
![]() since the `.wait()` has been removed from futures 0.1 sink::Sink trait, use futures 0.3 `executor::block_on` function to run an async block in the sync environment of `write`. https://docs.rs/futures/0.1.29/futures/sink/trait.Sink.html#method.wait https://docs.rs/futures/0.3.5/futures/executor/fn.block_on.html |
||
---|---|---|
src | ||
.gitignore | ||
.travis.yml | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
A simple http server like python -m http.server
but:
- written in rust with actix, should be faster
- allow concurrency
- download whole directories in .tar format
- fancier directory listing
- maybe announce itself on mDNS (avahi)
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]
FAQ
- Q: why .tar and not .zip? A:
you can't stream a zip file efficiently, it needs to seek and write to the beggining of a file.will see.
Release builds
cargo build --release
strip --strip-unneeded ./target/release/http-server