-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 1001 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (31 loc) · 1001 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.PHONY: check build format audit test doc-check before-git-push deps-check deps-bump deps-bump-dry
deps-check:
@echo "=== Checking for outdated dependencies ==="
@cargo update --dry-run 2>&1 | grep -i "updating\|unchanged\|locking" || echo "All dependencies up to date"
deps-bump:
@echo "=== Bumping dependencies to latest compatible versions ==="
cargo update
@echo "=== Verifying build (main crate) ==="
cargo check --all-features
@echo "=== Verifying build (load-tests) ==="
cargo check --manifest-path load-tests/Cargo.toml --all-features
@echo "=== Running tests ==="
cargo test --features libpq
@echo "Done. Review changes with: git diff Cargo.lock"
deps-bump-dry:
@echo "=== Dry-run: what would be updated ==="
@cargo update --dry-run 2>&1
check:
cargo check
# cargo clippy -- -D warnings
build:
cargo build
format:
cargo fmt
audit:
cargo audit
test:
cargo test
doc-check:
cargo doc --no-deps --all-features
before-git-push: check build format audit test doc-check