main in async_std - Rust (original) (raw)

async_std

Attribute Macro main

Source

#[main]

Available on attributes only.

Expand description

Enables an async main function.

§Examples

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