This commit is contained in:
2024-05-27 19:26:17 +02:00
parent 4a968e5ba5
commit d33f9b3ede
21 changed files with 2313 additions and 906 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
.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 prettier --print-width 80 --prose-wrap always --write
find -name '*.toml' | xargs taplo format
.PHONY: build-static
build-static:
cargo build --target x86_64-unknown-linux-musl --no-default-features --release --workspace