4 releases
| 0.4.2 | Mar 25, 2023 |
|---|---|
| 0.4.1 | Jan 2, 2022 |
| 0.4.0 | May 7, 2021 |
| 0.1.7 | Sep 14, 2020 |
| 0.1.0 |
|
#1461 in HTTP server
43,573 downloads per month
Used in 2 crates
43KB
792 lines
devserver_lib
devserver_lib does (nearly) the minimum necessary to serve a static folder over https://localhost:8080.
DO NOT USE DEVSERVER_LIB IN PRODUCTION
devserver_lib should only be used for locally hosting files on a trusted network.
devserver_lib does not properly handle the attacks robust servers must withstand on an open network.
usage
extern crate devserver_lib;
fn main()
{
devserver_lib::run(&"localhost", 8080, "", /*Auto-reload:*/ true ); // Runs forever serving the current folder on http://localhost:8080
}
dependencies
Dependencies only for the reload feature: notify sha-1 base64
Resources to learn from
Dependencies
~0–5.5MB
~124K SLoC