chore: Allow compiling without windowing system

This commit is contained in:
Victoria Brekenfeld 2023-10-02 14:40:43 +02:00
parent 29f249ad4f
commit 4c0906329a
2 changed files with 6 additions and 5 deletions

2
iced

@ -1 +1 @@
Subproject commit 92fe8260f80b3a9cb79ae2e707b844219bc4809d
Subproject commit a11053272d8c489514d91b0cf0dde574e25da297

View file

@ -3,21 +3,22 @@
#![allow(clippy::module_name_repetitions)]
#[cfg(all(not(feature = "wayland"), not(feature = "winit")))]
compile_error!("must define `wayland` or `winit` feature");
#[cfg(all(feature = "wayland", feature = "winit"))]
compile_error!("cannot use `wayland` feature with `winit");
/// Recommended default imports.
pub mod prelude {
pub use crate::ext::*;
pub use crate::{Also, ApplicationExt, Apply, Element, Renderer, Theme};
#[cfg(any(feature = "winit", feature = "wayland"))]
pub use crate::ApplicationExt;
pub use crate::{Also, Apply, Element, Renderer, Theme};
}
pub use apply::{Also, Apply};
#[cfg(any(feature = "winit", feature = "wayland"))]
pub mod app;
#[cfg(any(feature = "winit", feature = "wayland"))]
pub use app::{Application, ApplicationExt};
#[cfg(feature = "applet")]