| 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-common" |
| 6 | description = "Helper crate for sharing code & data structures between i-slint-core and slint-compiler" |
| 7 | authors.workspace = true |
| 8 | documentation.workspace = true |
| 9 | edition.workspace = true |
| 10 | homepage.workspace = true |
| 11 | license.workspace = true |
| 12 | repository.workspace = true |
| 13 | rust-version.workspace = true |
| 14 | version.workspace = true |
| 15 | |
| 16 | [lib] |
| 17 | path = "lib.rs" |
| 18 | |
| 19 | [features] |
| 20 | default = [] |
| 21 | shared-fontdb = ["dep:fontdb" , "dep:libloading" , "derive_more" , "cfg-if" , "dep:ttf-parser" ] |
| 22 | |
| 23 | [dependencies] |
| 24 | fontdb = { workspace = true, optional = true } |
| 25 | ttf-parser = { workspace = true, optional = true } |
| 26 | derive_more = { workspace = true, optional = true } |
| 27 | cfg-if = { version = "1" , optional = true } |
| 28 | |
| 29 | [target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios", target_arch = "wasm32", target_os = "android")))'.dependencies] |
| 30 | libloading = { version = "0.8.0" , optional = true } |
| 31 | |
| 32 | [target.'cfg(not(target_arch = "wasm32"))'.dependencies] |
| 33 | fontdb = { workspace = true, optional = true, default-features = true } |
| 34 | |