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