Cargo Features
[dependencies]
i-slint-backend-gl = { version = "0.2.5", default-features = false, features = ["svg", "wayland", "x11", "rtti"] }
Note, these features need to be kept in sync (along with their defaults) in the C++ crate's CMakeLists.txt
- default = svg
-
The
svg
feature is set by default wheneveri-slint-backend-gl
is added without
somewhere in the dependency tree.default-features = false - svg default = resvg, tiny-skia, usvg
- wayland
-
Enables wayland of copypasta ^0.8.1, glutin ^0.28, and winit ^0.26
- x11
-
Enables x11 of copypasta ^0.8.1, glutin ^0.28, and winit ^0.26
- rtti
-
Enables rtti of i-slint-core =0.2.5
i-slint-core:
Allow the viewer to query at runtime information about item types
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.
- resvg svg
-
Enables resvg ^0.23
- tiny-skia svg
-
Enables tiny-skia ^0.6
- usvg svg
-
Enables usvg ^0.23