The event sourcing paradigm for Rust
event-sauce
- the main event sourcing crateevent-sauce-derive
- derives for easier implementationevent-sauce-storage-sqlx
- sqlx storage backend interface for event-sauce.
- Install rustup
- Install rustfmt with
rustup component add rustfmt
- Install the nightly toolchain with
rustup toolchain add nightly
- Install
cargo-readme
- Install
linkchecker
withpip install linkchecker
To run integration tests, Postgres must be running:
docker-compose up -d
You can connect to it at postgres://sauce:sauce@localhost:5432/sauce
To emulate a full CI build, run:
./build.sh
Other useful commands:
cargo build
- build the cratecargo doc
- generate documentationcargo test --lib
orcargo test --doc
- run lib or doc tests respectively, does not require Postgres servercargo test -- --test-threads=1
- run all tests (requires local Postgres server to be running).test-threads=1
is required to prevent database race conditions.