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