Skip to content

Commit

Permalink
Use gl and textlayout for Skia on all platforms
Browse files Browse the repository at this point in the history
Egl, X11 and Wayland are not needed in our use cases.
  • Loading branch information
fredizzimo committed Oct 9, 2023
1 parent 8949ceb commit 84f8dd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
shlex = "1.1.0"
simple_moving_average = "0.1.2"
skia-safe = { version = "0.62.0", features = ["gl", "textlayout"] }
spin_sleep = "1.1.1"
strum = { version = "0.25.0", features = ["derive"] }
swash = "0.1.8"
Expand All @@ -70,19 +71,16 @@ serial_test = "2.0.0"
[target.'cfg(target_os = "windows")'.dependencies]
# NOTE: winerror is only needed because the indirect dependency parity-tokio-ipc does not set it even if it uses it
winapi = { version = "0.3.9", features = ["winuser", "wincon", "winerror", "dwmapi"] }
skia-safe = { version = "0.62.0", features = ["gl", "textlayout"] }

[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.24.0"
objc = "0.2.7"
skia-safe = { version = "0.62.0", features = ["gl", "textlayout"] }

[target.'cfg(target_os = "linux")'.dependencies]
nix = { version = "0.26.2", features = ["poll"] }
wayland-client = "0.30.2"
wayland-sys = "0.30.1"
wayland-backend = "0.1.2"
skia-safe = { version = "0.62.0", features = ["egl", "gl", "svg", "textlayout", "wayland", "x11"] }

[target.'cfg(target_os = "windows")'.build-dependencies]
winres = "0.1.12"
Expand Down

0 comments on commit 84f8dd1

Please sign in to comment.