forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
103 lines (94 loc) · 3.13 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Copyright © SixtyFPS GmbH <[email protected]>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
[package]
name = "slint-cpp"
description = "Slint C++ integration"
authors.workspace = true
documentation.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
build = "build.rs"
publish = false
# prefix used to convey path to generated includes to the C++ test driver
links = "librepcbslint"
[lib]
path = "lib.rs"
crate-type = ["lib", "cdylib", "staticlib"]
name = "librepcbslint"
# Note, these features need to be kept in sync (along with their defaults) in
# the C++ crate's CMakeLists.txt as well as cbindgen.rs
[features]
interpreter = ["slint-interpreter", "std"]
# Enable some function used by the integration tests
testing = ["dep:i-slint-backend-testing"]
backend-qt = ["i-slint-backend-selector/backend-qt", "std"]
backend-winit = ["i-slint-backend-selector/backend-winit", "std"]
backend-winit-x11 = ["i-slint-backend-selector/backend-winit-x11", "std"]
backend-winit-wayland = [
"i-slint-backend-selector/backend-winit-wayland",
"std",
]
backend-linuxkms = ["i-slint-backend-selector/backend-linuxkms", "std"]
backend-linuxkms-noseat = [
"i-slint-backend-selector/backend-linuxkms-noseat",
"std",
]
renderer-femtovg = ["i-slint-backend-selector/renderer-femtovg"]
renderer-skia = [
"i-slint-backend-selector/renderer-skia",
"i-slint-renderer-skia",
"raw-window-handle",
]
renderer-skia-opengl = [
"i-slint-backend-selector/renderer-skia-opengl",
"renderer-skia",
]
renderer-skia-vulkan = [
"i-slint-backend-selector/renderer-skia-vulkan",
"renderer-skia",
]
renderer-software = ["i-slint-backend-selector/renderer-software"]
gettext = ["i-slint-core/gettext-rs"]
accessibility = ["i-slint-backend-selector/accessibility"]
system-testing = ["i-slint-backend-selector/system-testing"]
std = [
"i-slint-core/default",
"i-slint-core/image-default-formats",
"i-slint-backend-selector",
]
freestanding = ["i-slint-core/libm", "i-slint-core/unsafe-single-threaded"]
experimental = ["i-slint-core/experimental"]
default = ["std", "backend-winit", "renderer-femtovg", "backend-qt"]
[dependencies]
i-slint-backend-selector = { workspace = true, optional = true }
i-slint-backend-testing = { workspace = true, optional = true, features = [
"ffi",
] }
i-slint-renderer-skia = { workspace = true, features = [
"default",
"x11",
"wayland",
], optional = true }
i-slint-core = { workspace = true, features = ["ffi"] }
slint-interpreter = { workspace = true, features = [
"ffi",
"compat-1-2",
], optional = true }
raw-window-handle = { version = "0.6", optional = true }
esp-backtrace = { version = "0.14.0", features = [
"panic-handler",
"println",
], optional = true }
esp-println = { version = "0.12.0", default-features = false, features = [
"uart",
], optional = true }
unicode-segmentation = { workspace = true }
[build-dependencies]
anyhow = "1.0"
cbindgen = { workspace = true }
i-slint-common = { workspace = true, features = ["default"] }
proc-macro2 = "1.0.11"