[][src]Attribute Macro actix_web::main

#[main]

Marks async main function as the actix system entry-point.

Usage

#[actix_web::main]
async fn main() {
    async { println!("Hello world"); }.await
}