[−][src]Attribute Macro localghost_macros::main
#[main]
Initializes an async
main function.
This enables the use of async/.await
from the root of the program, logs any
errors returned from the program, and ensures panics are
logged to the console.
Examples
ⓘThis example is not tested
#[localghost::main] async fn main() -> std::io::Result<()> { Ok(()) }