Attribute Macro ajars_actix_web::actix_web::main [−]
#[main]
Expand description
Marks async main function as the actix system entry-point.
Actix Web Re-export
This macro can be applied with #[actix_web::main]
when used in Actix Web applications.
Examples
#[actix_web_codegen::main]
async fn main() {
async { println!("Hello world"); }.await
}