format: cargo fmt alias fmt := format # Lint AND fix lint: cargo clippy --fix --allow-dirty compile: cargo check # Overall code quality check check: format lint compile test # Finds comments find-comments: rg -n --pcre2 '^\s*//(?![!/])' -g '*.rs' alias cmt := find-comments test: cargo test --quiet # Run test coverage in the terminal. coverage: cargo llvm-cov --workspace # Generate an LCOV report for mccabre's coverage commands. coverage-lcov: cargo llvm-cov --workspace --lcov --output-path lcov.info # Generate a local HTML coverage report. coverage-html: cargo llvm-cov --workspace --html --output-dir coverage_html # Build mdbook documentation docs-build: mdbook build docs/ # Serve documentation locally (opens browser) docs-serve: mdbook serve docs/ --open # Serve documentation without opening browser docs: mdbook serve docs/ # Test mdbook code examples docs-test: mdbook test docs/ alias doc := docs