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