Crate tiny_file_server[−][src]
The simplest file server for web development purposes.
use env_logger::{Builder, Env}; use tiny_file_server::FileServer; fn main() { Builder::from_env(Env::default().default_filter_or("debug")).init(); FileServer::http("127.0.0.1:9080") .expect("Server should be created") .run("path/to/static/files") .expect("Server should start"); }
Structs
FileServer |
Type Definitions
Error |