diff --git a/crates/anyrender_skia/Cargo.toml b/crates/anyrender_skia/Cargo.toml index 220671e..5f496df 100644 --- a/crates/anyrender_skia/Cargo.toml +++ b/crates/anyrender_skia/Cargo.toml @@ -22,7 +22,7 @@ peniko = { workspace = true } raw-window-handle = { workspace = true } softbuffer_window_renderer = { workspace = true, optional = true } pixels_window_renderer = { workspace = true, optional = true } -skia-safe = { version = "0.153.3", features = ["gl", "pdf", "textlayout"]} +skia-safe = { version = "0.153.3", features = ["gl", "pdf"]} oaty = "0.2" hashbrown = "0.17.0" @@ -32,6 +32,10 @@ gl = "0.14.0" ash = "^0.38.0" ash-window = "0.13.0" +# Keep `textlayout` on Windows: rust-skia only publishes a prebuilt Ganesh + GL + Vulkan binary with it. +[target.'cfg(windows)'.dependencies] +skia-safe = { version = "0.153.3", features = ["textlayout"] } + [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { version = "0.3.2", default-features = false, features = ["objc2-quartz-core", "NSView", "NSResponder"] }