all: test lint doc

basic_check: fmt lint test doc

fmt:
	cargo fmt

lint:
	cargo fmt
	cargo clippy --no-deps --all-targets -- -D warnings

test:
	cargo test

doc:
	RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items

unused_dep:
	cargo machete

clean:
	cargo clean

.PHONY: all basic_check fmt lint test doc unused_dep clean
