use actix_web::{App, HttpServer}; struct AppState {} #[actix_web::main] async fn main() -> std::io::Result<()> { HttpServer::new(|| App::new()) .bind(("127.0.0.1", 8080))? .run() .await }