Cargo Features
i-slint-backend-winit has no features set by default.
[dependencies]
i-slint-backend-winit = { version = "1.9.1", features = ["wayland", "x11", "renderer-femtovg", "renderer-skia", "renderer-skia-opengl", "renderer-skia-vulkan", "renderer-software", "accessibility", "raw-window-handle-06"] }
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 and wayland and wayland-dlopen of optional softbuffer
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, x11 of optional i-slint-renderer-skia, x11 and x11-dlopen of optional softbuffer, 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
- 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, software-renderer-systemfonts of i-slint-core, rwh_06 of winit
- accessibility
-
Enables accesskit and accesskit_winit
- raw-window-handle-06
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.