Cargo Features

iced_wgpu has no features set by default.

[dependencies]
iced_wgpu = { version = "0.12.1", features = ["geometry", "image", "svg", "web-colors", "webgl", "tracing"] }
geometry = lyon

Enables geometry of iced_graphics

Affects iced_wgpu::geometry

image

Enables image of iced_graphics

svg

Enables text of resvg ^0.36

resvg:

Enables SVG Text support.
Adds around 400KiB to your binary.

web-colors

Enables web-colors of iced_graphics

webgl

Enables webgl of wgpu ^0.19

wgpu:

Enables the GLES backend on Wasm

* ⚠️ WIP: Currently will also enable GLES dependencies on any other targets.

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.

lyon geometry?
resvg svg?

Enables resvg ^0.36

tracing implicit feature

Enables tracing

tracing:

Application-level tracing for Rust