1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# rig-resources task runner.
#
# Install just: https://github.com/casey/just
# brew install just
#
# Run `just` with no args to see the recipe list.
default:
@just --list
# Build all targets with default features.
build:
cargo build --all-targets
# Run formatter check + clippy + tests across release-relevant feature sets.
check: fmt clippy test doc
fmt:
cargo fmt --all -- --check
clippy:
cargo clippy --all-targets -- -D warnings
cargo clippy --all-targets --features security -- -D warnings
cargo clippy --all-targets --features graph -- -D warnings
cargo clippy --all-targets --features full -- -D warnings
test:
cargo test --all-targets
cargo test --all-targets --features security
cargo test --all-targets --features graph
cargo test --all-targets --features full
doc:
RUSTDOCFLAGS="-D warnings -D rustdoc::broken_intra_doc_links" cargo doc --all-features --no-deps
# Validate the package as it would be uploaded to crates.io.
publish-dry-run:
cargo publish --dry-run
# Preview what release-plz would update in a disposable copy.
# Install: `cargo install release-plz`.
release-preview:
#!/usr/bin/env bash
set -euo pipefail
tmp="$(mktemp -d)"
trap 'rm -rf "${tmp}"' EXIT
rsync -a --exclude target --exclude .git ./ "${tmp}/"
cd "${tmp}"
git init -q
git config user.email "release-preview@example.invalid"
git config user.name "Release Preview"
git add .
git commit -q -m "feat: prepare rig-resources release preview"
release-plz update --repo-url https://github.com/ForeverAngry/rig-resources
# Open a release PR locally (writes to a branch). Same thing CI does on push.
release-pr:
release-plz release-pr
# Inspect the next semver bump release-plz would compute from current commits.
next-version:
@just release-preview 2>&1 | grep -E "(next version|already up-to-date|rig-resources)" || true