Skip to content

chore: just fmt at root level formats all rust projects (including CI)#32

Closed
matt2e wants to merge 4 commits intomainfrom
matt2e/crate-fmt
Closed

chore: just fmt at root level formats all rust projects (including CI)#32
matt2e wants to merge 4 commits intomainfrom
matt2e/crate-fmt

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Feb 11, 2026

Summary

  • Added fmt command to root justfile that formats all workspace crates
  • Updated staged/justfile fmt commands to format both workspace crates and staged/src-tauri
  • Updated CI to run formatting, clippy, and check for all Rust crates in the monorepo

Context

Previously, formatting, linting, and type-checking were inconsistent across the Rust monorepo:

  • Only staged/src-tauri had formatting commands in its justfile
  • Running just fmt from the staged directory only formatted staged/src-tauri
  • CI only ran formatting, clippy, and check for staged/src-tauri
  • Workspace crates (acp-client, builderbot-actions, summarize) were left unchecked

Changes

Formatting

  • Root justfile: Added fmt command that runs cargo fmt --all to format workspace crates
  • staged/justfile: Updated fmt and fmt-check commands to format both workspace crates and staged/src-tauri
  • CI workflow: Runs cargo fmt --all --check for workspace crates and cargo fmt --check in staged/src-tauri

Linting and Type-Checking

  • CI workflow: Runs cargo clippy --all and cargo check --all for workspace crates, then runs the same commands in staged/src-tauri for the excluded crate

🤖 Generated with Claude Code

@matt2e matt2e changed the title Add formatting support for workspace crates chore: just fmt at root level formats all rust projects (including CI) Feb 11, 2026
wesbillman
wesbillman previously approved these changes Feb 11, 2026
@matt2e matt2e marked this pull request as draft February 11, 2026 21:11
matt2e and others added 4 commits February 11, 2026 16:27
Added a fmt command to the root justfile that runs `cargo fmt --all` to format all workspace crates (acp-client, builderbot-actions, summarize). Previously, only the staged/src-tauri crate had formatting commands in its justfile, leaving the shared crates without a convenient formatting option.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updated the GitHub Actions workflow to format check all Rust projects:
- Runs `cargo fmt --all --check` from the root to format workspace crates (acp-client, builderbot-actions, summarize)
- Runs `cargo fmt --check` in staged/src-tauri for the excluded crate
- Split formatting into a separate step from clippy and check for better clarity

Previously, CI only formatted the staged/src-tauri crate, leaving workspace crates unchecked for formatting issues.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updated staged/justfile fmt and fmt-check commands to format both workspace crates (acp-client, builderbot-actions, summarize) and the excluded staged/src-tauri crate. This ensures running `just fmt` from within the staged directory formats all Rust code in the monorepo, not just the Tauri app.

Also simplified CI to match the justfile approach by running the same command sequence.

Previously, `just fmt` in the staged directory only formatted staged/src-tauri, leaving workspace crates unformatted. Developers would need to run formatting commands from the root directory to format those crates, which was inconsistent and easy to miss.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updated CI workflow to run clippy and check for both workspace crates (acp-client, builderbot-actions, summarize) and the excluded staged/src-tauri crate. This ensures all Rust code in the monorepo is linted and type-checked.

Previously, CI only ran clippy and check for staged/src-tauri, leaving workspace crates unchecked for warnings and errors.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@matt2e matt2e closed this Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants