.PHONY: help \
upgrade \
lint \
lint-audit \
audit-fix \
test \
coverage \
check \
find-msrv \
verify-msrv \
clean \
prepare \
build \
build-no-audit \
doc \
doc-public \
watch-doc \
doc-deps
.DEFAULT_GOAL=help
APP_NAME="API tools"
CARGO=cargo
help: Makefile
@echo
@echo "Choose a command run in "$(APP_NAME)":"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo
upgrade:
$(CARGO) upgrade
$(CARGO) update
upgrade-force:
$(CARGO) upgrade --incompatible
$(CARGO) update
lint:
$(CARGO) fmt
$(CARGO) clippy --all-features -- -D warnings
lint-audit: lint
$(CARGO) audit
audit-fix:
$(CARGO) audit fix
test:
$(CARGO) test --all-features -- --nocapture
coverage:
$(CARGO) tarpaulin --all-features
check: lint-audit test
find-msrv:
$(CARGO) msrv find
verify-msrv:
$(CARGO) msrv verify
clean:
$(CARGO) clean
prepare: lint test verify-msrv
build: lint-audit test
$(CARGO) build --release
build-no-audit: lint test
$(CARGO) build --release
doc:
$(CARGO) doc --open --no-deps --all-features
doc-public:
$(CARGO) doc --open --document-private-items --no-deps --all-features
watch-doc: doc
$(CARGO) watch -x 'doc --no-deps --all-features'
doc-deps:
$(CARGO) doc --open --document-private-items --all-features