Attribute Macro actix_web::main [−][src]
#[main]
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 }