Cargo Features

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

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

gtk default = gdk-sys, glib-sys, gtk-rs, gtk-sys
x11 = ashpd, bindgen, cairo-sys-rs, futures, nix, pkg-config, x11rb

Affects xkb::DeviceId, keyboard::code_to_location

wayland = bindgen, cairo-sys-rs, calloop, im, log, nix, pkg-config, rand, wayland-client, wayland-cursor

Enables client and unstable_protocols of wayland-protocols ^0.29.5

Affects keyboard::code_to_location

raw-win-handle = raw-window-handle

Implement HasRawWindowHandle for WindowHandle

image

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 of piet-common ^0.6.2

image_png

Enables image_png of piet-common ^0.6.2

jpeg

Enables jpeg of piet-common ^0.6.2

jpeg_rayon

Enables jpeg_rayon of piet-common ^0.6.2

gif

Enables gif of piet-common ^0.6.2

bmp

Enables bmp of piet-common ^0.6.2

ico

Enables ico of piet-common ^0.6.2

tiff

Enables tiff of piet-common ^0.6.2

webp

Enables webp of piet-common ^0.6.2

pnm

Enables pnm of piet-common ^0.6.2

dds

Enables dds of piet-common ^0.6.2

tga

Enables tga of piet-common ^0.6.2

farbfeld

Enables farbfeld of piet-common ^0.6.2

dxt

Enables dxt of piet-common ^0.6.2

hdr

Enables hdr of piet-common ^0.6.2

serde

Enables serde of piet-common ^0.6.2

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.

raw-window-handle raw-win-handle?

Enables raw-window-handle ^0.5.0

Optional dependencies

bindgen build wayland? x11?

Enables bindgen ^0.61.0

pkg-config build wayland? x11?
ashpd freebsd linux openbsd x11?

Enables ashpd ^0.3.2

calloop freebsd linux openbsd wayland?

Enables calloop ^0.7.2

futures freebsd linux openbsd x11?
gdk-sys freebsd linux openbsd gtk

Enables gdk-sys ^0.16.0

glib-sys freebsd linux openbsd gtk

Enables glib-sys ^0.16.3

gtk-rs freebsd linux openbsd gtk

Enables gtk ^0.16.2

gtk-sys freebsd linux openbsd gtk

Enables gtk-sys ^0.16.0

im freebsd linux openbsd wayland?
log freebsd linux openbsd wayland?
rand freebsd linux openbsd wayland?
wayland-client freebsd linux openbsd wayland?

Enables wayland-client ^0.29.5

wayland-cursor freebsd linux openbsd wayland?

Enables wayland-cursor ^0.29.5

wayland-protocols freebsd linux openbsd wayland?

Enables wayland-protocols ^0.29.5

x11rb freebsd linux openbsd x11?

Enables x11rb ^0.10.1

cairo-sys-rs freebsd linux openbsd wayland? x11?

Enables cairo-sys-rs ^0.16.3

nix freebsd linux openbsd wayland? x11?

Enables nix ^0.24.3