Files
clippy-lints/Makefile

26 lines
578 B
Makefile
Raw Permalink Normal View History

2024-11-09 20:19:23 +01:00
.PHONY: check
check: | fmt lint test
.PHONY: docs
docs:
cargo watch -- cargo doc
.PHONY: test
test:
cargo hack --feature-powerset --no-dev-deps check
cargo test --workspace --color=always
.PHONY: lint
lint:
cargo clippy --workspace --tests --color=always
.PHONY: fmt
fmt:
cargo fmt
find -name '*.md' | xargs --no-run-if-empty prettier --print-width 80 --prose-wrap always --write
find -name '*.toml' | xargs --no-run-if-empty taplo format
.PHONY: build-static
build-static:
cargo build --target x86_64-unknown-linux-musl --no-default-features --release --workspace