SHELL := /bin/bash
.PHONY: ffmt check test machete all examples
all: ffmt check test examples machete
check:
typos
cargo sort -w
cargo fmt --all
cargo clippy --all-targets --all-features
test:
RUST_BACKTRACE=1 cargo nextest run --all --all-features
RUST_BACKTRACE=1 cargo test --doc --all-features
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo +nightly doc --all-features --no-deps
examples:
RUST_BACKTRACE=1 cargo run --example basic --features prometheus_0_14
machete:
cargo machete
ffmt:
cargo +nightly fmt --all -- --config-path rustfmt.nightly.toml