.PHONY: help fmt lint test deny check build clean install-hooks run-hooks bench docs
help:
@echo "Rangebar Development Commands:"
@echo " fmt - Format code with cargo fmt"
@echo " lint - Run clippy linting"
@echo " test - Run tests with cargo nextest"
@echo " deny - Run cargo deny security checks"
@echo " check - Run all quality checks (fmt + test)"
@echo " build - Build in release mode"
@echo " clean - Clean build artifacts"
@echo " bench - Run performance benchmarks"
@echo " bench-baseline - Create performance baseline"
@echo " bench-validate - Validate performance targets (1M ticks < 100ms)"
@echo " bench-compare - Compare current performance with baseline"
@echo " docs - Generate documentation"
@echo " install-hooks - Install pre-commit hooks"
@echo " run-hooks - Manually run pre-commit hooks"
@echo " deps-check - Check for outdated dependencies"
@echo " deps-update - Update dependencies with validation"
@echo " deps-security - Run security audit on dependencies"
@echo " deps-auto - Automated dependency update workflow"
@echo " profile-install - Install profiling tools"
@echo " profile-flamegraph - Generate CPU flamegraph"
@echo " profile-cpu - Run CPU profiling"
@echo " profile-memory - Run memory profiling"
@echo " profile-full - Comprehensive profiling suite"
fmt:
cargo fmt --all
lint:
cargo clippy --all-targets --all-features
test:
cargo nextest run
deny:
cargo deny check
check: fmt test
@echo "✅ Core quality checks passed!"
check-full: fmt lint test deny
@echo "✅ All quality checks passed!"
build:
cargo build --release
clean:
cargo clean
bench:
cargo bench --bench rangebar_bench
bench-baseline:
./scripts/benchmark_runner.sh baseline
bench-validate:
./scripts/benchmark_runner.sh validate
bench-compare:
./scripts/benchmark_runner.sh compare
docs:
cargo doc --open --all-features
install-hooks:
pip install pre-commit
pre-commit install
run-hooks:
pre-commit run --all-files
deps-check:
./scripts/dependency_monitor.sh check
deps-update:
./scripts/dependency_monitor.sh update
deps-security:
./scripts/dependency_monitor.sh security
deps-auto:
./scripts/dependency_monitor.sh auto
profile-install:
./scripts/profiling_tools.sh install
profile-flamegraph:
./scripts/profiling_tools.sh flamegraph
profile-cpu:
./scripts/profiling_tools.sh cpu
profile-memory:
./scripts/profiling_tools.sh memory
profile-full:
./scripts/profiling_tools.sh full
dev: fmt test
@echo "🚀 Development checks complete!"