Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow opaque enums #743

Merged
merged 4 commits into from
Dec 10, 2024
Merged

Conversation

emarteca
Copy link
Contributor

@emarteca emarteca commented Dec 8, 2024

Adding support for marking enums as diplomat::opaque.

Most of the changes are creating a general OpaqueType structure instead of using OpaqueStruct -- there was nothing specific to structs in the OpaqueStruct implementation. Also moved this new type to a new file since I don't think it logically fits in the structs module anymore.
Also added some tests.

#740

@emarteca emarteca marked this pull request as ready for review December 8, 2024 04:01
@Manishearth
Copy link
Contributor

merge conflicts, but then feel free to merge once CI is green

@emarteca emarteca merged commit f5384d4 into rust-diplomat:main Dec 10, 2024
20 checks passed
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