Files
DarkRoom/third_party/i-slint-renderer-skia-1.17.1/Cargo.toml.orig
T
dtourolle dc1add9dbb Vendor wgpu-hal 29.0.4 and i-slint-renderer-skia 1.17.1, unmodified
The Android develop view reads its frame back through memory (TD-1)
because wgpu's Vulkan swapchain never pre-rotates, and a portrait window
on this tablet's landscape panel then tears. The fix is a small patch to
each of these two crates, and this commit is only the ground it lands on:
both are byte-for-byte the crates.io sources the lockfile already
resolved, so the commits that follow are the patch and nothing else.

third_party/ is excluded from the workspace, or every path dependency
under the root would become a member and `--workspace` would test and
lint upstream code as ours. The README says how to carry the patches
across a Slint or wgpu bump, which matters because a stale version here
does not fail the build — cargo just warns and uses the unpatched crate.
2026-09-25 04:18:39 -04:00

113 lines
5.2 KiB
TOML

# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
# cSpell: ignore CFCG
[package]
name = "i-slint-renderer-skia"
description = "Skia based renderer for Slint"
authors.workspace = true
edition = "2024"
homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
build = "build.rs"
[lib]
path = "lib.rs"
# Note, these features need to be kept in sync (along with their defaults) in
# the C++ crate's CMakeLists.txt
[features]
wayland = ["glutin/wayland", "softbuffer/wayland", "softbuffer/wayland-dlopen"]
x11 = ["glutin/x11", "glutin/glx", "softbuffer/x11", "softbuffer/x11-dlopen"]
opengl = []
vulkan = ["skia-safe/vulkan", "dep:ash", "vulkano"]
kms = ["softbuffer/kms"]
# wgpu-{28,29} enables the wgpu surface module for internal use (e.g. linuxkms DRM rendering).
# unstable-wgpu-{28,29} additionally exposes public API integration (GraphicsAPI, texture import).
wgpu-28 = ["i-slint-core/wgpu-28", "dep:wgpu-28", "dep:spin_on", "dep:foreign-types", "dep:ash", "dep:windows-core"]
unstable-wgpu-28 = ["i-slint-core/unstable-wgpu-28", "wgpu-28"]
wgpu-29 = ["i-slint-core/wgpu-29", "dep:wgpu-29", "dep:spin_on", "dep:ash", "dep:windows-core"]
unstable-wgpu-29 = ["i-slint-core/unstable-wgpu-29", "wgpu-29"]
default = ["softbuffer"]
[dependencies]
i-slint-core = { workspace = true, features = ["default", "box-shadow-cache", "shared-parley"] }
i-slint-core-macros = { workspace = true, features = ["default"] }
i-slint-common = { workspace = true, features = ["default"] }
const-field-offset = { version = "0.2", path = "../../../helper_crates/const-field-offset" }
vtable = { workspace = true }
cfg-if = "1"
derive_more = { workspace = true }
lyon_path = { workspace = true }
pin-weak = "1"
scoped-tls-hkt = "0.1"
raw-window-handle = { version = "0.6", features = ["std"] }
clru = { workspace = true }
skia-safe = { version = "0.99.0", features = ["gl"] }
glow = { workspace = true }
unicode-segmentation = { workspace = true }
ash = { version = "^0.38.0", optional = true }
vulkano = { version = "0.35.0", optional = true, default-features = false }
wgpu-28 = { workspace = true, optional = true }
wgpu-29 = { workspace = true, optional = true }
spin_on = { version = "0.1", optional = true }
[target.'cfg(any(not(target_vendor = "apple"), target_os = "macos"))'.dependencies]
glutin = { workspace = true, default-features = false, features = ["egl", "wgl"] }
[target.'cfg(not(target_os = "android"))'.dependencies]
# software renderer fallback
softbuffer = { workspace = true, default-features = false, optional = true }
bytemuck = { workspace = true }
[target.'cfg(target_family = "windows")'.dependencies]
windows = { workspace = true, features = ["Win32", "Win32_System_Com", "Win32_Graphics", "Win32_Graphics_Dxgi", "Win32_Graphics_Direct3D12", "Win32_Graphics_Direct3D", "Win32_Foundation", "Win32_Graphics_Dxgi_Common", "Win32_System_Threading", "Win32_Security"] }
windows-core = { workspace = true, optional = true }
skia-safe = { version = "0.99.0", features = ["d3d"] }
wgpu-28 = { workspace = true, optional = true, features = ["dx12"] }
wgpu-29 = { workspace = true, optional = true, features = ["dx12"] }
[target.'cfg(target_vendor = "apple")'.dependencies]
objc2 = { version = "0.6.0" }
objc2-metal = { version = "0.3.2", default-features = false, features = ["std", "MTLCommandQueue", "MTLCommandBuffer", "MTLDevice", "MTLResource", "MTLTexture", "MTLTypes"] }
objc2-foundation = { version = "0.3.2", default-features = false, features = ["std", "NSGeometry"] }
objc2-quartz-core = { version = "0.3.2", default-features = false, features = ["std", "objc2-metal", "CALayer", "CAMetalLayer", "objc2-core-foundation"] }
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["std", "NSResponder", "NSView"] }
objc2-core-foundation = { version = "0.3.2", default-features = false, features = ["CFCGTypes"] }
skia-safe = { version = "0.99.0", features = ["metal"] }
raw-window-metal = "1.0"
foreign-types = { version = "0.5.0", optional = true }
wgpu-28 = { workspace = true, optional = true, features = ["metal"] }
wgpu-29 = { workspace = true, optional = true, features = ["metal"] }
read-fonts = { workspace = true }
# Pinned to 0.48 to align with read-fonts from parley and avoid duplicated dependencies
write-fonts = { version = "0.48" }
[target.'cfg(not(any(target_vendor = "apple", target_family = "windows")))'.dependencies]
skia-safe = { version = "0.99.0", features = ["gl", "vulkan"] }
wgpu-28 = { workspace = true, optional = true, features = ["vulkan"] }
wgpu-29 = { workspace = true, optional = true, features = ["vulkan"] }
[target.'cfg(all(any(target_os = "ios", target_os="macos", target_os="windows", target_os="android", target_os="linux"), not(target_arch = "arm")))'.dependencies]
skia-safe = { version = "0.99.0", features = ["textlayout"] }
[target.aarch64-apple-ios-sim.dependencies]
# Disabling encoding assertions until https://github.com/madsmtm/objc2/issues/795 is fixed.
objc2 = { version = "0.6.0", features = ["disable-encoding-assertions"] }
[build-dependencies]
cfg_aliases = { workspace = true }
[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]