Cargo Features
iced_wgpu has no features set by default.
[dependencies]
iced_wgpu = { version = "0.13.5", features = ["geometry", "image", "svg", "web-colors", "webgl"] }
- geometry = lyon
-
Enables geometry of iced_graphics
Affects
iced_wgpu::geometry
… - image
-
Enables image of iced_graphics
- svg
-
Enables svg of iced_graphics and text of resvg ^0.42
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.42