.PHONY: build test check doc clean release
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 .
dev:
cargo build
.PHONY: run
DEFAULT_GOAL: help
%:
@: