From a959e17b7a55c80d18ab61f86de18e0e3486f064 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld <4404502+Drakulix@users.noreply.github.com> Date: Mon, 2 Oct 2023 15:09:44 +0200 Subject: [PATCH] chore: Allow compiling without windowing system (#65) --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 5abcb290a6..c2a89141c1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -160,6 +160,10 @@ )] #![cfg_attr(docsrs, feature(doc_auto_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))] + +#[cfg(all(feature = "wayland", feature = "winit"))] +compile_error!("cannot use `wayland` feature with `winit"); + pub use iced_futures::futures; use iced_widget::graphics; use iced_widget::renderer;