ci: Format toml files

... using taplo with default settings

I tried this with 4 spaces indentation, but the patch is almost as
big as this one, so I went with default settings instead as that
is just easier:-)
This commit is contained in:
Tobias Hunger 2025-03-29 20:54:46 +00:00
parent 51f7834f56
commit cd6f2e2cf2
65 changed files with 1050 additions and 462 deletions

View file

@ -32,19 +32,39 @@ testing = ["dep:i-slint-backend-testing"]
backend-qt = ["i-slint-backend-selector/backend-qt", "std"]
backend-winit = ["i-slint-backend-selector/backend-winit", "std"]
backend-winit-x11 = ["i-slint-backend-selector/backend-winit-x11", "std"]
backend-winit-wayland = ["i-slint-backend-selector/backend-winit-wayland", "std"]
backend-winit-wayland = [
"i-slint-backend-selector/backend-winit-wayland",
"std",
]
backend-linuxkms = ["i-slint-backend-selector/backend-linuxkms", "std"]
backend-linuxkms-noseat = ["i-slint-backend-selector/backend-linuxkms-noseat", "std"]
backend-linuxkms-noseat = [
"i-slint-backend-selector/backend-linuxkms-noseat",
"std",
]
renderer-femtovg = ["i-slint-backend-selector/renderer-femtovg"]
renderer-skia = ["i-slint-backend-selector/renderer-skia", "i-slint-renderer-skia", "raw-window-handle"]
renderer-skia-opengl = ["i-slint-backend-selector/renderer-skia-opengl", "renderer-skia"]
renderer-skia-vulkan = ["i-slint-backend-selector/renderer-skia-vulkan", "renderer-skia"]
renderer-skia = [
"i-slint-backend-selector/renderer-skia",
"i-slint-renderer-skia",
"raw-window-handle",
]
renderer-skia-opengl = [
"i-slint-backend-selector/renderer-skia-opengl",
"renderer-skia",
]
renderer-skia-vulkan = [
"i-slint-backend-selector/renderer-skia-vulkan",
"renderer-skia",
]
renderer-software = ["i-slint-backend-selector/renderer-software"]
gettext = ["i-slint-core/gettext-rs"]
accessibility = ["i-slint-backend-selector/accessibility"]
system-testing = ["i-slint-backend-selector/system-testing"]
std = ["i-slint-core/default", "i-slint-core/image-default-formats", "i-slint-backend-selector"]
std = [
"i-slint-core/default",
"i-slint-core/image-default-formats",
"i-slint-backend-selector",
]
freestanding = ["i-slint-core/libm", "i-slint-core/unsafe-single-threaded"]
experimental = ["i-slint-core/experimental"]
@ -52,14 +72,28 @@ default = ["std", "backend-winit", "renderer-femtovg", "backend-qt"]
[dependencies]
i-slint-backend-selector = { workspace = true, optional = true }
i-slint-backend-testing = { workspace = true, optional = true, features = ["ffi"] }
i-slint-renderer-skia = { workspace = true, features = ["default", "x11", "wayland"], optional = true }
i-slint-backend-testing = { workspace = true, optional = true, features = [
"ffi",
] }
i-slint-renderer-skia = { workspace = true, features = [
"default",
"x11",
"wayland",
], optional = true }
i-slint-core = { workspace = true, features = ["ffi"] }
slint-interpreter = { workspace = true, features = ["ffi", "compat-1-2"], optional = true }
slint-interpreter = { workspace = true, features = [
"ffi",
"compat-1-2",
], optional = true }
raw-window-handle = { version = "0.6", optional = true }
esp-backtrace = { version = "0.14.0", features = ["panic-handler", "println"], optional = true }
esp-println = { version = "0.12.0", default-features = false, features = ["uart"], optional = true }
esp-backtrace = { version = "0.14.0", features = [
"panic-handler",
"println",
], optional = true }
esp-println = { version = "0.12.0", default-features = false, features = [
"uart",
], optional = true }
unicode-segmentation = { workspace = true }
[build-dependencies]

View file

