Repository navigation
Route Rust toolchain trampolines through soldr - #31
Merged
Merged
Conversation
Replaces zccache's hand-rolled PATH-munging trampolines with calls to soldr, which resolves each tool via \`rustup which\` so the rustup-managed toolchain is always used without per-call environment shaping. Parallel to FastLED/fbuild#54. Nice closing of the loop: soldr already fetches and invokes zccache as its managed RUSTC_WRAPPER. Having zccache itself build through soldr closes the circle. - \`ci/trampoline.py\`: cargo/rustc/rustfmt/clippy_driver exec \`soldr [--no-cache] <subcommand>\` instead of discovering cargo_bin and calling \`ensure_windows_msvc\`. soldr already enforces MSVC on Windows. \`cargo\` passes \`--no-cache\` so soldr's own RUSTC_WRAPPER / managed-zccache path is not inserted — prior bare-cargo semantics preserved. \`_run_cargo_bin\` (run_zccache, run_zccache_daemon, run_zccache_fingerprint, check_on_stop) also routes through soldr. \`ci.env.activate()\` is still called first so repo-local \`.rustup\` / \`.cargo\` layouts still win — soldr's \`rustup which\` honors those env vars. - \`_cargo\` / \`_rustc\` / \`_rustfmt\`: bash trampolines preserve the repo-local RUSTUP_HOME / CARGO_HOME detection (so vendored toolchain layouts still override the user-global location) and then \`exec uv run soldr [--no-cache] <subcommand>\`. The hand-rolled cargo_bin probe is removed. - \`ci/hooks/tool_guard.py\`: accepts \`soldr ...\` as a valid top-level invocation alongside the \`./_cargo\` / \`./_rustc\` / \`./_rustfmt\` trampolines. \`uv run cargo\` remains blocked, but the message now points at either \`./_cargo\` or \`soldr cargo\`. - \`pyproject.toml\`: pulls \`soldr>=0.7.0\` as a dev dependency and bumps \`requires-python\` from 3.9 to 3.10 (soldr wheels require 3.10+). - Docs: \`CLAUDE.md\` and \`CODEX.md\` list \`soldr <tool>\` as an approved form and explain the \`--no-cache\` preservation of previous semantics. Closes #30 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Apr 19, 2026
Eliminate _cargo/_rustc/_rustfmt trampolines in favor of soldr (blocked by circular zccache dep)
#37
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces zccache's hand-rolled PATH-munging trampolines with calls to soldr v0.7.0. soldr resolves each toolchain binary via `rustup which`, so the rustup-managed toolchain is always used without per-call environment shaping. Parallel to the FastLED/fbuild migration. Closes #30.
Nice closing of the loop: soldr already fetches and invokes zccache as its managed `RUSTC_WRAPPER`. Having zccache itself build through soldr closes the circle.
Changes
Verification
Risk / rollback
Minimal — soldr's `rustup which` resolver mirrors what the hand-rolled trampolines already did. Revert is a one-commit rollback.
Closes #30