rustatic-0.2.0 is not a library.
Rustatic - Rust Static server
When locally developing a static web site it can quite useful to be able to run a small web server and be able to see the results.
Rustatic provides this service.
How to use it:
- Install Rust
git clone https://github.com/szabgab/rustatic
cd rustatic
cargo run -- --help
cargo run -- --version
cargo run -- --path /some/path/where/you/have/your/static/site --host 127.0.0.1 --port 5000
pathdefaults to the current directoryhostdefaults to 127.0.0.1portdefaults to 5000indexfileif provided then accessing a directory will yield the contenct of this file. Usually people haveindex.html.
TODO
- create executable that people can download so no need to clone from repo
- Handle TODO items in the code.