Attribute Macro lunatic_macros::main

source ·
#[main]
Expand description

Marks the main function to be executed by the lunatic runtime as the root process.

Note: The macro can only be used on main function with 1 argument of type Mailbox<T>.

Example

#[lunatic::main]
fn main(_: Mailbox<()>) {
    println!("Hello, world!");
}