.PHONY: default buildd buildr build check test clippy checkfmt lint run clean
.PHONY: install doc cic todos
ROOT_DIR := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
default: check
buildd:
cargo build
buildr:
cargo build --release
build: buildr
check:
cargo check --all
test:
cargo test --all
clippy:
cargo clippy --all -- -Dwarnings
checkfmt:
cargo fmt --all -- --check
lint: checkfmt clippy
run:
cargo run
clean:
cargo clean
install:
cargo install --path $(ROOT_DIR)
doc:
cargo doc --all --document-private-items
cic: test lint doc
todos:
rg "(TODO|print(!|ln!)|unwrap\()"