[package] name = "libremetaverse-imaging-skia" version.workspace = true edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true description = "Optional Skia image decoder for the MetaCrate LibreMetaverse rewrite" [features] default = [] skia = ["dep:skia-safe"] [dependencies] libremetaverse-imaging = { version = "0.0.1", path = "../libremetaverse-imaging" } libremetaverse-types = { version = "0.0.1", path = "../libremetaverse-types" } # rust-skia publishes WebP-capable binary caches with Vulkan on Linux/Windows # and without Vulkan on macOS. Matching those sets avoids an hours-long Skia # source build on every supported desktop target. [target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies] skia-safe = { version = "0.99.0", default-features = false, features = ["binary-cache", "jpeg", "pdf", "svg", "textlayout", "vulkan", "webp"], optional = true } [target.'cfg(target_os = "macos")'.dependencies] skia-safe = { version = "0.99.0", default-features = false, features = ["binary-cache", "jpeg", "pdf", "svg", "textlayout", "webp"], optional = true } [target.'cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))'.dependencies] skia-safe = { version = "0.99.0", default-features = false, features = ["binary-cache", "jpeg", "pdf", "webp"], optional = true } [lints] workspace = true