Cargo Features

[dependencies]
druid = { version = "0.8.3", default-features = false, features = ["gtk", "image", "svg", "x11", "wayland", "serde", "raw-win-handle", "png", "jpeg", "jpeg_rayon", "gif", "bmp", "ico", "tiff", "webp", "pnm", "dds", "tga", "farbfeld", "dxt", "hdr", "image-all", "chrono"] }
default = gtk

The gtk feature is set by default whenever druid is added without default-features = false somewhere in the dependency tree.

gtk default

Enables gtk of druid-shell

image image-all?

Enables image of druid-shell

druid-shell:

passing on all the image features. AVIF is not supported because it does not support decoding, and that's all we use Image for.

svg image-all? = resvg, tiny-skia, usvg
x11

Enables x11 of druid-shell

wayland

**WARNING** not ready for the prime time. Many things don't work yet.

Enables wayland of druid-shell

serde

Enables serde of druid-shell and im

raw-win-handle

Implement HasRawWindowHandle for WindowHandle

Enables raw-win-handle of druid-shell

png image-all?

passing on all the image features. AVIF is not supported because it does not support decoding, and that's all we use Image for.

Enables image_png of druid-shell

jpeg image-all?

Enables jpeg of druid-shell

jpeg_rayon image-all?

Enables jpeg_rayon of druid-shell

gif image-all?

Enables gif of druid-shell

bmp image-all?

Enables bmp of druid-shell

ico image-all?

Enables ico of druid-shell

tiff image-all?

Enables tiff of druid-shell

webp image-all?

Enables webp of druid-shell

pnm image-all?

Enables pnm of druid-shell

dds image-all?

Enables dds of druid-shell

tga image-all?

Enables tga of druid-shell

farbfeld image-all?

Enables farbfeld of druid-shell

dxt image-all?

Enables dxt of druid-shell

hdr image-all?

Enables hdr of druid-shell

image-all = bmp, dds, dxt, farbfeld, gif, hdr, ico, image, jpeg, jpeg_rayon, png, pnm, svg, tga, tiff, webp

Remember to update this when changing an image feature.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

chrono implicit feature

Enables chrono

Optional dependencies

im serde?
resvg svg?

Enables resvg ^0.25.0

When updating, make sure it doesn't pin a specific png crate, see druid#2345

usvg svg?

Enables usvg ^0.25.0

tiny-skia svg?

Enables tiny-skia ^0.8.3