Host your local files, e.g. for inspection by tools such as your trusty browser:
- On any platform,
- Without any additional dependencies,
- Without even executing any shell commands!
Need it as a CLI?
cargo install shrimple-localhostNeed it as a library?
cargo add shrimple-localhostWithout any options, shrimple-localhost defaults to hosting the files in the current directory at the default port
shrimple-localhost- To specify a custom root, provide the
-rflag followed by the path to the root - To specify a custom port, provide the
-pflag followed by the port number
shrimple-localhost -p 4096 -r ~/website/staticMore on this in the docs of the library: https://docs.rs/shrimple-localhost
The server to be made lightweight, thus it's very barebones; it can only handle 1 connection at once, which should be enough for what's merely a development tool.