batpak 0.8.2

Event sourcing with causal graphs and caller-defined gates. Sync API, no async runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Compile-fail: `#[derive(EventSourced)]` with `input =` but no event-binding attrs.
//!
//! A projection with zero bindings has nothing to dispatch on; the derive must
//! reject it up front rather than producing a dispatcher that routes to nothing.

use batpak::prelude::*;

#[derive(Default, serde::Serialize, serde::Deserialize, EventSourced)]
#[batpak(input = JsonValueInput)]
struct State {
    value: i64,
}

fn main() {}