Cargo Features

resvg = { version = "0.41.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, jpeg-decoder, png

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

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
jpeg-decoder raster-images
png raster-images