Skip to content

Building Testing and Integration

Andrew Paolucci edited this page Nov 28, 2026 · 2 revisions

Building, Testing & Downstream Integration

1. Consuming guap-kit from *2rust Workspaces

All GUAP suites reference guap-kit crates via relative sibling workspace paths in Cargo.toml:

[workspace.dependencies]
guap-table = { path = "../guap-kit/crates/guap-table" }
guap-export = { path = "../guap-kit/crates/guap-export" }
guap-gui-win32 = { path = "../guap-kit/crates/guap-gui-win32" } # or default-features = false in non-GUI/test crates
guap-gui-iced = { path = "../guap-kit/crates/guap-gui-iced" }
guap-mcp = { path = "../guap-kit/crates/guap-mcp" }

Keep sibling repositories checked out under a shared parent directory (GUAP/guap-kit, GUAP/forensics2rust, GUAP/net2rust, etc.) so cargo resolves paths without network access.


2. Building & Verification Commands

Requires Rust 1.89+ (edition = "2024"):

# Formatting & workspace type-check (offline)
cargo fmt --all -- --check
cargo check --workspace --offline
cargo check -p guap-gui-win32 --no-default-features --offline

# Workspace tests (non-Win32-manifest crates + headless Win32GridState)
cargo test --workspace --exclude guap-gui-win32 --offline
cargo test -p guap-gui-win32 --no-default-features --lib --offline

# Zero-warning lint gate
cargo clippy --workspace --all-targets --offline -- -D warnings

3. GitHub Actions CI, CodeQL & Policy G10 Releases

  • .github/workflows/ci.yml: Cross-platform CI (ubuntu-latest, windows-latest, macos-latest) running cargo fmt --check, cargo clippy -- -D warnings, cargo test --workspace (Linux/macOS exclude native Win32 host; guap-gui-win32 --no-default-features --lib tested headlessly), and cargo-deny (advisories bans licenses sources).
  • .github/workflows/codeql.yml: Automated GitHub CodeQL static security scanning covering Rust source code and GitHub Actions workflows on pushes, pull requests, and weekly schedules.
  • .github/workflows/release.yml: Follows GUAP Policy G10 (YYYY.MM.DD-<h4 > UTC date + 4-character lowercase commit SHA Git tags; Cargo SemVer YYYY.M.D+<h4 >) with protected release-approval environments and verifiable checksums/SBOMs.