1 | [package] |
2 | name = "resvg" |
3 | version = "0.40.0" |
4 | authors = ["Yevhenii Reizner <razrfalcon@gmail.com>" ] |
5 | keywords = ["svg" , "render" , "raster" ] |
6 | license = "MPL-2.0" |
7 | edition = "2021" |
8 | description = "An SVG rendering library." |
9 | repository = "https://github.com/RazrFalcon/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.12" , optional = true } |
19 | jpeg-decoder = { version = "0.3" , default-features = false, features = ["platform_independent" ], optional = true } |
20 | log = "0.4" |
21 | pico-args = { version = "0.5" , features = ["eq-separator" ] } |
22 | png = { version = "0.17" , optional = true } |
23 | rgb = "0.8" |
24 | svgtypes = "0.14.0" |
25 | tiny-skia = "0.11.4" |
26 | usvg = { path = "../usvg" , version = "0.40.0" , default-features = false } |
27 | |
28 | [dev-dependencies] |
29 | once_cell = "1.5" |
30 | |
31 | [features] |
32 | default = ["text" , "system-fonts" , "memmap-fonts" , "raster-images" ] |
33 | # Enables SVG Text support. |
34 | # Adds around 400KiB to your binary. |
35 | text = ["usvg/text" ] |
36 | # Enables system fonts loading (only for `text`). |
37 | system-fonts = ["usvg/system-fonts" ] |
38 | # Enables font files memmaping for faster loading (only for `text`). |
39 | memmap-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. |
43 | raster-images = ["gif" , "jpeg-decoder" , "png" ] |
44 | |