Cargo Features
[dependencies]
iced = { version = "0.13.1", default-features = false, features = ["wgpu", "tiny-skia", "image", "image-without-codecs", "svg", "canvas", "qr_code", "markdown", "lazy", "debug", "tokio", "async-std", "smol", "system", "web-colors", "webgl", "highlighter", "multi-window", "advanced", "fira-sans", "auto-detect-theme"] }
- default = auto-detect-theme, fira-sans, tiny-skia, wgpu
-
These default features are set whenever
iced
is added without
somewhere in the dependency tree.default-features = false - wgpu default
-
Enable the
wgpu
GPU-accelerated renderer backendEnables wgpu of iced_renderer and iced_widget
- tiny-skia default
-
Enable the
tiny-skia
software renderer backendEnables tiny-skia of iced_renderer
- image = image-without-codecs
-
Enables the
Image
widgetEnables image ^0.24
Affects
icon::from_file
,icon::from_file_data
… - image-without-codecs image?
-
Enables the
Image
widget, without any built-in codecs of theimage
crateEnables image ^0.24, image of iced_widget
- svg
-
Enables the
Svg
widgetEnables svg of iced_widget
- canvas
-
Enables the
Canvas
widgetEnables canvas of iced_widget
- qr_code
-
Enables the
QRCode
widgetEnables qr_code of iced_widget
- markdown
-
Enables the
markdown
widgetEnables markdown of iced_widget
- lazy
-
Enables lazy widgets
Enables lazy of iced_widget
- debug
-
Enables a debug view in native platforms (press F12)
Enables debug of iced_winit
- tokio
-
Enables
tokio
as theexecutor::Default
on native platformsEnables tokio of iced_futures
- async-std
-
Enables
async-std
as theexecutor::Default
on native platformsEnables async-std of iced_futures
- smol
-
Enables
smol
as theexecutor::Default
on native platformsEnables smol of iced_futures
- system
-
Enables querying system information
Enables system of iced_winit
Affects
iced::system
… - web-colors
-
Enables broken "sRGB linear" blending to reproduce color management of the Web
Enables web-colors of iced_renderer
- webgl
-
Enables the WebGL backend, replacing WebGPU
Enables webgl of iced_renderer
- highlighter = iced_highlighter
-
Enables the syntax
highlighter
moduleEnables highlighter of iced_widget
- multi-window
-
Enables experimental multi-window support.
Enables multi-window of iced_winit
- advanced
-
Enables the advanced module
Enables advanced of iced_core and iced_widget
Affects
iced::advanced
… - fira-sans default
-
Enables embedding Fira Sans as the default font on Wasm builds
Enables fira-sans of iced_renderer
- auto-detect-theme default
-
Enables auto-detecting light/dark mode for the built-in theme
Enables auto-detect-theme of iced_core
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.