-
Notifications
You must be signed in to change notification settings - Fork 492
Expand file tree
/
Copy pathjustfile
More file actions
24 lines (20 loc) · 787 Bytes
/
justfile
File metadata and controls
24 lines (20 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
fmt:
cargo +nightly fmt --all
check:
cargo clippy --all-targets --all-features -- -D warnings
fix: fmt
git add ./
cargo clippy --fix --all-targets --all-features --allow-staged
test:
cargo test --all-features
if command -v jq > /dev/null 2>&1; then \
FEATURES=$(cargo metadata --no-deps --format-version 1 \
| jq -r '[.packages[] | select(.name == "rmcp") | .features | keys[] \
| select(startswith("__") | not) \
| select(. != "local")] | join(",")') && \
cargo test -p rmcp --features "$FEATURES"; \
else \
echo "warning: jq not found, skipping non-local feature tests"; \
fi
cov:
cargo llvm-cov --lcov --output-path {{justfile_directory()}}/target/llvm-cov-target/coverage.lcov