bolt icon indicating copy to clipboard operation
bolt copied to clipboard

Add delegate macro to delegate/undelegate components

Open GabrielePicco opened this issue 8 months ago • 0 comments

Add delegate macro to delegate/undelegate components

Status Type ⚠️ Core Change Issue
Ready Feature No -

Description

  • Add delegate macro to delegate/undelegate components

Delegation module for https://arxiv.org/pdf/2311.02650.pdf

Example

Adding the delegate attribute automatically inject instructions and struct needed to delegate BOLT component.

#[component(delegate)]
#[derive(Default)]
pub struct Position {
    pub x: i64,
    pub y: i64,
    pub z: i64,
}

GabrielePicco avatar May 26 '24 08:05 GabrielePicco