Attribute Macro bolt_program

Source
#[bolt_program]
Expand description

This macro attribute is used to define a BOLT component.

Bolt components are themselves programs that can be called by other programs.

§Example

#[bolt_program(Position)]
#[program]
pub mod component_position {
    use super::*;
}


#[component]
pub struct Position {
    pub x: i64,
    pub y: i64,
    pub z: i64,
}