.PHONY: init bench build check clean debug doc fix fmt lint purge run test test-cov build: cargo build --release --all-features init: cargo binstall cargo-nextest -y check: cargo check --all-features --all-targets debug: tmp/yc-companies.csv RUST_LOG=keyhunter=debug RUST_BACKTRACE=1 cargo run --features report --example yc_startups doc: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --all-features --document-private-items fmt: taplo format cargo fmt lint: taplo lint cargo fmt --check cargo clippy --all-targets --all-features -- -D warnings fix: cargo clippy --fix --allow-staged --no-deps --all-targets --all-features cargo fmt taplo fmt git status test: cargo nextest run --all-features cargo test --doc --all-features bash ./tasks/kill_8080.sh # run tests and collect coverage. Generates tarpaulin-report.html test-cov: RUST_BACKTRACE=1 cargo llvm-cov --all-features target/coverage/%: src tests Cargo.toml rust-toolchain.toml mkdir -p target/coverage RUST_BACKTRACE=1 cargo llvm-cov --all-features --$* --output-dir target/coverage bash ./tasks/kill_8080.sh bench: cargo codspeed build cargo codspeed run clean: rm -rf tmp tarpaulin-report.html target/sites purge: make clean cargo clean # ============================================================================== .PHONY: yc yc-companies.csv yc: tmp/yc-companies.csv RUST_BACKTRACE=1 cargo run --release --all-features --example yc_startups yc-companies.csv: tmp/yc-companies.csv tmp/yc-companies.csv: node ./tasks/get-yc-companies.js src/config/gitleaks.toml: node ./tasks/update-gitleaks.js