Skip to content

Conversation

zeenix
Copy link
Contributor

@zeenix zeenix commented Aug 23, 2025

While I think this is a good change, unfortunately it's a breaking change and hence keeping it in draft for now until the next API break (perhaps 1.0).

@zeenix zeenix requested a review from sgued August 23, 2025 12:38
@zeenix zeenix added this to the v1.0.0 milestone Aug 23, 2025
@zeenix zeenix added the API Break Breaking changes label Aug 23, 2025
@sgued
Copy link
Contributor

sgued commented Aug 24, 2025

Why is it a breaking change?

@zeenix
Copy link
Contributor Author

zeenix commented Aug 24, 2025

Why is it a breaking change?

Because currently the struct is explicity declared pub by the macro. After this change, the default will not be pub. I thought about making the macro keep the existing behaviour if the caller doesn't specify any visibility but in Rust we don't have a keyword for explicitly marking any API private, so how would the caller ask for the struct to be private? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Break Breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants