Skip to content

Fix hax compilation of crates relying on classification traits#1312

Merged
jschneider-bensch merged 3 commits intomainfrom
fix-hax-extraction-cfg
Feb 24, 2026
Merged

Fix hax compilation of crates relying on classification traits#1312
jschneider-bensch merged 3 commits intomainfrom
fix-hax-extraction-cfg

Conversation

@maximebuyse
Copy link
Contributor

@maximebuyse maximebuyse commented Feb 4, 2026

The fix is to use hax_lib::exclude instead of cfg(not(hax)) to exclude the unsupported items from hax extraction, without breaking compilation under the hax cfg.

This PR replaces #1263

[skip changelog]

@maximebuyse maximebuyse force-pushed the fix-hax-extraction-cfg branch from 0a7e61f to ed13c30 Compare February 4, 2026 15:18
@maximebuyse maximebuyse marked this pull request as ready for review February 4, 2026 15:52
@maximebuyse maximebuyse requested a review from a team as a code owner February 4, 2026 15:52
Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

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

lgtm. @jschneider-bensch do we have other crates where we should fix this? Also, should we add a dummy crate (or get #1259 in) to have a test in the repo to make sure we don't break this again?

@jschneider-bensch
Copy link
Collaborator

do we have other crates where we should fix this? Also, should we add a dummy crate (or get #1259 in) to have a test in the repo to make sure we don't break this again?

It is worth checking to avoid dependency trouble in the future, for sure. We should get #1259 as well.

cfm added a commit to cfm/hpke-rs that referenced this pull request Feb 20, 2026
cfm added a commit to cfm/securedrop-protocol that referenced this pull request Feb 23, 2026
@jschneider-bensch jschneider-bensch added this pull request to the merge queue Feb 24, 2026
Merged via the queue into main with commit 34929c1 Feb 24, 2026
108 checks passed
@jschneider-bensch jschneider-bensch deleted the fix-hax-extraction-cfg branch February 24, 2026 10:11
cfm added a commit to cfm/securedrop-protocol that referenced this pull request Feb 27, 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.

3 participants