Skip to content

add #[difference(export)] attribute to allow pub diff types #35

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

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

knickish
Copy link
Owner

@knickish knickish commented Feb 22, 2025

Wasn't super happy with the solution to #34. This PR adds an expose attribute which defines the derive-created Diff and DiffRef types outside of the const _: () {} block normally used to prevent namespace pollution. Either [difference(expose)] or [difference(expose = "MyDiffName")] can be used to expose the type

@knickish knickish merged commit cd3c5a9 into master Feb 22, 2025
17 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.

1 participant