Cargo Features

i-slint-backend-winit has no features set by default.

[dependencies]
i-slint-backend-winit = { version = "1.5.1", features = ["wayland", "x11", "renderer-femtovg", "renderer-skia", "renderer-skia-opengl", "renderer-skia-vulkan", "renderer-software", "accessibility"] }

Note, these features need to be kept in sync (along with their defaults) in the C++ crate's CMakeLists.txt

wayland

Enables wayland and wayland-csd-adwaita of winit ^0.29.4 and wayland and wayland-dlopen of optional softbuffer ^0.3.3

For the software renderer

and wayland of copypasta, optional glutin, optional glutin-winit, and optional i-slint-renderer-skia

i-slint-renderer-skia:

For the Skia renderer

x11

Enables x11 of copypasta, x11 of winit ^0.29.4, x11 of optional i-slint-renderer-skia, x11 and x11-dlopen of optional softbuffer ^0.3.3, glx and x11 of optional glutin and optional glutin-winit

renderer-femtovg

Enables glutin, glutin-winit, and i-slint-renderer-femtovg

i-slint-renderer-femtovg:

For the FemtoVG renderer

Affects i-slint-backend-winit::create_gl_window_with_canvas_id

renderer-skia renderer-skia-opengl? renderer-skia-vulkan? = i-slint-renderer-skia

Enables rwh_05 of winit ^0.29.4

renderer-skia-opengl = renderer-skia

Enables opengl of i-slint-renderer-skia

renderer-skia-vulkan = renderer-skia

Enables vulkan of i-slint-renderer-skia

renderer-software

Enables bytemuck, imgref, rgb, and softbuffer ^0.3.3, software-renderer-systemfonts of i-slint-core, rwh_05 of winit ^0.29.4

accessibility

Enables accesskit ^0.12.2 and accesskit_winit ^0.18.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.

i-slint-renderer-skia renderer-skia? renderer-skia-opengl? renderer-skia-vulkan?