Skip to content

Commit b5abe42

Browse files
JakeStangerbilelmoussaoui
authored andcommitted
fix(gdk4-wayland): egl feature does not compile without wayland-crate feature
Previously enabling `egl` (with or without a version feature flag) would fail to compile, as some required imports were incorrectly gated behind the `wayland_crate` flag only. This amends the feature flags in `wayland_display` to amend this.
1 parent 0a41253 commit b5abe42

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

gdk4-wayland/src/wayland_display.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
// Take a look at the license at the top of the repository in the LICENSE file.
22

3-
#[cfg(feature = "wayland_crate")]
4-
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
3+
#[cfg(any(feature = "wayland_crate", all(feature = "v4_4", feature = "egl")))]
4+
#[cfg_attr(
5+
docsrs,
6+
doc(any(feature = "wayland_crate", all(feature = "v4_4", feature = "egl")))
7+
)]
58
use crate::ffi;
9+
#[cfg(any(feature = "wayland_crate", all(feature = "v4_4", feature = "egl")))]
10+
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
11+
use glib::translate::*;
612
#[cfg(feature = "wayland_crate")]
713
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
8-
use glib::{prelude::*, translate::*, Quark};
14+
use glib::{prelude::*, Quark};
15+
916
#[cfg(all(feature = "v4_4", feature = "egl"))]
1017
#[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))]
1118
use khronos_egl as egl;

0 commit comments

Comments
 (0)