zement 0.1.0

Enterprise-grade, Rust-native CQRS and Event Sourcing framework
Documentation
  • Coverage
  • 100%
    1 out of 1 items documented1 out of 1 items with examples
  • Size
  • Source code size: 16.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 20.9 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • marceloboeira

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 crates.io
zement-core Domain traits and SPIs crates.io
zement-memory In-memory EventStore crates.io
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 zement::core::aggregate::{Aggregate, AggregateError};
use zement::core::command::Command;
use zement::core::event::Event;
use zement::memory::store::InMemoryEventStore;
use zement::core::spi::event_store::EventStore;

Architecture

See docs/architecture/ for Architecture Decision Records:

Running Examples

cargo run -p bank-account-example
cargo run -p payment-transfer-example

License

MIT