slint/internal/backends/selector
Simon Hausmann 8e046a2553
backend selector: Prefer the winit backend over the default backend (… (#8402)
On Linux, if Qt is found, the qt backend is the default. This backend doesn't support selecting graphics APIs, thus
the OpenGL and WGPU examples don't run out of the box.
This patch fixes that by preferring winit.
2025-05-12 14:48:03 +02:00
..
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
api.rs backend selector: Prefer the winit backend over the default backend (… (#8402) 2025-05-12 14:48:03 +02:00
build.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
Cargo.toml slint crate: Expose parts of the winit backend's previously private API (#8315) 2025-05-02 09:21:13 +02:00
lib.rs BackendSelector: respect the SLINT_BACKEND env variable 2025-05-10 12:39:38 +02:00
README.md Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.

The purpose of this crate is to select the default backend for Slint

The backend can either be a runtime or a build time decision. The runtime decision is decided by the SLINT_BACKEND environment variable. The built time default depends on the platform. In order for the crate to be available at runtime, they need to be added as feature