Skip to main content

main

Attribute Macro main 

Source
#[main]
Expand description

Attribute for the main function, equivalent to #[actix_web::rt::main(system = "actix_cloud::actix_web::rt::System")].

The runtime is taken from actix_cloud’s actix_web re-export, so the crate using this macro does not need a direct actix-web dependency.

ⓘ
#[actix_cloud::main]
async fn main() -> std::io::Result<()> {
    Ok(())
}