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

View file

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

View file

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