Skip to content

feat(container): add Rust language ecosystem support#2

Merged
matthew-on-git merged 3 commits intomainfrom
feat/rust-support
Mar 4, 2026
Merged

feat(container): add Rust language ecosystem support#2
matthew-on-git merged 3 commits intomainfrom
feat/rust-support

Conversation

@matthew-on-git
Copy link
Contributor

Summary

  • Add Rust as the 8th supported language in the dev-toolchain container
  • New rust:1-slim-bookworm builder stage with cargo-binstall, cargo-audit, cargo-deny
  • Full Rust toolchain (rustup + cargo + rustc + clippy + rustfmt) COPY'd to runtime
  • Makefile targets: _lint (clippy), _format/_fix (rustfmt), _test (cargo test), _security (cargo-audit + cargo-deny), _docs (version report), _init (scaffold clippy.toml, rustfmt.toml, deny.toml)
  • Verify-only install script (install-rust.sh) and test script (test-rust.sh)

Test plan

  • make build succeeds (container builds with Rust toolchain)
  • make test passes (test-rust.sh validates all tools on PATH)
  • Create test Rust project with rust in .devrail.yml, run make check
  • Verify make fix applies rustfmt formatting
  • Verify make init scaffolds clippy.toml, rustfmt.toml, deny.toml

🤖 Generated with Claude Code

matthew-on-git and others added 3 commits March 4, 2026 13:07
Add Rust as the 8th supported language in dev-toolchain:
- Dockerfile: rust:1-slim-bookworm builder stage with cargo-binstall,
  cargo-audit, cargo-deny; COPY full toolchain to runtime
- Makefile: HAS_RUST detection + clippy, rustfmt, cargo-audit,
  cargo-deny, cargo test across _lint, _format, _fix, _test,
  _security, _docs, _init targets
- scripts/install-rust.sh: verify-only (tools COPY'd from builder)
- tests/test-rust.sh: validate all Rust tools on PATH
- STABILITY.md: update language count to 8

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a seventh critical rule to all agent shim files: never suppress
failing checks. Fix the root cause instead of adding blanket
suppressions, commenting out code, or disabling rules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The rust:1-slim-bookworm image does not ship curl. Add apt-get install
for curl and ca-certificates so cargo-binstall can be downloaded.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@matthew-on-git matthew-on-git merged commit 504da08 into main Mar 4, 2026
3 checks passed
@matthew-on-git matthew-on-git deleted the feat/rust-support branch March 4, 2026 20:57
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.

1 participant