| 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 = "slint-python" |
| 6 | version.workspace = true |
| 7 | authors.workspace = true |
| 8 | edition.workspace = true |
| 9 | license.workspace = true |
| 10 | description = "Slint Python integration" |
| 11 | repository.workspace = true |
| 12 | homepage.workspace = true |
| 13 | publish = false |
| 14 | rust-version.workspace = true |
| 15 | |
| 16 | [lib] |
| 17 | path = "lib.rs" |
| 18 | crate-type = ["cdylib" , "rlib" ] |
| 19 | |
| 20 | [[bin]] |
| 21 | name = "stub-gen" |
| 22 | path = "stub-gen/main.rs" |
| 23 | |
| 24 | [features] |
| 25 | default = ["backend-winit" , "renderer-femtovg" , "renderer-software" , "backend-qt" , "accessibility" ] |
| 26 | # Keep in sync with features in nightly_snapshot.yaml, cpp_package.yaml, slint_tool_binary.yaml, and api/node/Cargo.toml |
| 27 | # binaries: default = ["backend-linuxkms-noseat", "backend-winit", "renderer-femtovg", "renderer-skia", "accessibility"] |
| 28 | |
| 29 | backend-qt = ["slint-interpreter/backend-qt" ] |
| 30 | backend-winit = ["slint-interpreter/backend-winit" ] |
| 31 | backend-winit-x11 = ["slint-interpreter/backend-winit-x11" ] |
| 32 | backend-winit-wayland = ["slint-interpreter/backend-winit-wayland" ] |
| 33 | backend-linuxkms = ["slint-interpreter/backend-linuxkms" ] |
| 34 | backend-linuxkms-noseat = ["slint-interpreter/backend-linuxkms-noseat" ] |
| 35 | renderer-femtovg = ["slint-interpreter/renderer-femtovg" ] |
| 36 | renderer-skia = ["slint-interpreter/renderer-skia" ] |
| 37 | renderer-skia-opengl = ["slint-interpreter/renderer-skia-opengl" ] |
| 38 | renderer-skia-vulkan = ["slint-interpreter/renderer-skia-vulkan" ] |
| 39 | renderer-software = ["slint-interpreter/renderer-software" ] |
| 40 | accessibility = ["slint-interpreter/accessibility" ] |
| 41 | |
| 42 | |
| 43 | [dependencies] |
| 44 | i-slint-backend-selector = { workspace = true } |
| 45 | i-slint-core = { workspace = true } |
| 46 | slint-interpreter = { workspace = true, features = ["default" , "display-diagnostics" , "internal" ] } |
| 47 | i-slint-compiler = { workspace = true } |
| 48 | pyo3 = { version = "0.24" , features = ["extension-module" , "indexmap" , "chrono" , "abi3-py310" ] } |
| 49 | indexmap = { version = "2.1.0" } |
| 50 | chrono = "0.4" |
| 51 | spin_on = { workspace = true } |
| 52 | css-color-parser2 = { workspace = true } |
| 53 | pyo3-stub-gen = { version = "0.7.0" , default-features = false } |
| 54 | |
| 55 | [package.metadata.maturin] |
| 56 | python-source = "slint" |
| 57 | |