evento-macro 1.3.0

A collection of libraries and tools that help you build DDD, CQRS, and event sourcing.
Documentation

Evento Macros

This crate provides procedural macros for the Evento event sourcing framework. These macros simplify the implementation of aggregators and event handlers by generating boilerplate code automatically.

Macros

  • [aggregator] - Implements the [Aggregator] trait for structs with event handler methods
  • [handler] - Creates event handler functions for use with subscriptions
  • [AggregatorName] - Derives the [AggregatorName] trait for event types

Usage

This crate is typically used through the main evento crate with the macro feature enabled:

[dependencies]
evento = { version = "1.0", features = ["macro"] }

Examples

See the individual macro documentation for detailed usage examples.