chore: no default features

This commit is contained in:
Michael Aaron Murphy 2023-09-01 09:31:31 +02:00 committed by Michael Murphy
parent 796fe3c1a9
commit 18debe546d
3 changed files with 22 additions and 9 deletions

View file

@ -3,6 +3,12 @@
#![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::*;
@ -55,3 +61,5 @@ pub mod widget;
pub type Renderer = iced::Renderer<Theme>;
pub type Element<'a, Message> = iced::Element<'a, Message, Renderer>;