Cargo Features

[dependencies]
gbm = { version = "0.18.0", default-features = false, features = ["import-wayland", "import-egl", "drm-support", "use_bindgen", "serde"] }
default = drm-support, import-egl, import-wayland

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

import-wayland default = wayland-backend, wayland-server
import-egl default

Affects device::EGLImage

drm-support default = drm
use_bindgen

Enables use_bindgen of gbm-sys

serde

Enables serde, serde of bitflags

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.

drm drm-support
wayland-backend import-wayland
wayland-server import-wayland