cacache-rs/justfile

45 lines
1.1 KiB
Makefile

# List available just recipes
@help:
just -l
# Run tests on all runtimes with cargo nextest
@test:
echo "----------\nsmol:\n"
cargo nextest run
echo "\n----------\ntokio:\n"
cargo nextest run --no-default-features --features tokio-runtime
# Run benchmarks with `cargo bench`
@bench:
echo "----------\nsmol:\n"
cargo bench
echo "\n----------\ntokio:\n"
cargo bench --no-default-features --features tokio-runtime
# Run benchmarks with `cargo criterion`
@criterion:
echo "----------\nsmol:\n"
cargo criterion
echo "\n----------\ntokio:\n"
cargo criterion --no-default-features --features tokio-runtime
# Generate a changelog with git-cliff
changelog TAG:
git-cliff --prepend CHANGELOG.md -u --tag {{TAG}}
# Prepare a release
release *args:
cargo release --workspace {{args}}
# Install workspace tools
@install-tools:
cargo install cargo-nextest
cargo install cargo-release
cargo install git-cliff
cargo install cargo-criterion
# Lint and automatically fix what we can fix
@lint:
cargo clippy --fix --allow-dirty --allow-staged
cargo fmt