Attribute Macro actix_web::main [−][src]
#[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.
Usage
#[actix_web_codegen::main]
async fn main() {
async { println!("Hello world"); }.await
}