sourcerer-derive
Procedural macros for the sourcerer event-sourcing framework.
Currently it provides a single derive macro:
#[derive(Event)]
Implements the sourcerer::Event trait for enums and supports the #[event(...)] helper attribute.
use ;
use Event;
The generated implementation:
- returns the variant name from
event_type(). - uses the configured
version/source, with per-variant overrides.
Add the macro via the re-exported derive feature on sourcerer, or depend directly:
[]
= "0.1"
Licensed under MIT – see LICENSE.