EXAMPLES := $(addprefix run-,$(basename $(notdir $(wildcard examples/*.rs))))
.PHONY: all bench build check clean clippy codecov doc fmt publish run test upgrade $(EXAMPLES)
all: clean clippy build test doc
check:
cargo fmt --all --check
cargo check --locked --all-targets
cargo check --locked --all-targets --all-features
clippy: check
cargo clippy --locked --all-targets -- -D warnings
cargo clippy --locked --all-targets --all-features -- -D warnings
fmt:
cargo fmt --all
build:
cargo build --locked
cargo build --locked --release
test:
cargo test --locked
cargo test --locked --all-features
cargo test --locked --release
cargo test --locked --release --all-features
run: $(EXAMPLES)
$(EXAMPLES):
cargo run --locked --release --example $(patsubst run-%,%,$@)
bench:
cargo bench --locked --bench sqlite_containers-bench -- --quick
doc:
cargo doc --locked
upgrade:
cargo upgrade -i
cargo update
codecov:
cargo llvm-cov --locked --lcov --output-path target/codecov-output.info
publish:
cargo publish --locked
clean:
cargo clean