[][src]Attribute Macro tokio::main

#[main]

Marks async function to be executed by selected runtime.

Options:

Function arguments:

Arguments are allowed for any functions aside from main which is special

Usage

Using default

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