Cargo Features
[dependencies]
iced = { version = "0.14.0", default-features = false, features = ["wgpu", "wgpu-bare", "tiny-skia", "image", "image-without-codecs", "svg", "canvas", "qr_code", "markdown", "lazy", "debug", "time-travel", "hot", "tester", "thread-pool", "tokio", "smol", "sysinfo", "web-colors", "crisp", "webgl", "highlighter", "selector", "advanced", "fira-sans", "basic-shaping", "advanced-shaping", "strict-assertions", "unconditional-rendering", "sipper", "linux-theme-detection", "x11", "wayland"] }
- default = crisp, linux-theme-detection, thread-pool, tiny-skia, wayland, web-colors, wgpu, x11
-
These default features are set whenever
icedis added withoutsomewhere in the dependency tree.default-features = false - wgpu default = wgpu-bare
-
Enables the
wgpuGPU-accelerated renderer with all its default features (Vulkan, Metal, DX12, OpenGL, and WebGPU)Enables wgpu of iced_renderer
- wgpu-bare wgpu
-
Enables the
wgpuGPU-accelerated renderer with the minimum required features (no backends!)Enables wgpu-bare of iced_renderer, wgpu of iced_widget
- tiny-skia default
-
Enables the
tiny-skiasoftware rendererEnables tiny-skia of iced_renderer
- image = image-without-codecs
-
Enables the
imagewidgetEnables image
Affects
iced::widget.image,icon::from_file,icon::from_file_data… - image-without-codecs image?
-
Enables the
imagewidget, without any built-in codecs of theimagecrateEnables image, image of iced_widget
- svg
-
Enables the
svgwidgetEnables svg of iced_widget
- canvas
-
Enables the
canvaswidgetEnables canvas of iced_widget
- qr_code
-
Enables the
qr_codewidgetEnables qr_code of iced_widget
- markdown
-
Enables the
markdownwidgetEnables markdown of iced_widget
- lazy
-
Enables lazy widgets
Enables lazy of iced_widget
- debug hot? time-travel?
-
Enables debug metrics in native platforms (press F12)
Enables iced_devtools, debug of iced_winit
- time-travel = debug
-
Enables time-travel debugging (very experimental!)
Enables time-travel of iced_devtools
- hot = debug
-
Enables hot reloading (very experimental!)
Enables hot of iced_debug
- tester
-
Enables the tester developer tool for recording and playing tests (press F12)
Enables iced_tester
- thread-pool default
-
Enables the
thread-poolfutures executor as theexecutor::Defaulton native platformsEnables thread-pool of iced_futures
- tokio
-
Enables
tokioas theexecutor::Defaulton native platformsEnables tokio of iced_futures
- smol
-
Enables
smolas theexecutor::Defaulton native platformsEnables smol of iced_futures
- sysinfo
-
Enables querying system information
Enables sysinfo of iced_winit
- web-colors default
-
Enables broken "sRGB linear" blending to reproduce color management of the Web
Enables web-colors of iced_renderer
- crisp default
-
Enables pixel snapping for crisp edges by default (can cause jitter!)
Enables crisp of iced_core and iced_widget
- webgl
-
Enables the WebGL backend
Enables webgl of iced_renderer
- highlighter = iced_highlighter
-
Enables syntax highlighting
Enables highlighter of iced_widget
- selector
-
Enables the
widget::selectormoduleEnables selector of iced_runtime
- advanced
-
Enables the advanced module
Enables advanced of iced_core and iced_widget
Affects
iced::advanced… - fira-sans
-
Embeds Fira Sans into the final application; useful for testing and Wasm builds
Enables fira-sans of iced_renderer
- basic-shaping
-
Enables basic text shaping by default
Enables basic-shaping of iced_core
- advanced-shaping
-
Enables advanced text shaping by default
Enables advanced-shaping of iced_core
- strict-assertions
-
Enables strict assertions for debugging purposes at the expense of performance
Enables strict-assertions of iced_renderer
- unconditional-rendering
-
Redraws on every runtime event, and not only when a widget requests it
Enables unconditional-rendering of iced_winit
- sipper
-
Enables support for the
sipperlibraryEnables sipper of iced_runtime
- linux-theme-detection default
-
Enables Linux system theme detection
Enables linux-theme-detection of iced_winit
- x11 default
-
Enables the Unix X11 backend
Enables x11 of iced_renderer and iced_winit
- wayland default
-
Enables the Unix Wayland backend
Enables wayland of iced_renderer and iced_winit
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.