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