Attribute Macro actix_macros::main [−][src]
#[main]
Expand description
Marks async function to be executed by actix system.
Usage
#[actix_rt::main]
async fn main() {
println!("Hello world");
}
#[main]
Marks async function to be executed by actix system.
#[actix_rt::main]
async fn main() {
println!("Hello world");
}