Move about widget to new about feature

This commit is contained in:
Jeremy Soller 2024-11-11 11:11:49 -07:00
parent 01bd999d28
commit be4c0a0848
3 changed files with 4 additions and 4 deletions

View file

@ -11,6 +11,8 @@ name = "cosmic"
default = ["multi-window"]
# Accessibility support
a11y = ["iced/a11y", "iced_accessibility"]
# Enable about widget
about = ["desktop", "dep:license"]
# Builds support for animated images
animated-image = ["image", "dep:async-fs", "tokio?/io-util", "tokio?/fs"]
# XXX autosize should not be used on winit windows unless dialogs
@ -40,7 +42,6 @@ desktop = [
"process",
"dep:freedesktop-desktop-entry",
"dep:mime",
"dep:license",
"dep:shlex",
"tokio?/io-util",
"tokio?/net",

View file

@ -1,4 +1,3 @@
#[cfg(feature = "desktop")]
use {
crate::{
iced::{Alignment, Length},

View file

@ -366,8 +366,8 @@ pub use warning::*;
#[doc(inline)]
pub use iced::widget::markdown;
#[cfg(feature = "desktop")]
#[cfg(feature = "about")]
pub mod about;
#[cfg(feature = "desktop")]
#[cfg(feature = "about")]
#[doc(inline)]
pub use about::about;