Skip to main content

Crate moirai_async_macros

Crate moirai_async_macros 

Source
Expand description

Attribute macro providing an async main for Moirai.

Rust’s entry point cannot itself be async, so something has to build a runtime and block on the future. This crate supplies that shim for Moirai, keeping executor construction out of user code.

Attribute Macros§

main
Marks an async fn main as the program entry point.