Attribute Macro actix_web_codegen::main
source · [−]#[main]
Expand description
Marks async main function as the actix system entry-point.
Examples
#[actix_web::main]
async fn main() {
async { println!("Hello world"); }.await
}
#[main]
Marks async main function as the actix system entry-point.
#[actix_web::main]
async fn main() {
async { println!("Hello world"); }.await
}