CARGO := cargo

all: clippy test

test:
	@$(CARGO) test -q

clippy:
	@$(CARGO) clippy -q --color=always

coverage:
	@$(CARGO) tarpaulin --out=Html --output-dir /tmp/cov-output && \
		type -p open && cmd=open || type -p xdg-open && cmd=xdg-open; \
		$$cmd /tmp/cov-output/tarpaulin-report.html
