.PHONY: check lint coverage build format audit test doc-check examples 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
lint:
cargo clippy --workspace --all-targets --features derive -- -D warnings
cargo clippy --no-default-features --features libpq --all-targets -- -D warnings
cargo clippy --no-default-features --lib -- -D warnings
coverage:
cargo llvm-cov --lib --features derive --summary-only
build:
cargo build
format:
cargo fmt
audit:
cargo audit
test:
cargo test
doc-check:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features
examples:
@for manifest in examples/*/Cargo.toml; do \
echo "=== $$manifest ==="; \
cargo check --manifest-path "$$manifest" --all-targets || exit 1; \
done
before-git-push: check lint build format audit test doc-check examples