.PHONY: help build test check clippy fmt doc examples clean publish
.DEFAULT_GOAL := help
help:
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
build:
cargo build --all-targets
release:
cargo build --release --all-targets
test:
cargo test --all-targets
check:
cargo check --all-targets
clippy:
cargo clippy --all-targets -- -D warnings
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
doc:
cargo doc --no-deps --open
doc-private:
cargo doc --no-deps --document-private-items --open
examples:
cargo build --examples
run-echo:
cargo run --example echo
run-panic:
cargo run --example panic_recovery
run-calc:
cargo run --example safe_computation
clean:
cargo clean
verify: fmt-check clippy test
publish-dry:
cargo publish --dry-run
publish:
cargo publish
watch:
cargo watch -x check -x test
bench:
cargo bench
bloat:
cargo bloat --release
tree:
cargo tree
outdated:
cargo outdated
audit:
cargo audit