use fire::fs::StaticFile; use fire_http as fire; const HELLO_WORLD: StaticFile = StaticFile::no_cache("/", "./examples/www/hello_world.html"); #[tokio::main] async fn main() { let mut server = fire::build("0.0.0.0:3000") .await .expect("Address could not be parsed"); server.add_route(HELLO_WORLD); server.ignite().await.unwrap(); }