You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For function iced::window::icon::from_file_data to be available, the image feature needs to be enabled, which adds the image crate as an iced dependency. But then to access image::ImageFormat::Png, the image crate needs also to be added to Cargo.toml as a build dependency. This increases build time if the two versions differ, or may lead to incompatibilities.
IMHO the same should happen for some other notable features such has tokio, async-std, smol, etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Considering for instance the following sample code to add an icon:
For function
iced::window::icon::from_file_data
to be available, theimage
feature needs to be enabled, which adds theimage
crate as aniced
dependency. But then to accessimage::ImageFormat::Png
, theimage
crate needs also to be added toCargo.toml
as a build dependency. This increases build time if the two versions differ, or may lead to incompatibilities.IMHO the same should happen for some other notable features such has
tokio
,async-std
,smol
, etc.Beta Was this translation helpful? Give feedback.
All reactions