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
//! Compile-fail: #[derive(EventPayload)] rejects generic payload enums before shape-specific checks.

use batpak::EventPayload;

#[derive(serde::Serialize, serde::Deserialize, EventPayload)]
#[batpak(category = 1, type_id = 1)]
enum GenericEnumPayload<T> {
    Value(T),
}

fn main() {}