.PHONY: all
all: build
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clean:
@rm -rf target dist tmp .cache
@find . -type f -name "*.DS_Store" -ls -delete
@git fetch --prune
@git gc --prune=now --aggressive
fmt:
cargo fmt --all
cargo clippy --all-targets --all-features
build:
cargo build
release:
cargo build --release --locked
package:
cargo package --locked --allow-dirty
test:
cargo test --all
test-verbose:
cargo test --all --verbose
coverage:
@cargo install cargo-llvm-cov
@cargo llvm-cov --workspace --lcov --output-path lcov.info --quiet
@cargo llvm-cov report
run:
cargo run --release