Cargo Features

[dependencies]
smithay = { version = "0.3.0", default-features = false, features = ["backend_winit", "backend_drm", "backend_gbm", "backend_egl", "backend_libinput", "backend_session", "backend_udev", "backend_session_logind", "backend_session_elogind", "backend_session_libseat", "renderer_gl", "use_system_lib", "wayland_frontend", "xwayland", "test_all_features", "slog-stdlog"] }
default test_all_features? = backend_drm, backend_gbm, backend_libinput, backend_session_logind, backend_udev, backend_winit, renderer_gl, slog-stdlog, wayland_frontend, xwayland

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

backend_winit default = backend_egl, renderer_gl, wayland-egl, winit

Enables dlopen of wayland-server ^0.29.0

Affects native::XlibWindow, backend::winit

backend_drm default = drm, drm-ffi

Affects allocator::dumb, backend::drm

backend_gbm default = gbm

Affects allocator::gbm

backend_egl backend_winit renderer_gl = gl_generator

Affects backend::egl, renderer::ImportEgl

backend_libinput default = input

Affects backend::libinput

backend_session backend_session_libseat? backend_session_logind

Affects libinput::LibinputSessionInterface, backend::session

backend_udev default = udev

Enables udev of input ^0.6

Affects backend::udev

backend_session_logind default backend_session_elogind? = backend_session, dbus, pkg-config

Affects dbus::logind

backend_session_elogind = backend_session_logind
backend_session_libseat = backend_session, libseat

Affects session::libseat

renderer_gl default backend_winit = backend_egl, gl_generator

Affects renderer::gles2

use_system_lib test_all_features? = wayland-sys, wayland_frontend

Enables use_system_lib of wayland-server ^0.29.0

Affects display::EGLBufferReader, renderer::ImportEgl

wayland_frontend default use_system_lib? xwayland = tempfile, wayland-commons, wayland-protocols, wayland-server

Affects egl::BufferAccessError, egl::EGLBuffer, renderer::ImportShm, renderer::ImportDma, renderer::ImportAll, renderer::BufferType, renderer::buffer_type, renderer::buffer_dimensions, smithay::wayland, renderer::ImportEgl

xwayland default = wayland_frontend

Affects smithay::xwayland

test_all_features = default, use_system_lib

Enables dlopen of wayland-server ^0.29.0

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.

dbus backend_session_logind
drm backend_drm

Enables drm ^0.5.0

drm-ffi backend_drm

Enables drm-ffi ^0.2.0

gbm backend_gbm

Enables gbm ^0.7.0

input backend_libinput backend_udev

Enables input ^0.6

libseat backend_session_libseat?

Enables libseat ^0.1.1

slog-stdlog default
tempfile wayland_frontend
udev backend_udev

Enables udev ^0.6

wayland-commons wayland_frontend
wayland-egl backend_winit

Enables wayland-egl ^0.29.0

wayland-protocols wayland_frontend

Enables wayland-protocols ^0.29.0

wayland-server backend_winit test_all_features? use_system_lib? wayland_frontend

Enables wayland-server ^0.29.0

wayland-sys use_system_lib?

Enables wayland-sys ^0.29.0

winit backend_winit

Enables winit ^0.25.0

gl_generator build backend_egl? renderer_gl
pkg-config build backend_session_logind