.PHONY: all
all:: fmt clippy test
.PHONY: check-fmt
check-fmt:
cargo fmt -- --config imports_granularity=Item --config format_code_in_doc_comments=true --check
.PHONY: fmt
fmt:
cargo fmt -- --config imports_granularity=Item --config format_code_in_doc_comments=true
.PHONY: clippy
clippy:
cargo clippy --all-features --all-targets
.PHONY: test
test:
cargo nextest run --all-features
cargo test --all-features --doc
.PHONY: doc
doc:
RUSTDOCFLAGS="-Dwarnings --cfg=doc_cfg -Zunstable-options --generate-link-to-definition" RUSTC_BOOTSTRAP=1 cargo doc --all-features --no-deps
.PHONY: doc-open
doc-open:
RUSTDOCFLAGS="--cfg=doc_cfg -Zunstable-options --generate-link-to-definition" RUSTC_BOOTSTRAP=1 cargo doc --all-features --no-deps --open
.PHONY: clean
clean:
cargo clean
.PHONY: clean-all
clean-all: clean
git clean -dXf
.PHONY: help
help:
@echo "Available targets:"
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)