use axum::{Router, routing::get}; async fn index() -> &'static str { "hi world" } #[tokio::main] async fn main() { let app = Router::new().route("/", get(index)); axum::Server::bind(&"0.0.0.0:8000".parse().unwrap()) .serve(app.into_make_service()) .await .unwrap(); }