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]
5name = "slint-node"
6description = "Internal Slint Runtime Library for NodeJS API."
7authors.workspace = true
8documentation.workspace = true
9edition.workspace = true
10homepage.workspace = true
11keywords.workspace = true
12license.workspace = true
13repository.workspace = true
14rust-version.workspace = true
15version.workspace = true
16categories = ["gui", "development-tools"]
17build = "build.rs"
18
19[lib]
20crate-type = ["cdylib"]
21
22[features]
23default = ["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
27backend-qt = ["slint-interpreter/backend-qt"]
28backend-winit = ["slint-interpreter/backend-winit"]
29backend-winit-x11 = ["slint-interpreter/backend-winit-x11"]
30backend-winit-wayland = ["slint-interpreter/backend-winit-wayland"]
31backend-linuxkms = ["slint-interpreter/backend-linuxkms"]
32backend-linuxkms-noseat = ["slint-interpreter/backend-linuxkms-noseat"]
33renderer-femtovg = ["slint-interpreter/renderer-femtovg"]
34renderer-skia = ["slint-interpreter/renderer-skia"]
35renderer-skia-opengl = ["slint-interpreter/renderer-skia-opengl"]
36renderer-skia-vulkan = ["slint-interpreter/renderer-skia-vulkan"]
37renderer-software = ["slint-interpreter/renderer-software"]
38accessibility = ["slint-interpreter/accessibility"]
39
40[dependencies]
41napi = { version = "2.14.0", default-features = false, features = ["napi8"] }
42napi-derive = "2.14.0"
43i-slint-compiler = { workspace = true, features = ["default"] }
44i-slint-core = { workspace = true, features = ["default"] }
45i-slint-backend-selector = { workspace = true }
46slint-interpreter = { workspace = true, default-features = false, features = ["display-diagnostics", "internal", "compat-1-2"] }
47spin_on = "0.1"
48css-color-parser2 = { workspace = true }
49itertools = { workspace = true }
50send_wrapper = { workspace = true }
51
52[build-dependencies]
53napi-build = "2.1.0"
54