Cargo Features

[dependencies]
resvg = { version = "0.44.0", default-features = false, features = ["text", "system-fonts", "memmap-fonts", "raster-images"] }
default = memmap-fonts, raster-images, system-fonts, text

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

text default

Enables SVG Text support.
Adds around 400KiB to your binary.

Enables text of usvg

Required by the binary

system-fonts default

Enables system fonts loading (only for text).

Enables system-fonts of usvg

Required by the binary

memmap-fonts default

Enables font files memmaping for faster loading (only for text).

Enables memmap-fonts of usvg

Required by the binary

raster-images default = gif, image-webp

Enables decoding and rendering of raster images. When disabled, image elements with SVG data will still be rendered. Adds around 200KiB to your binary.

Enables zune-jpeg

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.

gif raster-images
image-webp raster-images

Enables image-webp ^0.1.3