Cargo Features

wayrs-utils has no features set by default.

wayrs-utils = { version = "0.12.0", features = ["seats", "shm_alloc", "cursor", "keyboard", "dmabuf_feedback", "wayrs-protocols"] }

Affects wayrs-utils::seats

shm_alloc cursor? = memmap2, shmemfdrs

Affects wayrs-utils::shm_alloc

cursor = shm_alloc, xcursor

Enables cursor-shape-v1 of wayrs-protocols

Affects wayrs-utils::cursor

keyboard = xkbcommon

Affects wayrs-utils::keyboard

dmabuf_feedback = libc, memmap2

Enables linux-dmabuf-unstable-v1 of wayrs-protocols

Affects wayrs-utils::dmabuf_feedback

Features from optional dependencies

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

libc dmabuf_feedback?

With default (std)

memmap2 dmabuf_feedback? shm_alloc?

Enables memmap2 ^0.8

shmemfdrs shm_alloc?

With default (memfd)

wayrs-protocols implicit feature
xcursor cursor?
xkbcommon keyboard?

With default (wayland)