Zement
Enterprise-grade, Rust-native CQRS and Event Sourcing framework.
Overview
Zement provides a strict Hexagonal Architecture (Ports and Adapters) for building
event-sourced systems in Rust. The core has zero infrastructure dependencies —
adapters implement the SPIs defined in zement-core.
Crates
| Crate | Description | Crates.io |
|---|---|---|
zement |
Facade — re-exports everything | |
zement-core |
Domain traits and SPIs | |
zement-memory |
In-memory EventStore | |
zement-postgres |
PostgreSQL EventStore | coming soon |
zement-gateway |
CommandBus interface | coming soon |
zement-testkit |
BDD testing DSL | coming soon |
zement-macros |
Procedural macros | coming soon |
Quick Start
use ;
use Command;
use Event;
use InMemoryEventStore;
use EventStore;
Architecture
See docs/architecture/ for Architecture Decision Records:
Running Examples
License
MIT