# Default: show available targets
default:
@just --list
# Build in debug mode
build:
cargo build
# Build in release mode
release:
cargo build --release
# Run all checks: cargo check + clippy + fmt
check: check-clippy check-fmt
# Run clippy check (includes cargo check)
check-clippy:
cargo clippy --all-targets -- -D warnings
# Run formatter check
check-fmt:
rustup run nightly rustfmt --edition 2024 --check $(find src -name '*.rs') bin/relux.rs
# Fix clippy warnings and format code
fix:
cargo clippy --all-targets --fix --allow-dirty --allow-staged -- -D warnings
rustup run nightly rustfmt --edition 2024 $(find src -name '*.rs') bin/relux.rs
# Build tutorial books
books:
mdbook build docs/dsl-tutorial
mdbook build docs/suite-tutorial
mdbook build docs/reference
# Run all tests (unit + e2e)
test: unit e2e
# Run unit tests
unit *ARGS:
cargo test --lib {{ARGS}}
# Run e2e tests (check then run)
e2e *ARGS:
cargo run -- check --manifest tests/Relux.toml {{ARGS}}
cargo run -- run --manifest tests/Relux.toml {{ARGS}}
# Analyze run history
history *ARGS:
cargo run -- history --manifest tests/Relux.toml {{ARGS}}
# Build the IntelliJ plugin
intellij:
cd editors/intellij && gradle buildPlugin --info
# Remove build artifacts
clean:
cargo clean
# Remove e2e test output logs
clean-logs:
rm -rf tests/relux/out/run-*
rm -f tests/relux/out/latest