start

Macro start 

Source
macro_rules! start {
    ($canister_role:expr) => { ... };
}
Expand description

Configure lifecycle hooks for non-root Canic canisters.

This macro defines the IC-required init and post_upgrade entry points at the crate root and immediately delegates all real work to runtime bootstrap code.

IMPORTANT:

  • This macro must remain thin
  • It must not schedule timers
  • It must not perform orchestration
  • It must not contain async logic
  • It must not encode policy

Its sole responsibility is to bridge IC lifecycle hooks to runtime code.