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

Remove public reexports of HardwareBufferFormat #436

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

MarijnS95
Copy link
Member

This was previously reexported from hardware_buffer in #276 to maintain backwards compatibility when the type was originally defined inside that module. However, the type was also strangely reexported from native_window (probably a copy-paste error) while it is accessible from the public hardware_buffer_format module leading to three individual modules where HardwareBufferFormat can be imported from.

Reduce this duplication and confusion by forcing it to only be reachable from the canonical hardware_buffer_format module.

@MarijnS95 MarijnS95 added the impact: breaking API/ABI-breaking change label Oct 7, 2023
This was previously reexported from `hardware_buffer` in #276 to
maintain backwards compatibility when the type was originally defined
inside that module.  However, the type was also strangely reexported
from `native_window` (probably a copy-paste error) while it is
accessible from the public `hardware_buffer_format` module leading
to **three** individual modules where `HardwareBufferFormat` can be
imported from.

Reduce this duplication and confusion by forcing it to only be reachable
from the canonical `hardware_buffer_format` module.
@MarijnS95 MarijnS95 force-pushed the remove-HardwareBufferFormat-reexports branch from 9e5ec25 to 7e2ebf9 Compare October 10, 2023 09:35
@MarijnS95 MarijnS95 merged commit 091764f into master Oct 10, 2023
36 checks passed
@MarijnS95 MarijnS95 deleted the remove-HardwareBufferFormat-reexports branch October 10, 2023 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact: breaking API/ABI-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant