1[package]
2name = "resvg"
3version = "0.45.1"
4keywords = ["svg", "render", "raster"]
5license.workspace = true
6edition = "2021"
7rust-version = "1.67.1"
8description = "An SVG rendering library."
9repository = "https://github.com/linebender/resvg"
10exclude = ["tests"]
11workspace = "../.."
12
13[[bin]]
14name = "resvg"
15required-features = ["text", "system-fonts", "memmap-fonts"]
16
17[dependencies]
18gif = { version = "0.13", optional = true }
19image-webp = { version = "0.2.0", optional = true }
20log = "0.4"
21pico-args = { version = "0.5", features = ["eq-separator"] }
22rgb = "0.8"
23svgtypes = "0.15.3"
24tiny-skia = "0.11.4"
25usvg = { path = "../usvg", version = "0.45.1", default-features = false }
26zune-jpeg = { version = "0.4", optional = true }
27
28[dev-dependencies]
29once_cell = "1.5"
30png = "0.17"
31
32[features]
33default = ["text", "system-fonts", "memmap-fonts", "raster-images"]
34# Enables SVG Text support.
35# Adds around 400KiB to your binary.
36text = ["usvg/text"]
37# Enables system fonts loading (only for `text`).
38system-fonts = ["usvg/system-fonts"]
39# Enables font files memmaping for faster loading (only for `text`).
40memmap-fonts = ["usvg/memmap-fonts"]
41# Enables decoding and rendering of raster images.
42# When disabled, `image` elements with SVG data will still be rendered.
43# Adds around 200KiB to your binary.
44raster-images = ["gif", "image-webp", "dep:zune-jpeg"]
45