Crate file_serve

source ·
Expand description

An HTTP Static File Server

file-serve focuses on augmenting development of your site. It prioritizes small size and compile times over speed, scalability, or security.

§Example

let path = std::env::current_dir().unwrap();
let server = file_serve::Server::new(&path);

println!("Serving {}", path.display());
println!("See http://{}", server.addr());
println!("Hit CTRL-C to stop");

server.serve().unwrap();

Structs§