.PHONY: all ci fmt fmt-check lint test test-release doc doc-check check build clean
all: ci
ci: fmt-check lint test test-release doc-check check
@echo "All CI checks passed!"
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
lint:
cargo clippy --all-features -- -D warnings
test:
cargo test --all-features
test-release:
cargo test --all-features --release
doc:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features
doc-check:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features
check:
cargo check --all-features
build:
cargo build --all-features
build-release:
cargo build --all-features --release
clean:
cargo clean
fix: fmt
cargo clippy --all-features --fix --allow-dirty --allow-staged