.PHONY: build test run dev fmt lint install clean
build:
cargo build
build-release:
cargo build --release
test:
cargo test --all-features --workspace
run:
cargo run --bin rustrland -- --debug --foreground
dev:
cargo watch -x 'run --bin rustrland -- --debug --foreground'
fmt:
cargo fmt
lint:
cargo clippy --lib --bins -- -D warnings
install:
cargo install --path .
clean:
cargo clean
check:
cargo check
run-example:
cargo run --bin rustrland -- --config examples/rustrland.toml --debug --foreground
ci: fmt-check lint test build-release
fmt-check:
cargo fmt --check
help:
@echo "Available targets:"
@echo " build - Build the project"
@echo " build-release - Build release version"
@echo " test - Run tests"
@echo " run - Run in development mode"
@echo " dev - Development with auto-reload"
@echo " fmt - Format code"
@echo " lint - Lint code"
@echo " install - Install locally"
@echo " clean - Clean build artifacts"
@echo " check - Check compilation"
@echo " run-example - Run with example config"
@echo " ci - Full CI check"