Skip to main content

init

Attribute Macro init 

Source
#[init]
Expand description

Marks an async function as the required cellbook init entrypoint.

The macro:

  • Keeps the function as-is (arbitrary function name)
  • Exports __cellbook_get_cells
  • Exports __cellbook_get_init
#[init]
async fn setup() -> Result<()> {
    Ok(())
}