@ -21,7 +21,13 @@ crate-type = ["cdylib"]
path = "rust/lib.rs"
[features]
default = ["backend-winit", "renderer-femtovg", "renderer-software", "backend-qt", "accessibility"]
default = [
"backend-winit",
"renderer-femtovg",
"renderer-software",
"backend-qt",
"accessibility",
]
# Keep in sync with features in nightly_snapshot.yaml, cpp_package.yaml, slint_tool_binary.yaml, and api/python/Cargo.toml
# binaries: default = ["backend-linuxkms-noseat", "backend-winit", "renderer-femtovg", "renderer-skia", "accessibility"]
@ -47,7 +53,11 @@ napi-derive = "2.14.0"
i-slint-compiler = { workspace = true, features = ["default"] }
i-slint-core = { workspace = true, features = ["default", "gettext-rs"] }
i-slint-backend-selector = { workspace = true }
slint-interpreter = { workspace = true, default-features = false, features = ["display-diagnostics", "internal", "compat-1-2"] }
slint-interpreter = { workspace = true, default-features = false, features = [
"display-diagnostics",
"internal",
"compat-1-2",
] }
spin_on = { workspace = true }
css-color-parser2 = { workspace = true }
itertools = { workspace = true }

View file

@ -22,7 +22,13 @@ name = "stub-gen"
path = "stub-gen/main.rs"
[features]
default = ["backend-winit", "renderer-femtovg", "renderer-software", "backend-qt", "accessibility"]
default = [
"backend-winit",
"renderer-femtovg",
"renderer-software",
"backend-qt",
"accessibility",
]
# Keep in sync with features in nightly_snapshot.yaml, cpp_package.yaml, slint_tool_binary.yaml, and api/node/Cargo.toml
# binaries: default = ["backend-linuxkms-noseat", "backend-winit", "renderer-femtovg", "renderer-skia", "accessibility"]
@ -43,9 +49,18 @@ accessibility = ["slint-interpreter/accessibility"]
[dependencies]
i-slint-backend-selector = { workspace = true }
i-slint-core = { workspace = true }
slint-interpreter = { workspace = true, features = ["default", "display-diagnostics", "internal"] }
slint-interpreter = { workspace = true, features = [
"default",
"display-diagnostics",
"internal",
] }
i-slint-compiler = { workspace = true }
pyo3 = { version = "0.21.0", features = ["extension-module", "indexmap", "chrono", "abi3-py310"] }
pyo3 = { version = "0.21.0", features = [
"extension-module",
"indexmap",
"chrono",
"abi3-py310",
] }
indexmap = { version = "2.1.0" }
chrono = "0.4"
spin_on = { workspace = true }

View file

