Skip to content

Commit

Permalink
replace implementation module with declarative macro (#313)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mukilan authored Sep 1, 2024
1 parent b6a2125 commit dce7e74
Show file tree
Hide file tree
Showing 12 changed files with 333 additions and 348 deletions.
113 changes: 0 additions & 113 deletions src/implementation/connection.rs

This file was deleted.

214 changes: 0 additions & 214 deletions src/implementation/device.rs

This file was deleted.

7 changes: 0 additions & 7 deletions src/implementation/mod.rs

This file was deleted.

1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ mod surface;
pub use crate::surface::{SurfaceAccess, SurfaceID, SurfaceInfo, SurfaceType, SystemSurfaceInfo};

pub mod macros;
pub(crate) use macros::implement_interfaces;

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

0 comments on commit dce7e74

Please sign in to comment.