Cargo Features

[dependencies]
slint-viewer = { version = "1.5.1", default-features = false, features = ["backend-default", "backend-qt", "backend-winit", "backend-winit-x11", "backend-winit-wayland", "backend-linuxkms", "backend-linuxkms-noseat", "renderer-femtovg", "renderer-skia", "renderer-skia-opengl", "renderer-skia-vulkan", "renderer-software", "backend-gl-all", "backend-gl-wayland", "backend-gl-x11", "renderer-winit-qt", "renderer-winit-femtovg", "renderer-winit-skia", "renderer-winit-skia-opengl", "renderer-winit-skia-vulkan", "renderer-winit-software", "gettext"] }
backend-default default

Enables backend-default of slint-interpreter

slint-interpreter:

Alias to a backend and renderer that depends on the platform.
Will select the Qt backend on linux if present, and the winit otherwise

backend-qt eventloop-qt? renderer-winit-qt?

Enables backend-qt of slint-interpreter

slint-interpreter:

Backends

See the documentation of the slint crate

The Qt backend feature uses Qt for the windowing system integration and rendering. This backend also provides the native style. It requires Qt 5.15 or later to be installed. If Qt is not installed, the backend will not be operational

backend-winit backend-gl-all?

Enables backend-winit of slint-interpreter

slint-interpreter:

The winit crate is used for the event loop and windowing system integration. With this feature, both x11 and wayland windowing systems are supported. For a smaller build, omit this feature and select one of the other specific backend-winit-XX features.

backend-winit-x11 backend-gl-x11?

Enables backend-winit-x11 of slint-interpreter

slint-interpreter:

Simliar to backend-winit this enables the winit based event loop but only with support for the X Window System on Unix.

backend-winit-wayland backend-gl-wayland?

Enables backend-winit-wayland of slint-interpreter

slint-interpreter:

Simliar to backend-winit this enables the winit based event loop but only with support for the Wayland window system on Unix.

backend-linuxkms

Enables backend-linuxkms of slint-interpreter

slint-interpreter:

KMS with Vulkan or EGL and libinput on Linux are used to render the application in full screen mode, without any windowing system. Requires libseat. If you don't have libseat, select backend-linuxkms-noseat instead. (Experimental)

backend-linuxkms-noseat

Enables backend-linuxkms-noseat of slint-interpreter

slint-interpreter:

KMS with Vulkan or EGL and libinput on Linux are used to render the application in full screen mode, without any windowing system. Requires libseat. (Experimental)

renderer-femtovg default backend-gl-all? backend-gl-wayland? backend-gl-x11? renderer-winit-femtovg?

Enables renderer-femtovg of slint-interpreter

slint-interpreter:

Make the winit backend capable of rendering using the femtovg crate.

renderer-skia renderer-winit-skia?

Enables renderer-skia of slint-interpreter

slint-interpreter:

Make the winit backend capable of rendering using Skia. Must be used in combination with backend-winit, backend-winit-x11, or backend-winit-wayland.

renderer-skia-opengl renderer-winit-skia-opengl?

Enables renderer-skia-opengl of slint-interpreter

slint-interpreter:

Same as renderer-skia, but Skia will always use OpenGL.

renderer-skia-vulkan renderer-winit-skia-vulkan?

Enables renderer-skia-vulkan of slint-interpreter

slint-interpreter:

Same as renderer-skia, but Skia will always use Vulkan.

renderer-software renderer-winit-software?

Enables renderer-software of slint-interpreter

slint-interpreter:

Make the winit backend capable of rendering using the software renderer.

backend-gl-all = backend-winit, renderer-femtovg

Compat

backend-gl-wayland = backend-winit-wayland, renderer-femtovg
backend-gl-x11 = backend-winit-x11, renderer-femtovg
eventloop-qt renderer-winit-qt = backend-qt
renderer-winit-femtovg = renderer-femtovg
renderer-winit-skia = renderer-skia
renderer-winit-skia-opengl = renderer-skia-opengl
renderer-winit-skia-vulkan = renderer-skia-vulkan
renderer-winit-software = renderer-software
gettext

Enable the translations using gettext

the @tr(...) code from .slint files will be transformed into call to dgettext. You should pass --translation-domain and --translation-dir command line argument so that the viewer can find the translation

Enables gettext-rs of i-slint-core

default = backend-default, renderer-femtovg

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