Expand description
Proc macros for the batpak event-sourcing runtime.
This crate is pulled in transitively via batpak. Users never add it
to their own Cargo.toml — the derives are already in scope via
use batpak::EventPayload; or use batpak::EventSourced;.
Attribute Macros§
- operation
#[operation(...)]— generate a syncbat operation descriptor + optional registration fns. Re-exported assyncbat::operation; users never name this crate. (Moved here from the formersyncbat-macroscrate — the family has one proc-macro crate.)
Derive Macros§
- AllVariants
- Derives a
pub const ALL: [Self; N]slice listing every variant of a fieldless enum, in declaration order. Seecrates/macros/src/all_variants.rs. - Error
- Derives
core::fmt::Display+std::error::Errorfor an error enum from a per-variant#[error("...")]format literal — a thiserror-lite. - Event
Payload - Derives
batpak::event::EventPayloadfor a named-field struct. - Event
Sourced - Derives
batpak::event::EventSourcedfor a named-field struct. - Multi
Event Reactor - Derives
batpak::event::MultiReactive<Input>for a named-field struct, for use withStore::react_loop_multi(JSON) orStore::react_loop_multi_raw(msgpack).