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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Considering for instance the following sample code to add an icon:
For function
iced::window::icon::from_file_datato be available, theimagefeature needs to be enabled, which adds theimagecrate as aniceddependency. But then to accessimage::ImageFormat::Png, theimagecrate needs also to be added toCargo.tomlas 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