Crate regula_macros

Crate regula_macros 

Source
Expand description

REGULA Macros - Procedural macros for the REGULA framework.

This crate provides the #[derive(GraphState)] macro for automatically implementing the GraphState trait on structs.

§Usage

use regula_macros::GraphState;
use serde::{Serialize, Deserialize};

#[derive(Clone, GraphState, Serialize, Deserialize)]
struct MyState {
    messages: Vec<String>,
     
    #[reducer(append)]
    history: Vec<String>,
}

Derive Macros§

GraphState
Derive macro for implementing GraphState on structs.