| 1 |
# shop developer recipes |
| 2 |
|
| 3 |
# Build every crate. |
| 4 |
build: |
| 5 |
cargo build --workspace --all-targets |
| 6 |
|
| 7 |
# Format, lint, deny. |
| 8 |
check: |
| 9 |
cargo fmt --all -- --check |
| 10 |
cargo clippy --workspace --all-targets -- -D warnings |
| 11 |
cargo deny check |
| 12 |
|
| 13 |
# Run the perf harness against the machine baseline. Baseline path: |
| 14 |
# _private/docs/shop/bench-baselines/<hostname>-latest.json |
| 15 |
# Gates fail with nonzero exit — do not merge on breach. |
| 16 |
bench baseline="_private/docs/shop/bench-baselines/latest.json": |
| 17 |
cargo run --profile profiling -p shop-bench -- run --baseline {{baseline}} |
| 18 |
|
| 19 |
# Capture a fresh baseline. Overwrites the target path. |
| 20 |
bench-save out="_private/docs/shop/bench-baselines/latest.json": |
| 21 |
cargo run --profile profiling -p shop-bench -- save --out {{out}} |
| 22 |
|
| 23 |
# List registered workloads. |
| 24 |
bench-list: |
| 25 |
cargo run -p shop-bench -- list |
| 26 |
|