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
somewhere in the dependency tree.default-features = false - 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
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.