Skip to content

Commit 08c4934

Browse files
committed
replace implementation module with declarative macro
The current approach of having a free standing module that is instantiated multiple times with the explicit `path` often causes confusion when reading the code. So replace this with a very simple declarative macro that hopefully is more explicit and simpler than the current approach. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
1 parent b6a2125 commit 08c4934

File tree

12 files changed

+335
-348
lines changed

12 files changed

+335
-348
lines changed

src/implementation/connection.rs

-113
This file was deleted.

src/implementation/device.rs

-214
This file was deleted.

src/implementation/mod.rs

-7
This file was deleted.

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ mod surface;
5454
pub use crate::surface::{SurfaceAccess, SurfaceID, SurfaceInfo, SurfaceType, SystemSurfaceInfo};
5555

5656
pub mod macros;
57+
pub(crate) use macros::implement_interfaces;
5758

5859
#[cfg(not(any(target_os = "android", target_env = "ohos")))]
5960
pub(crate) use crate::gl::Gl;

0 commit comments

Comments
 (0)