Add x11 and wayland feature flags
This commit is contained in:
parent
7edd3095db
commit
0a75f399a8
8 changed files with 39 additions and 62 deletions
11
src/lib.rs
11
src/lib.rs
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue