Add x11 and wayland feature flags

This commit is contained in:
TechnoPorg 2025-10-13 15:28:53 -04:00 committed by Héctor Ramón Jiménez
parent 7edd3095db
commit 0a75f399a8
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
8 changed files with 39 additions and 62 deletions

View file

@ -496,6 +496,17 @@ compile_error!(
Available options: thread-pool, tokio, or smol."
);
#[cfg(all(
target_family = "unix",
not(feature = "wayland"),
not(feature = "x11"),
))]
compile_error!(
"No Unix display server backend has been enabled. You must enable a \
display server feature.\n\
Available options: x11, wayland."
);
#[cfg(feature = "highlighter")]
pub use iced_highlighter as highlighter;