Event sourcing.rs
It is an opinionated library used to achieve cqrs/es in Rust.
A set of example snippets could be found in the example
folder.
Install
Event Sourcing RS uses under the hood sqlx
.
# Cargo.toml
[]
# postgres database
= { = "0.12", = ["postgres"] }
= { = "0.6", = ["postgres", "runtime-tokio-native-tls", "uuid", "json", "chrono"] }
Tracing
A tracing span is produced every time a projector is used or a policy is applied to a given event.
Run examples, tests and linting
Start the docker-compose stack
docker compose run --service-ports web bash
Run tests.
cargo make test
Run linters.
cargo make clippy