all: test check_all
check_all: lint fmt doc unused_dep typos
test:
cargo test
cargo +nightly test --features backtrace
bench:
cargo bench --features bench
fmt:
cargo +nightly fmt
fix:
cargo fix --allow-staged
doc:
RUSTDOCFLAGS="-D warnings" cargo +nightly doc --document-private-items --all --all-features --no-deps
check_missing_doc:
RUSTDOCFLAGS="-W missing_docs" cargo +nightly doc --all --all-features --no-deps
lint:
cargo +nightly fmt
cargo +nightly clippy --no-deps --all-targets -- -D warnings
RUSTFLAGS=-Wunused-crate-dependencies cargo +nightly clippy --no-deps --lib -- -D warnings
unused_dep:
cargo machete
typos:
typos --write-changes
clean:
cargo clean
.PHONY: test fmt lint clean doc guide