actix_rt

Attribute Macro 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");
}