@ -9,30 +9,26 @@ build-backend = "maturin"
name = "slint"
version = "1.11.0a1"
requires-python = ">= 3.12"
authors = [
{name = "Slint Team", email = "info@slint.dev"},
]
authors = [{ name = "Slint Team", email = "info@slint.dev" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: MacOS X",
"Environment :: X11 Applications",
"Environment :: Win32 (MS Windows)",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Rust",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"License :: Other/Proprietary License",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: User Interfaces",
"Topic :: Software Development :: Widget Sets",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
]
dependencies = [
"maturin>=1.8.2",
"Development Status :: 3 - Alpha",
"Environment :: MacOS X",
"Environment :: X11 Applications",
"Environment :: Win32 (MS Windows)",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Rust",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"License :: Other/Proprietary License",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: User Interfaces",
"Topic :: Software Development :: Widget Sets",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
]
dependencies = ["maturin>=1.8.2"]
[project.urls]
Homepage = "https://slint.dev"
@ -46,19 +42,23 @@ dev = ["pytest"]
[dependency-groups]
dev = [
"mypy>=1.15.0",
"nox>=2024.10.9",
"pdoc>=15.0.1",
"pytest>=8.3.4",
"ruff>=0.9.6",
"mypy>=1.15.0",
"nox>=2024.10.9",
"pdoc>=15.0.1",
"pytest>=8.3.4",
"ruff>=0.9.6",
]
[tool.uv]
# Rebuild package when any rust files change
cache-keys = [{file = "pyproject.toml"}, {file = "Cargo.toml"}, {file = "**/*.rs"}]
cache-keys = [
{ file = "pyproject.toml" },
{ file = "Cargo.toml" },
{ file = "**/*.rs" },
]
# Uncomment to build rust code in development mode
# config-settings = { build-args = '--profile=dev' }
[tool.mypy]
strict=true
disallow_subclassing_any=false
strict = true
disallow_subclassing_any = false

View file

@ -22,7 +22,13 @@ default = []
sdf-fonts = ["i-slint-compiler/sdf-fonts"]
[dependencies]
i-slint-compiler = { workspace = true, features = ["default", "rust", "display-diagnostics", "software-renderer", "bundle-translations"] }
i-slint-compiler = { workspace = true, features = [
"default",
"rust",
"display-diagnostics",
"software-renderer",
"bundle-translations",
] }
spin_on = { workspace = true }
toml_edit = { workspace = true }

View file

@ -22,7 +22,12 @@ path = "lib.rs"
default = []
[dependencies]
i-slint-compiler = { workspace = true, features = ["default", "proc_macro_span", "rust", "display-diagnostics"] }
i-slint-compiler = { workspace = true, features = [
"default",
"proc_macro_span",
"rust",
"display-diagnostics",
] }
proc-macro2 = "1.0.17"
quote = "1.0"

View file

@ -61,7 +61,10 @@ log = ["dep:log"]
serde = ["i-slint-core/serde"]
## This feature enables the software renderer to pick up fonts from the operating system for text rendering.
software-renderer-systemfonts = ["renderer-software", "i-slint-core/software-renderer-systemfonts"]
software-renderer-systemfonts = [
"renderer-software",
"i-slint-core/software-renderer-systemfonts",
]
## Slint uses internally some `thread_local` state.
##
@ -82,7 +85,10 @@ accessibility = ["i-slint-backend-selector/accessibility"]
## [`Window::window_handle()`] function that returns a struct that implements
## [HasWindowHandle](raw_window_handle_06::HasWindowHandle) and
## [HasDisplayHandle](raw_window_handle_06::HasDisplayHandle) implementation.
raw-window-handle-06 = ["dep:raw-window-handle-06", "i-slint-backend-selector/raw-window-handle-06"]
raw-window-handle-06 = [
"dep:raw-window-handle-06",
"i-slint-backend-selector/raw-window-handle-06",
]
## Enable the default image formats from the `image` crate, to support additional image formats in [`Image::load_from_path`]
## and `@image-url`. When this feature is disabled, only PNG and JPEG are supported. When enabled,
@ -119,7 +125,11 @@ image-default-formats = ["i-slint-core/image-default-formats"]
## This backend also provides the `native` style.
## It requires Qt 5.15 or later to be installed. If Qt is not installed, the
## backend will not be operational
backend-qt = ["i-slint-backend-selector/backend-qt", "std", "i-slint-backend-qt"]
backend-qt = [
"i-slint-backend-selector/backend-qt",
"std",
"i-slint-backend-qt",
]
## The [winit](https://crates.io/crates/winit) crate is used for the event loop and windowing system integration.
## It supports Windows, macOS, web browsers, X11 and Wayland. X11 and wayland are only available when
@ -133,7 +143,10 @@ backend-winit-x11 = ["i-slint-backend-selector/backend-winit-x11", "std"]
## Simliar to `backend-winit` this enables the winit based event loop but only
## with support for the Wayland window system on Unix.
backend-winit-wayland = ["i-slint-backend-selector/backend-winit-wayland", "std"]
backend-winit-wayland = [
"i-slint-backend-selector/backend-winit-wayland",
"std",
]
## Alias to a backend and renderer that depends on the platform.
## Will select the Qt backend on linux if present, and the winit otherwise
@ -142,12 +155,16 @@ backend-default = ["i-slint-backend-selector/default", "i-slint-backend-qt"]
# deprecated aliases
renderer-winit-femtovg = ["renderer-femtovg"]
renderer-winit-skia = ["renderer-skia"]
renderer-winit-skia-opengl= ["renderer-skia-opengl"]
renderer-winit-skia-vulkan= ["renderer-skia-vulkan"]
renderer-winit-skia-opengl = ["renderer-skia-opengl"]
renderer-winit-skia-vulkan = ["renderer-skia-vulkan"]
renderer-winit-software = ["renderer-software"]
## Render using the [FemtoVG](https://crates.io/crates/femtovg) crate.
renderer-femtovg = ["i-slint-backend-selector/renderer-femtovg", "dep:i-slint-renderer-femtovg", "std"]
renderer-femtovg = [
"i-slint-backend-selector/renderer-femtovg",
"dep:i-slint-renderer-femtovg",
"std",
]
## Render using [Skia](https://skia.org/).
renderer-skia = ["i-slint-backend-selector/renderer-skia", "std"]
@ -159,7 +176,10 @@ renderer-skia-opengl = ["i-slint-backend-selector/renderer-skia-opengl", "std"]
renderer-skia-vulkan = ["i-slint-backend-selector/renderer-skia-vulkan", "std"]
## Render using the software renderer.
renderer-software = ["i-slint-backend-selector/renderer-software", "i-slint-core/software-renderer"]
renderer-software = [
"i-slint-backend-selector/renderer-software",
"i-slint-core/software-renderer",
]
## KMS with Vulkan or EGL and libinput on Linux are used to render the application in full screen mode, without any
## windowing system. Requires libseat. If you don't have libseat, select `backend-linuxkms-noseat` instead. (Experimental)
@ -167,13 +187,22 @@ backend-linuxkms = ["i-slint-backend-selector/backend-linuxkms", "std"]
## KMS with Vulkan or EGL and libinput on Linux are used to render the application in full screen mode, without any
## windowing system. (Experimental)
backend-linuxkms-noseat = ["i-slint-backend-selector/backend-linuxkms-noseat", "std"]
backend-linuxkms-noseat = [
"i-slint-backend-selector/backend-linuxkms-noseat",
"std",
]
## Use the backend based on the [android-activity](https://docs.rs/android-activity) crate. (Using it's native activity feature)
backend-android-activity-06 = ["i-slint-backend-android-activity/native-activity", "i-slint-backend-android-activity/aa-06"]
backend-android-activity-06 = [
"i-slint-backend-android-activity/native-activity",
"i-slint-backend-android-activity/aa-06",
]
## **Deprecated** Use previous version of android-activity. This is mutually exclusive with `backend-android-activity-06`.
backend-android-activity-05 = ["i-slint-backend-android-activity/native-activity", "i-slint-backend-android-activity/aa-05"]
backend-android-activity-05 = [
"i-slint-backend-android-activity/native-activity",
"i-slint-backend-android-activity/aa-05",
]
[dependencies]
i-slint-core = { workspace = true }
@ -206,17 +235,34 @@ i-slint-backend-android-activity = { workspace = true, optional = true }
[dev-dependencies]
slint-build = { path = "../build" }
# The next can not be a workspace dependency because it may not have a version
i-slint-backend-testing = { path = "../../../internal/backends/testing", features = ["internal"] }
i-slint-renderer-skia = { path = "../../../internal/renderers/skia" }
i-slint-backend-testing = { path = "../../../internal/backends/testing", features = [
"internal",
] }
i-slint-renderer-skia = { path = "../../../internal/renderers/skia" }
serde_json = { workspace = true }
serde = { workspace = true }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "net", "io-util"]}
tokio = { version = "1", features = [
"rt-multi-thread",
"macros",
"sync",
"net",
"io-util",
] }
async-compat = { version = "0.2.4" }
bytemuck = { workspace = true }
[target.'cfg(target_os = "linux")'.dependencies]
# this line is there to add the "enable" feature by default, but only on linux
i-slint-backend-qt = { workspace = true, features = [ "enable" ], optional = true }
i-slint-backend-qt = { workspace = true, features = [
"enable",
], optional = true }
[package.metadata.docs.rs]
features = ["document-features", "log", "gettext", "renderer-software", "renderer-femtovg", "raw-window-handle-06"]
features = [
"document-features",
"log",
"gettext",
"renderer-software",
"renderer-femtovg",
"raw-window-handle-06",
]

View file

@ -17,7 +17,13 @@ publish = false
crate-type = ["cdylib"]
[dependencies]
slint-interpreter = { workspace = true, features = ["std", "backend-winit", "renderer-femtovg", "compat-1-2", "internal"] }
slint-interpreter = { workspace = true, features = [
"std",
"backend-winit",
"renderer-femtovg",
"compat-1-2",
"internal",
] }
send_wrapper = { workspace = true }
vtable = { workspace = true }
@ -26,7 +32,13 @@ console_error_panic_hook = { version = "0.1.6", optional = true }
js-sys = "0.3.44"
wasm-bindgen-futures = { version = "0.4.18" }
wasm-bindgen = { version = "0.2.66" }
web-sys = { workspace = true, features = ["Request", "RequestInit", "RequestMode", "Response", "Window"] }
web-sys = { workspace = true, features = [
"Request",
"RequestInit",
"RequestMode",
"Response",
"Window",
] }
#[dev-dependencies]
#wasm-bindgen-test = "0.3.13"