The event sourcing paradigm for Rust
event-sauce- the main event sourcing crate
event-sauce-derive- derives for easier implementation
event-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
linkcheckerwithpip install linkchecker
To run integration tests, Postgres must be running:
docker-compose up -dYou can connect to it at postgres://sauce:sauce@localhost:5432/sauce
To emulate a full CI build, run:
./build.shOther useful commands:
cargo build- build the cratecargo doc- generate documentationcargo test --liborcargo 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=1is required to prevent database race conditions.