Skip to content

Commit

Permalink
Update Skia Rust Bindings
Browse files Browse the repository at this point in the history
See https://github.com/rust-skia/rust-skia/releases/tag/0.70.0 for a list of changes.

The main change for us is that the D3D API was ported to the modern windows rust crate.
  • Loading branch information
tronical committed Jan 19, 2024
1 parent 8cee95e commit f809b3f
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 157 deletions.
11 changes: 5 additions & 6 deletions internal/renderers/skia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pin-weak = "1"
scoped-tls-hkt = "0.1"
raw-window-handle = { version = "0.5", features = ["std"] }

skia-safe = { version = "0.69.0", features = ["textlayout"] }
skia-safe = { version = "0.70.0", features = ["textlayout"] }
glow = { version = "0.13" }
unicode-segmentation = { version = "1.8.0" }

Expand All @@ -57,9 +57,8 @@ softbuffer = { workspace = true, default-features = false }
bytemuck = { workspace = true }

[target.'cfg(target_family = "windows")'.dependencies]
winapi = { version = "0.3", features = ["impl-default", "dwrite", "d3d12", "dxgi", "dxgi1_2", "dxgi1_3", "dxgi1_4", "d3d12sdklayers", "synchapi", "winbase"] }
skia-safe = { version = "0.69.0", features = ["d3d"] }
wio = { version = "0.2.2" }
windows = { version = "0.52.0", 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"] }
skia-safe = { version = "0.70.0", features = ["d3d"] }

[target.'cfg(target_os = "macos")'.dependencies]
cocoa = { version = "0.25.0" }
Expand All @@ -69,10 +68,10 @@ metal = { version = "0.27.0" }
foreign-types = { version = "0.5.0" }
objc = { version = "0.2.7" }
core-graphics-types = { version = "0.1.1" }
skia-safe = { version = "0.69.0", features = ["metal"] }
skia-safe = { version = "0.70.0", features = ["metal"] }

[target.'cfg(not(any(target_os = "macos", target_family = "windows")))'.dependencies]
skia-safe = { version = "0.69.0", features = ["gl"] }
skia-safe = { version = "0.70.0", features = ["gl"] }

[build-dependencies]
cfg_aliases = { workspace = true }
Loading

0 comments on commit f809b3f

Please sign in to comment.