/
Cargo.toml
87 lines (72 loc) · 3.67 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
[package]
name = "i-slint-backend-winit"
version = "1.0.3"
authors = ["Slint Developers <info@slint-ui.com>"]
edition = "2021"
license = "GPL-3.0-only OR LicenseRef-Slint-commercial"
description = "OpenGL rendering backend for Slint"
repository = "https://github.com/slint-ui/slint"
homepage = "https://slint-ui.com"
build = "build.rs"
rust-version.workspace = true
[lib]
path = "lib.rs"
# Note, these features need to be kept in sync (along with their defaults) in
# the C++ crate's CMakeLists.txt
[features]
wayland = ["winit/wayland", "winit/wayland-csd-adwaita", "glutin/wayland", "glutin-winit/wayland", "copypasta/wayland", "i-slint-renderer-skia?/wayland"]
x11 = ["winit/x11", "glutin/x11", "glutin/glx", "glutin-winit/x11", "glutin-winit/glx", "copypasta/x11", "i-slint-renderer-skia?/x11"]
renderer-winit-femtovg = ["i-slint-renderer-femtovg"]
renderer-winit-skia = ["i-slint-renderer-skia"]
renderer-winit-skia-opengl = ["renderer-winit-skia", "i-slint-renderer-skia/opengl"]
renderer-winit-skia-vulkan = ["renderer-winit-skia", "i-slint-renderer-skia/vulkan"]
renderer-winit-software = ["softbuffer", "imgref", "rgb", "i-slint-core/software-renderer-systemfonts"]
accessibility = ["accesskit", "accesskit_winit"]
rtti = ["i-slint-core/rtti"]
default = []
[dependencies]
i-slint-core = { version = "=1.0.3", path = "../../../internal/core" }
i-slint-core-macros = { version = "=1.0.3", path = "../../../internal/core-macros" }
i-slint-common = { version = "=1.0.3", path = "../../../internal/common" }
const-field-offset = { version = "0.1", path = "../../../helper_crates/const-field-offset" }
vtable = { version = "0.1.6", path = "../../../helper_crates/vtable" }
cfg-if = "1"
copypasta = { version = "0.8.2", default-features = false }
derive_more = "0.99.5"
lyon_path = "1.0"
once_cell = "1.5"
pin-weak = "1"
scoped-tls-hkt = "0.1"
# Pinned due to https://github.com/slint-ui/slint/issues/2424
winit = { version = "=0.28.6", default-features = false }
instant = "0.1"
raw-window-handle = { version = "0.5", features = ["alloc"] }
scopeguard = { version = "1.1.0", default-features = false }
send_wrapper = { workspace = true }
# For the FemtoVG renderer
i-slint-renderer-femtovg = { version = "=1.0.3", path = "../../renderers/femtovg", optional = true }
# For the Skia renderer
i-slint-renderer-skia = { version = "=1.0.3", path = "../../renderers/skia", optional = true }
# For the software renderer
softbuffer = { version = "0.2.0", optional = true }
imgref = { version = "1.6.1", optional = true }
rgb = { version = "0.8.27", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3", features=["HtmlInputElement", "HtmlCanvasElement", "Window", "Document", "Event", "KeyboardEvent", "InputEvent", "CompositionEvent", "DomStringMap", "ClipboardEvent", "DataTransfer"] }
wasm-bindgen = { version = "0.2" }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
glutin = { version = "0.30", optional = true, default-features = false, features = ["egl", "wgl"] }
glutin-winit = { version = "0.3.0", optional = true, default-features = false, features = ["egl", "wgl"] }
accesskit = { version = "0.11.0", optional = true }
accesskit_winit = { version = "0.14.0", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
# For GL rendering
cocoa = { version = "0.24.0" }
[build-dependencies]
cfg_aliases = "0.1.0"
[dev-dependencies]
slint = { path = "../../../api/rs/slint", default-features = false, features = ["std", "compat-1-0", "backend-winit", "renderer-winit-software"] }
[package.metadata.docs.rs]
features = ["wayland", "renderer-winit-software"]