cleanup
This commit is contained in:
parent
8fb1e21873
commit
757d0753ad
14 changed files with 146 additions and 2521 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
35
src/lib.rs
35
src/lib.rs
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue