Cargo Features

[dependencies]
iced = { version = "0.12.1", default-features = false, features = ["wgpu", "image", "svg", "canvas", "qr_code", "lazy", "debug", "tokio", "async-std", "smol", "palette", "system", "web-colors", "webgl", "highlighter", "multi-window", "advanced", "fira-sans"] }
default = fira-sans, 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

image

Enables the Image widget

Enables image ^0.24, image of iced_widget

Affects icon::from_file, icon::from_file_data

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

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

palette

Enables advanced color conversion via palette

Enables palette of iced_core

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

multi-window

Enables experimental multi-window support.

Enables multi-window of iced_winit

Affects iced::multi_window

advanced

Enables the advanced module

Affects iced::advanced

fira-sans default

Enables embedding Fira Sans as the default font on Wasm builds

Enables fira-sans of iced_renderer

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?