mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00

We changed the MSRV in the last release because some dependency depended on Rust 1.59. But that did not concern the C++ build, for example. Now that we rely on rust 1.59 in our own code, we should make it explicit so that the compilation error show the proper error
72 lines
2.1 KiB
TOML
72 lines
2.1 KiB
TOML
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
[package]
|
|
name = "i-slint-compiler"
|
|
version = "0.2.5"
|
|
authors = ["Slint Developers <info@slint-ui.com>"]
|
|
edition = "2021"
|
|
build = "build.rs"
|
|
license = "GPL-3.0-only OR LicenseRef-Slint-commercial"
|
|
description = "Internal Slint Compiler Library"
|
|
repository = "https://github.com/slint-ui/slint"
|
|
homepage = "https://slint-ui.com"
|
|
rust-version = "1.59"
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[features]
|
|
# Generators
|
|
cpp = []
|
|
rust = ["quote", "proc-macro2"]
|
|
|
|
# Support for proc_macro spans in the token (only useful for use within a proc macro)
|
|
proc_macro_span = ["quote", "proc-macro2"]
|
|
|
|
# Feature to print the diagnostics to the console
|
|
display-diagnostics = ["codemap", "codemap-diagnostic"]
|
|
|
|
|
|
[dependencies]
|
|
i-slint-common = { version = "=0.2.5", path = "../common" }
|
|
|
|
num_enum = "0.5.1"
|
|
rowan = "0.15.3"
|
|
smol_str = "0.1.17"
|
|
derive_more = "0.99.5"
|
|
codemap-diagnostic = { version = "0.1.1", optional = true }
|
|
codemap = { version = "0.1", optional = true }
|
|
quote = { version = "1.0", optional = true }
|
|
proc-macro2 = { version = "1.0.17", optional = true }
|
|
lyon_path = { version = "0.17.4" }
|
|
lyon_svg = { version = "0.17.2" }
|
|
thiserror = "1"
|
|
by_address = "1.0.4"
|
|
css-color-parser2 = "1.0.1"
|
|
itertools = "0.10"
|
|
once_cell = "1"
|
|
url = "2.2.1"
|
|
dunce = "1.0.1"
|
|
linked_hash_set = "0.1.4"
|
|
fontdb = { version = "0.9.0", features = ["fontconfig"] }
|
|
fontdue = { version = "0.7.1" }
|
|
|
|
# for processing and embedding the rendered image (texture)
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
image = "0.24"
|
|
tiny-skia = "0.6.1"
|
|
resvg = "0.22"
|
|
usvg = "0.22"
|
|
|
|
[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios", target_arch = "wasm32")))'.dependencies]
|
|
libc = { version = "0.2" }
|
|
# Require font-config from the system on Linux. Issue #88 indicates that the copy provided by servo-fontconfig may be incompatible
|
|
# with distros at times.
|
|
servo-fontconfig = { version = "0.5", features = [ "force_system_lib" ] }
|
|
|
|
[dev-dependencies]
|
|
i-slint-parser-test-macro = { path = "./parser-test-macro" }
|
|
|
|
regex = "1.3.7"
|
|
spin_on = "0.1"
|