rust-mobile / ndk

Rust bindings to the Android NDK
Apache License 2.0
1.11k stars 110 forks source link

Remove public reexports of `HardwareBufferFormat` #436

Closed MarijnS95 closed 11 months ago

MarijnS95 commented 11 months ago

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.