Skip to content

Conversation

@W95Psp
Copy link
Member

@W95Psp W95Psp commented Sep 29, 2025

Fixes #1720

This PR:

  • splits the type Options in two, so that the options send from cargo-hax to our custom rustc driver are narrower
  • We now send ExporterOptions instead of full Options. Rustc cache is invalidated whenever those options change. Thus, now changing an engine-only option will not cause rustc to recompile the crate being extracted.

@W95Psp W95Psp requested a review from a team as a code owner September 29, 2025 08:35
@W95Psp W95Psp changed the title Cargo hax fix caching Improve rustc caching with cargo-hax Sep 29, 2025
@W95Psp W95Psp force-pushed the cargo-hax-fix-caching branch from a146ba1 to 141f778 Compare September 29, 2025 08:38
@W95Psp W95Psp requested review from maximebuyse and removed request for clementblaudeau September 29, 2025 08:41
Copy link
Contributor

@maximebuyse maximebuyse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good (I just added one question).

@W95Psp W95Psp enabled auto-merge September 29, 2025 10:05
@W95Psp W95Psp added this pull request to the merge queue Sep 29, 2025
Merged via the queue into main with commit 556e871 Sep 29, 2025
17 of 18 checks passed
@W95Psp W95Psp deleted the cargo-hax-fix-caching branch September 29, 2025 11:03
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.

Improve caching between rustc and cargo hax

2 participants