-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 by Bors] - Make internal struct ShaderData
non-pub
#5609
Conversation
`ShaderData` is only used in `ShaderCache`, and the latter is private, so there is no need to make the former public. This change removes the `pub` keyword from `ShaderData`, hidding it as the implementation detail it is.
Technically a breaking change, but I don't think we want or need a migration guide. Can you add |
pub
ShaderData
non-pub
bors r+ |
# Objective `ShaderData` is marked as public, but is an internal type only used by one other internal type, so it should be made private. ## Solution `ShaderData` is only used in `ShaderCache`, and the latter is private, so there is no need to make the former public. This change removes the `pub` keyword from `ShaderData`, hidding it as the implementation detail it is. Split from #5600
Pull request successfully merged into main. Build succeeded: |
ShaderData
non-pub
ShaderData
non-pub
@alice-i-cecile we should have forced a CHANGELOG with a Migration Guide note section since this is a breaking change. Sorry I didn't think about it. Any idea if we could make that check automated? |
# Objective `ShaderData` is marked as public, but is an internal type only used by one other internal type, so it should be made private. ## Solution `ShaderData` is only used in `ShaderCache`, and the latter is private, so there is no need to make the former public. This change removes the `pub` keyword from `ShaderData`, hidding it as the implementation detail it is. Split from bevyengine#5600
# Objective `ShaderData` is marked as public, but is an internal type only used by one other internal type, so it should be made private. ## Solution `ShaderData` is only used in `ShaderCache`, and the latter is private, so there is no need to make the former public. This change removes the `pub` keyword from `ShaderData`, hidding it as the implementation detail it is. Split from bevyengine#5600
@djeedai do you think you can come up with a quick migration guide for this? You can either update the PR text or you can PR it to bevyengine/bevy-website#470 |
@IceSentry done, let me know if that's ok? |
Yep, should be good, I'll add it to the guide. |
Ok thanks for that! |
# Objective `ShaderData` is marked as public, but is an internal type only used by one other internal type, so it should be made private. ## Solution `ShaderData` is only used in `ShaderCache`, and the latter is private, so there is no need to make the former public. This change removes the `pub` keyword from `ShaderData`, hidding it as the implementation detail it is. Split from bevyengine#5600
Objective
ShaderData
is marked as public, but is an internal type only used by one otherinternal type, so it should be made private.
Solution
ShaderData
is only used inShaderCache
, and the latter is private,so there is no need to make the former public. This change removes the
pub
keyword fromShaderData
, hidding it as the implementation detailit is.
Changelog
Removed
ShaderData
from the public API, which was only ever used internally. No public function was using it so there should be no need for any migration action.Split from #5600