Attribute Macro actix::main

source ·
#[main]
Available on crate feature macros only.
Expand description

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

§Examples

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