forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (59 loc) · 2.4 KB
/
Cargo.toml
File metadata and controls
72 lines (59 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
[package]
name = "slint-lsp"
version = "0.2.5"
authors = ["Slint Developers <info@slint-ui.com>"]
edition = "2021"
license = "GPL-3.0-only OR LicenseRef-Slint-commercial"
description = "A language server protocol implementation for slint. "
repository = "https://github.com/slint-ui/slint"
homepage = "https://slint-ui.com"
categories = ["gui", "development-tools"]
keywords = ["lsp"]
rust-version = "1.59"
[package.metadata.bundle]
name = "Slint Live Preview"
icon = ["../../logo/slint-logo-small-light-128x128.png"]
[[bin]]
name = "slint-lsp"
path = "main.rs"
[lib]
# lib is there only for the web
crate-type = ["cdylib"]
path = "wasm_main.rs"
# On windows building this package creates slint-lsp.exe and slint-lsp.dll.
# To avoid that both end up trying to create slint-lsp.pdb for their debug
# symbols, rename the lib.
name = "slint_lsp_wasm"
[features]
backend-qt = ["slint-interpreter/backend-qt", "preview"]
backend-gl-all = ["slint-interpreter/backend-gl-all", "preview"]
backend-gl-wayland = ["slint-interpreter/backend-gl-wayland", "preview"]
backend-gl-x11 = ["slint-interpreter/backend-gl-x11", "preview"]
preview = ["slint-interpreter", "i-slint-core", "i-slint-backend-selector"]
default = ["backend-qt", "backend-gl-all", "preview"]
[dependencies]
i-slint-compiler = { version = "=0.2.5", path = "../../internal/compiler"}
clap = { version = "3.1", features = ["derive", "wrap_help"] }
dunce = "1.0.1"
euclid = "0.22"
lsp-types = "0.93.0"
serde = "1.0.118"
serde_json = "1.0.60"
# for the preview
i-slint-core = { version = "=0.2.5", path = "../../internal/core", optional = true }
slint-interpreter = { version = "=0.2.5", path = "../../internal/interpreter", default-features = false, features = ["compat-0-2-0"], optional = true }
i-slint-backend-selector = { version = "=0.2.5", path="../../internal/backends/selector", optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
crossbeam-channel = "0.5" # must match the version used by lsp-server
lsp-server = "0.6"
once_cell = "1.9.0"
spin_on = "0.1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2.80", features = ["serde-serialize"] }
wasm-bindgen-futures = "0.4.30"
js-sys = { version = "0.3.57" }
console_error_panic_hook = "0.1.5"
# [package.metadata.wasm-pack.profile.release]
# wasm-opt = false