This commit is contained in:
Ashley Wulber 2024-10-16 15:20:36 -04:00
parent 8fb1e21873
commit 757d0753ad
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
14 changed files with 146 additions and 2521 deletions

View file

@ -30,8 +30,6 @@
//! ]
//! }
//! ```
use crate::message;
use crate::program::{self, Appearance, DefaultStyle, Program};
use crate::theme;
@ -40,7 +38,9 @@ use crate::shell;
use crate::window;
use crate::{
Element, Executor, Font, Never, Preset, Result, Settings, Size,
Subscription, Theme, task::Task,
Subscription, Theme, message,
program::{self, Program},
task::Task,
};
use iced_debug as debug;

View file

@ -13,7 +13,7 @@ use crate::{
use iced_debug as debug;
#[cfg(not(any(feature = "winit", feature = "wayland")))]
#[cfg(not(feature = "winit"))]
use crate::runtime::{Appearance, DefaultStyle};
use std::borrow::Cow;

View file

@ -34,10 +34,6 @@ impl From<shell::Error> for Error {
shell::Error::WindowCreationFailed(error) => {
Error::WindowCreationFailed(Box::new(error))
}
#[cfg(feature = "wayland")]
shell::Error::WindowCreationFailed(error) => {
Error::WindowCreationFailed(Box::new(error))
}
shell::Error::GraphicsCreationFailed(error) => {
Error::GraphicsCreationFailed(error)
}

View file

@ -504,17 +504,17 @@ compile_error!(
Available options: thread-pool, tokio, or smol."
);
#[cfg(all(
target_family = "unix",
not(target_os = "macos"),
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(all(
// target_family = "unix",
// not(target_os = "macos"),
// 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;
@ -544,19 +544,6 @@ pub use application::Application;
#[cfg(feature = "winit")]
pub use program::Program;
// wayland application
// #[cfg(feature = "wayland")]
// pub mod wayland;
// #[cfg(feature = "wayland")]
// pub use wayland::application;
// #[cfg(feature = "wayland")]
// pub use wayland::application::Application;
// #[cfg(feature = "wayland")]
// pub use wayland::program;
// #[doc(inline)]
// #[cfg(feature = "wayland")]
// pub use wayland::program::Program;
#[cfg(feature = "advanced")]
pub mod advanced;