Skip to content

Allow pub access to ReprType fields#1161

Merged
emilio merged 1 commit intomozilla:mainfrom
jakelishman:pub-reprtype
Apr 28, 2026
Merged

Allow pub access to ReprType fields#1161
emilio merged 1 commit intomozilla:mainfrom
jakelishman:pub-reprtype

Conversation

@jakelishman
Copy link
Copy Markdown
Contributor

The unstable_ir feature gives access to almost all the internals of the representation, but from outside the cbindgen crate there is no way to (safely) access the fields of ReprType. This posed a problem for writing custom exporters that needed to know how particular Enums are represented in the ABI.

The `unstable_ir` feature gives access to almost all the internals of
the representation, but from outside the `cbindgen` crate there is no
way to (safely) access the fields of `ReprType`.  This posed a problem
for writing custom exporters that needed to know how particular `Enum`s
are represented in the ABI.
@emilio emilio added this pull request to the merge queue Apr 28, 2026
Merged via the queue into mozilla:main with commit b68b027 Apr 28, 2026
4 checks passed
@jakelishman jakelishman deleted the pub-reprtype branch April 28, 2026 14:58
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