.DEFAULT_GOAL := help
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-24s\033[0m %s\n", $$1, $$2}'
.PHONY: lint
lint: format clippy taplo typos
.PHONY: format
format:
cargo +nightly fmt --all
.PHONY: format-check
format-check:
cargo +nightly fmt --all --check
.PHONY: clippy
clippy:
cargo clippy --all-targets -- -D warnings
.PHONY: taplo
taplo:
taplo fmt --check
.PHONY: typos
typos:
typos
.PHONY: test
test:
cargo test
.PHONY: install
install:
cargo install --path . --locked