forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
48 lines (41 loc) · 1.82 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
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
[package]
name = "slint-cpp"
version = "0.2.5"
authors = ["Slint Developers <info@slint-ui.com>"]
edition = "2021"
build = "build.rs"
license = "GPL-3.0-only OR LicenseRef-Slint-commercial"
description = "Slint C++ integration"
repository = "https://github.com/slint-ui/slint"
homepage = "https://slint-ui.com"
publish = false
rust-version = "1.59"
# prefix used to convey path to generated includes to the C++ test driver
links = "slint_cpp"
[lib]
path = "lib.rs"
crate-type = ["lib", "cdylib"]
# Note, these features need to be kept in sync (along with their defaults) in
# the C++ crate's CMakeLists.txt
[features]
backend-qt = ["i-slint-backend-selector/i-slint-backend-qt"]
interpreter = ["slint-interpreter"]
testing = ["i-slint-backend-testing"] # Enable some function used by the integration tests
backend-gl-all = ["i-slint-backend-selector/backend-gl-all"]
backend-gl-wayland = ["i-slint-backend-selector/backend-gl-wayland"]
backend-gl-x11 = ["i-slint-backend-selector/backend-gl-x11"]
rtti-qt = ["i-slint-backend-selector/rtti-qt"]
rtti-gl = ["i-slint-backend-selector/rtti-gl"]
default = ["backend-gl-all", "backend-qt"]
[dependencies]
i-slint-backend-selector = { version = "=0.2.5", path="../../internal/backends/selector" }
i-slint-backend-testing = { version = "=0.2.5", path="../../internal/backends/testing", optional = true }
i-slint-core = { version = "=0.2.5", path="../../internal/core", features = ["ffi"] }
slint-interpreter = { version = "=0.2.5", path="../../internal/interpreter", default-features = false, features = ["ffi", "compat-0-2-0"], optional = true }
[build-dependencies]
anyhow = "1.0"
cbindgen = "0.23"
proc-macro2 = "1.0.11"
i-slint-common = { version = "=0.2.5", path="../../internal/common" }