logo

Attribute Macro actix_web::rt::main

source · []
#[main]
Expand description

Marks async entry-point function to be executed by Actix system.

Examples

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