Cargo Features

[dependencies]
softbuffer = { version = "0.4.8", default-features = false, features = ["kms", "wayland", "wayland-dlopen", "x11", "x11-dlopen"] }
default = kms, wayland, wayland-dlopen, x11, x11-dlopen

These default features are set whenever softbuffer is added without default-features = false somewhere in the dependency tree.

kms default = bytemuck, drm, rustix
wayland default = fastrand, memmap2, rustix, wayland-backend, wayland-client, wayland-sys
wayland-dlopen default

Enables dlopen of wayland-sys

x11 default = as-raw-xcb-connection, bytemuck, fastrand, rustix, tiny-xlib, x11rb
x11-dlopen default

Enables dlopen of tiny-xlib, dl-libxcb of x11rb

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.

as-raw-xcb-connection not android apple redox wasm win x11
drm not android apple redox wasm win kms
memmap2 not android apple redox wasm win wayland
wayland-backend not android apple redox wasm win wayland
wayland-client not android apple redox wasm win wayland
bytemuck not android apple redox wasm win android kms x11
fastrand not android apple redox wasm win wayland x11
tiny-xlib not android apple redox wasm win x11 x11-dlopen
wayland-sys not android apple redox wasm win wayland wayland-dlopen
x11rb not android apple redox wasm win x11 x11-dlopen
rustix not android apple redox wasm win kms wayland x11