Skip to content

feat(hermes): Roll Charon rust toolchain in Cargo.toml automatically#3172

Merged
joshlf merged 1 commit intomainfrom
roll-charon-rust-toolchain-10111134362258288229
Mar 30, 2026
Merged

feat(hermes): Roll Charon rust toolchain in Cargo.toml automatically#3172
joshlf merged 1 commit intomainfrom
roll-charon-rust-toolchain-10111134362258288229

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

Modify roll-pinned-prebuilts.py to automatically calculate and inject the charon_rust_toolchain required by Charon.


PR created automatically by Jules for task 10111134362258288229 started by @joshlf

This patch modifies the `roll-pinned-prebuilts.py` script to detect the host platform and hook into the archive extraction phase to extract both the `charon` and `charon-driver` binaries. It executes `charon rustc -- --version` to query the rustc version compiled into Charon. It then parses this version and bumps the date by 1 day to construct the associated rustup `nightly-YYYY-MM-DD` toolchain tag.

The parsed toolchain name is then populated into `package.metadata.build_rs.charon_rust_toolchain` in `Cargo.toml`.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.85%. Comparing base (6cc4539) to head (c06a015).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3172   +/-   ##
=======================================
  Coverage   91.85%   91.85%           
=======================================
  Files          20       20           
  Lines        6067     6067           
=======================================
  Hits         5573     5573           
  Misses        494      494           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshlf joshlf added this pull request to the merge queue Mar 30, 2026
Merged via the queue into main with commit 4c76ddd Mar 30, 2026
111 checks passed
@joshlf joshlf deleted the roll-charon-rust-toolchain-10111134362258288229 branch March 30, 2026 05:38
@joshlf
Copy link
Copy Markdown
Member

joshlf commented Mar 30, 2026

Closes #3165

@google-labs-jules
Copy link
Copy Markdown
Contributor Author

Closes #3165

Acknowledged.

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