Files
WAFER/Justfile
T
ok 8bfdd966ea Add optimization docs, workspace lints, and pre-commit hooks
- Add docs/OPTIMIZATIONS.md: catalog of 14 optimization passes with
  status tracking and implementation roadmap
- Configure workspace-level clippy and rustc lints in Cargo.toml
- Add clippy.toml and deny.toml for clippy thresholds and dependency
  auditing (licenses, advisories, bans)
- Set up pre-commit hook: cargo fmt, dprint, clippy, cargo deny,
  cargo machete
- Update Justfile with deny/machete targets, dprint in fmt checks
2026-03-30 23:01:35 +02:00

56 lines
900 B
Makefile

default:
just --list
# Build everything
build:
cargo build --workspace
# Run all tests
test:
cargo test --workspace
# Run Forth 2012 compliance tests
compliance:
cargo test --test compliance -- --nocapture
# Run clippy lints
clippy:
cargo clippy --workspace -- -D warnings
# Check formatting (Rust + Markdown)
fmt:
cargo fmt --all --check
dprint check
# Format code (Rust + Markdown)
fmt-fix:
cargo fmt --all
dprint fmt
# Run the REPL
repl:
cargo run -p wafer
# Run a Forth file
run file:
cargo run -p wafer -- {{file}}
# Run benchmarks
bench:
cargo bench --workspace
# Check dependency licenses and advisories
deny:
cargo deny check
# Detect unused dependencies
machete:
cargo machete --skip-target-dir
# Full CI check (what CI runs)
ci: fmt clippy deny test
# Check compilation without running
check:
cargo check --workspace