regula-macros 0.1.0

Procedural macros for REGULA framework
Documentation

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>,
}