macro_rules! program_dispatch {
($program_mod:ident) => { ... };
}Expand description
Generate the small runtime bridge for a #[program(entrypoint = false)]
module.
New programs do not need this macro: #[program] emits the same audited
Hopper entrypoint bridge automatically. Keep program_dispatch! for
compatibility and for unusual crates that intentionally disable the
automatic bridge.
ⓘ
#[program(entrypoint = false)]
mod counter_program {
// handlers
}
hopper::program_dispatch!(counter_program);