.DEFAULT_GOAL := build

.PHONY: build
build: target/doc
	cargo build

target/doc: Cargo.*
	cargo doc

.PHONY: lint
lint:
	cargo +nightly clippy -- -Wclippy::pedantic

.PHONY: test
test:
	cargo test

README.md:
	cargo readme > $@

.PHONY: publish
publish: README.md
	cargo publish

