.PHONY: ci fmt clippy test doc audit clean
ci: fmt clippy test doc
@echo "\nโ
All CI checks passed!"
fmt:
@echo "\n๐ Checking formatting..."
cargo fmt -- --check
fmt-fix:
@echo "\n๐ง Applying formatting..."
cargo fmt
clippy:
@echo "\n๐ Running clippy..."
cargo clippy -- -D warnings
clippy-pedantic:
@echo "\n๐ Running clippy (pedantic)..."
cargo clippy -- -W clippy::pedantic
test:
@echo "\n๐งช Running tests..."
cargo test
test-doc:
@echo "\n๐ Running doc tests..."
cargo test --doc
test-integration:
@echo "\n๐ฌ Running integration tests..."
cargo test --release -- --ignored
doc:
@echo "\n๐ Building documentation..."
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
audit:
@echo "\n๐ Running security audit..."
cargo audit
ci-full: ci audit
@echo "\nโ
All CI + security checks passed!"
build:
@echo "\n๐จ Building release..."
cargo build --release
clean:
@echo "\n๐งน Cleaning..."
cargo clean
check:
@echo "\nโก Quick check..."
cargo check
pre-push: fmt clippy test
@echo "\nโ
Ready to push!"