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 default-features = false somewhere in the dependency tree.

wgpu default

Enable the wgpu GPU-accelerated renderer backend

Enables wgpu of iced_renderer and iced_widget

tiny-skia default

Enable the tiny-skia software renderer backend

Enables tiny-skia of iced_renderer

image = image-without-codecs

Enables the Image widget

Enables 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 the image crate

Enables image ^0.24, image of iced_widget

svg

Enables the Svg widget

Enables svg of iced_widget

canvas

Enables the Canvas widget

Enables canvas of iced_widget

qr_code

Enables the QRCode widget

Enables qr_code of iced_widget

markdown

Enables the markdown widget

Enables 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 the executor::Default on native platforms

Enables tokio of iced_futures

async-std

Enables async-std as the executor::Default on native platforms

Enables async-std of iced_futures

smol

Enables smol as the executor::Default on native platforms

Enables 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 module

Enables 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.

iced_highlighter highlighter?