Skip to main content

main

Attribute Macro main 

Source
#[main]
Expand description

Define a fuchsia DSO main function.

This attribute should be applied to the process main function. It will take care of setting up various Fuchsia crates for the component.

Arguments:

  • sync - boolean toggle for whether to use the synchronous DSO entry point.
  • async - boolean toggle for whether to use the asynchronous DSO entry point.

The main function can return either () or a Result<(), E> where E is an error type.