- Install Rust
- Install SQLite3
- Clone or fork this repo and
cd
to it - Use Rust nightly version
rustup override set nightly
- Install Diesel CLI
cargo install diesel_cli --no-default-features --features sqlite
- Setup database
diesel setup
- And then
cargo run
To evaluate code coverage, use Tarpaulin.
- Install Docker
- Use Docker image of Tarpaulin
docker run --security-opt seccomp=unconfined -v "${PWD}:/volume" xd009642/tarpaulin:develop-nightly sh -c "apt-get update && apt-get install --no-install-recommends -y sqlite3 libsqlite3-dev && cargo tarpaulin -v --exclude-files dice-roller/*"