Registry / other / cqrs-es

cqrs-es

JSON →
library0.5.0rscratesunverified

A lightweight, opinionated CQRS and event sourcing framework for Rust.

# Cargo.toml [dependencies] cqrs-es = "0.5.0"
INSTALL
IMPORT
SIG · CQRS-ES
C
cqrs-es
otherrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Aggregate
use cqrs_es::Aggregate;

Defines a minimal aggregate using the CQRS-ES framework.

use cqrs_es::Aggregate; struct MyAggregate; impl Aggregate for MyAggregate { type Command = (); type Event = (); type Error = (); type Services = (); fn aggregate_type() -> String { "my_aggregate".to_string() } fn handle(&self, _command: Self::Command, _services: &Self::Services) -> Result<Vec<Self::Event>, Self::Error> { Ok(vec![]) } fn apply(&mut self, _event: Self::Event) {} }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Meta
1
Resources
cqrs-es — cargo add cqrs-es · libregistry