1 | # Copyright © SixtyFPS GmbH <info@slint.dev> |
2 | # SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial |
3 | |
4 | [package] |
5 | name = "slint-node" |
6 | description = "Internal Slint Runtime Library for NodeJS API." |
7 | authors.workspace = true |
8 | documentation.workspace = true |
9 | edition.workspace = true |
10 | homepage.workspace = true |
11 | keywords.workspace = true |
12 | license.workspace = true |
13 | repository.workspace = true |
14 | rust-version.workspace = true |
15 | version.workspace = true |
16 | categories = ["gui" , "development-tools" ] |
17 | build = "build.rs" |
18 | |
19 | [lib] |
20 | crate-type = ["cdylib" ] |
21 | |
22 | [features] |
23 | default = ["backend-winit" , "renderer-femtovg" , "backend-qt" , "accessibility" ] |
24 | # Keep in sync with features in nightly_snapshot.yaml, cpp_package.yaml, and slint_tool_binary.yaml |
25 | # binaries: default = ["backend-linuxkms-noseat", "backend-winit", "renderer-femtovg", "renderer-skia", "accessibility"] |
26 | |
27 | backend-qt = ["slint-interpreter/backend-qt" ] |
28 | backend-winit = ["slint-interpreter/backend-winit" ] |
29 | backend-winit-x11 = ["slint-interpreter/backend-winit-x11" ] |
30 | backend-winit-wayland = ["slint-interpreter/backend-winit-wayland" ] |
31 | backend-linuxkms = ["slint-interpreter/backend-linuxkms" ] |
32 | backend-linuxkms-noseat = ["slint-interpreter/backend-linuxkms-noseat" ] |
33 | renderer-femtovg = ["slint-interpreter/renderer-femtovg" ] |
34 | renderer-skia = ["slint-interpreter/renderer-skia" ] |
35 | renderer-skia-opengl = ["slint-interpreter/renderer-skia-opengl" ] |
36 | renderer-skia-vulkan = ["slint-interpreter/renderer-skia-vulkan" ] |
37 | renderer-software = ["slint-interpreter/renderer-software" ] |
38 | accessibility = ["slint-interpreter/accessibility" ] |
39 | |
40 | [dependencies] |
41 | napi = { version = "2.14.0" , default-features = false, features = ["napi8" ] } |
42 | napi-derive = "2.14.0" |
43 | i-slint-compiler = { workspace = true, features = ["default" ] } |
44 | i-slint-core = { workspace = true, features = ["default" ] } |
45 | i-slint-backend-selector = { workspace = true } |
46 | slint-interpreter = { workspace = true, default-features = false, features = ["display-diagnostics" , "internal" , "compat-1-2" ] } |
47 | spin_on = "0.1" |
48 | css-color-parser2 = { workspace = true } |
49 | itertools = { workspace = true } |
50 | send_wrapper = { workspace = true } |
51 | |
52 | [build-dependencies] |
53 | napi-build = "2.1.0" |
54 | |