bolt
bolt copied to clipboard
Add delegate macro to delegate/undelegate components
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,
}