Attribute Macro actix_macros::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");
}#[main]Marks async entry-point function to be executed by Actix system.
#[actix_rt::main]
async fn main() {
println!("Hello world");
}