.PHONY: all build run test check doc clean release fmt install dev
all: check build test
build:
cargo build --release
run:
cargo run -- $(word 2,$(MAKECMDGOALS))
test:
cargo test --all-features
check:
cargo fmt --all -- --check
cargo clippy -- -D warnings
cargo doc --no-deps --document-private-items
doc:
cargo doc --no-deps --document-private-items --open
clean:
cargo clean
release:
cargo publish
fmt:
cargo fmt --all
install:
cargo install --path . --force
dev:
cargo build
DEFAULT_GOAL: help
%:
@: