1# Copyright © SixtyFPS GmbH <info@slint.dev>
2# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4[package]
5name = "i-slint-backend-qt"
6description = "Qt rendering backend for Slint"
7authors.workspace = true
8edition.workspace = true
9homepage.workspace = true
10license.workspace = true
11repository.workspace = true
12rust-version.workspace = true
13version.workspace = true
14links = "i_slint_backend_qt" # just so we can pass metadata to the dependee's build script
15
16[features]
17rtti = ["i-slint-core/rtti"]
18default = ["enable"]
19enable = ["dep:cpp", "dep:lyon_path", "dep:pin-project", "dep:pin-weak", "dep:qttypes", "dep:cpp_build"]
20
21[lib]
22path = "lib.rs"
23
24[dependencies]
25i-slint-common = { workspace = true }
26i-slint-core-macros = { workspace = true }
27i-slint-core = { workspace = true, features = ["std"] }
28
29const-field-offset = { version = "0.1", path = "../../../helper_crates/const-field-offset" }
30vtable = { workspace = true }
31
32cpp = { version = "0.5.5", optional = true }
33lyon_path = { version = "1", optional = true }
34pin-project = { version = "1", optional = true }
35pin-weak = { version = "1", optional = true }
36qttypes = { version = "0.2.7", default-features = false, optional = true }
37
38[build-dependencies]
39cpp_build = { version = "0.5.5", optional = true }
40