Cargo Features

[dependencies]
skia-safe = { version = "0.80.1", default-features = false, features = ["all-linux", "all-windows", "all-macos", "gl", "egl", "x11", "wayland", "vulkan", "metal", "d3d", "textlayout", "svg", "ureq", "webp", "webp-encode", "webp-decode", "use-system-jpeg-turbo", "binary-cache", "embed-icudtl", "embed-freetype", "freetype-woff2", "save-svg-images", "gpu", "shaper"] }
default = binary-cache, embed-icudtl

These default features are set whenever skia-safe is added without default-features = false somewhere in the dependency tree.

all-linux = egl, gl, svg, textlayout, vulkan, wayland, webp, x11
all-windows = d3d, gl, svg, textlayout, vulkan, webp
all-macos = gl, metal, svg, textlayout, vulkan, webp
gl all-linux? all-macos? all-windows? egl? x11? = gpu

Enables gl of skia-bindings

Affects ganesh::gl, gpu::gl, gpu::interfaces

egl all-linux? wayland? = gl

Enables egl of skia-bindings

Affects gl::make_egl_interface

x11 all-linux? = gl

Enables x11 of skia-bindings

wayland all-linux? = egl

Enables wayland of skia-bindings

vulkan all-linux? all-macos? all-windows? = gpu

Enables vulkan of skia-bindings

Affects ganesh::vk, gpu::vk

metal all-macos? = gpu

Enables metal of skia-bindings

Affects surface_metal::wrap_mtk_view, ganesh::mtl, gpu::mtl

d3d all-windows? = gpu, windows

Enables d3d of skia-bindings

Affects ganesh::d3d, gpu::d3d

textlayout all-linux? all-macos? all-windows? shaper?

Enables textlayout of skia-bindings

Affects modules::shaper, modules::textlayout, modules::shapers

svg all-linux? all-macos? all-windows? = skia-svg-macros

Enables base64 and percent-encoding and svg of skia-bindings

skia-bindings:

textlayout because SkSVGTextContext::SkSVGTextContext() invokes SkShaper::Make.

Affects modules::resources, modules::svg

ureq

Enables ureq

svg

Affects resources::UReqResourceProvider

webp all-linux? all-macos? all-windows? = webp-decode, webp-encode
webp-encode webp?

Enables webp-encode of skia-bindings

Affects encode_::webp_encoder

webp-decode webp?

Enables webp-decode of skia-bindings

Affects decoders::webp_decoder

use-system-jpeg-turbo

Enables use-system-jpeg-turbo of skia-bindings

skia-bindings:

sys libraries

binary-cache default

Enables binary-cache of skia-bindings

embed-icudtl default

Enables embed-icudtl of skia-bindings

embed-freetype

Enables embed-freetype of skia-bindings

freetype-woff2

Enables freetype-woff2 of skia-bindings

save-svg-images

test only

gpu d3d? gl? metal? vulkan?

implied only, do not use

Affects drawable::gpu_draw_handler, types::Budgeted, skia-safe::gpu

shaper = textlayout

Enables shaper of skia-bindings

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

windows d3d?

Enables windows

D3D types & ComPtr

skia-svg-macros svg?