| Crates.io | simplewebserver_rs |
| lib.rs | simplewebserver_rs |
| version | 2.2.1 |
| created_at | 2025-04-16 18:50:59.924968+00 |
| updated_at | 2025-09-16 20:35:53.409973+00 |
| description | A very simple web server for hosting html files. |
| homepage | |
| repository | https://github.com/Jacoblightning/SimpleWebServer-RS |
| max_upload_size | |
| id | 1636819 |
| size | 47,998 |
A simple web server capable of handling GET requests.
This webserver aims to be performant, secure, and just compliant enough that cURL and web browsers will accept itâ„¢
cargo install simplewebserver_rs
git clone https://github.com/Jacoblightning/SimpleWebServer-RS
cd SimpleWebServer-RS
cargo install --path .
Then remove the directory if you want
You can do that:
simplewebserver_rs
You can do that:
simplewebserver_rs -b file1 -b file2 -b file3 ...
You can even do that:
simplewebserver_rs -r 2 -d 5
...
simplewebserver_rs -r 2 -d 2
um... anyway
Most other things (and this) that you can do are explained in the help message.
For example, for v1.0.0:
A very simple web server for hosting html files.
Usage: simplewebserver_rs [OPTIONS] [BINDTO] [PORT]
Arguments:
[BINDTO] [default: 127.0.0.1]
[PORT] [default: 8080]
Options:
-q, --quiet Disable logging.
-v, --verbose Use verbose output
--enablelogfiles Use log files in addition to logging on stdout/err
-r, --ratelimit <RATELIMIT> Maximum requests per minute before rate-limiting. 0 to disable [default: 120]
-d, --timeout <TIMEOUT> Timeout in seconds after exceeding ratelimit [default: 180]
-b, --blacklist <BLACKLIST> Files to blacklist from serving. (Defaults to log files)
--testing Indicates that the program is being in test mode.
-h, --help Print help
-V, --version Print version