.PHONY: help check test build doc clean clippy fmt audit publish
help:
@echo "Available targets:"
@echo " check - Check if the code compiles"
@echo " test - Run tests"
@echo " build - Build the project"
@echo " doc - Build documentation"
@echo " clean - Clean build artifacts"
@echo " clippy - Run clippy linting"
@echo " fmt - Check code formatting"
@echo " fmt-fix - Fix code formatting"
@echo " audit - Run security audit"
@echo " publish - Publish to crates.io"
@echo " install - Install the library locally"
check:
cargo check
test:
cargo test
build:
cargo build
doc:
cargo doc --no-deps --open
clean:
cargo clean
clippy:
cargo clippy -- -D warnings
fmt:
cargo fmt -- --check
fmt-fix:
cargo fmt
audit:
cargo audit
publish:
cargo publish
install:
cargo install --path .
all: check test clippy fmt audit
release: clean check test clippy fmt audit build doc