.PHONY: check lint loom coverage
.DEFAULT_GOAL := check
check:
cargo fmt --all -- --check
cargo hack clippy --feature-powerset --all-targets --locked -- -D warnings
RUSTDOCFLAGS="-D warnings" cargo doc --all-features --no-deps --locked
cargo hack test --feature-powerset --locked
$(MAKE) lint
loom:
RUSTFLAGS="--cfg loom" LOOM_MAX_PREEMPTIONS=4 CARGO_TARGET_DIR=target/loom cargo test --release --lib --locked loom_models
lint:
cargo fmt --manifest-path lint/Cargo.toml -- --check
cd lint && cargo clippy --all-targets --locked -- -D warnings
cd lint && cargo test --locked
coverage:
rm -rf target/llvm-cov-target
cargo +nightly llvm-cov --all-features --html --open