.PHONY: build test check format lint clean doc example bench coverage audit
build:
cargo build
build-release:
cargo build --release
test:
cargo test
test-unit:
cargo test --lib
test-integration:
cargo test --test integration_tests
test-lib:
cargo test --test lib_tests
test-verbose:
cargo test -- --nocapture
check:
cargo check
format:
cargo fmt
format-check:
cargo fmt --all -- --check
lint:
cargo clippy --all-targets --all-features
lint-fix:
cargo clippy --all-targets --all-features --fix
clean:
cargo clean
doc:
cargo doc --open
doc-private:
cargo doc --document-private-items --open
example:
cargo run --example basic_usage
bench:
cargo test --bench benchmarks --release bench_ -- --nocapture
coverage:
cargo tarpaulin --out html --output-dir coverage
coverage-lcov:
cargo tarpaulin --out lcov --output-dir coverage
audit:
cargo audit
quality: format-check lint test
package:
cargo package
publish-dry:
cargo publish --dry-run
publish:
cargo publish
build-all:
cargo build --target x86_64-unknown-linux-gnu
cargo build --target x86_64-pc-windows-gnu
cargo build --target x86_64-apple-darwin