1 | [package] |
2 | name = "usvg" |
3 | version = "0.40.0" |
4 | authors = ["Yevhenii Reizner <razrfalcon@gmail.com>" ] |
5 | keywords = ["svg" ] |
6 | license = "MPL-2.0" |
7 | edition = "2021" |
8 | description = "An SVG simplification library." |
9 | categories = ["multimedia::images" ] |
10 | repository = "https://github.com/RazrFalcon/resvg" |
11 | documentation = "https://docs.rs/usvg/" |
12 | readme = "README.md" |
13 | exclude = ["tests" ] |
14 | workspace = "../.." |
15 | |
16 | [[bin]] |
17 | name = "usvg" |
18 | required-features = ["text" , "system-fonts" , "memmap-fonts" ] |
19 | |
20 | [dependencies] |
21 | base64 = "0.21" # for embedded images |
22 | log = "0.4" |
23 | pico-args = { version = "0.5" , features = ["eq-separator" ] } |
24 | strict-num = "0.1.1" |
25 | svgtypes = "0.14.0" |
26 | tiny-skia-path = "0.11.4" |
27 | xmlwriter = "0.1" |
28 | |
29 | # parser |
30 | data-url = "0.3" # for href parsing |
31 | flate2 = { version = "1.0" , default-features = false, features = ["rust_backend" ] } # SVGZ decoding |
32 | imagesize = "0.12" # raster images size detection |
33 | kurbo = "0.9" # Bezier curves utils |
34 | roxmltree = "0.19" |
35 | simplecss = "0.2" |
36 | siphasher = "0.3" # perfect hash implementation |
37 | |
38 | # text |
39 | fontdb = { version = "0.16.1" , default-features = false, optional = true } |
40 | rustybuzz = { version = "0.12" , optional = true } |
41 | unicode-bidi = { version = "0.3" , optional = true } |
42 | unicode-script = { version = "0.5" , optional = true } |
43 | unicode-vo = { version = "0.1" , optional = true } |
44 | |
45 | [dev-dependencies] |
46 | once_cell = "1.5" |
47 | |
48 | [features] |
49 | default = ["text" , "system-fonts" , "memmap-fonts" ] |
50 | # Enables text-to-path conversion support. |
51 | # Adds around 400KiB to your binary. |
52 | text = ["fontdb" , "rustybuzz" , "unicode-bidi" , "unicode-script" , "unicode-vo" ] |
53 | # Enables system fonts loading. |
54 | system-fonts = ["fontdb/fs" , "fontdb/fontconfig" ] |
55 | # Enables font files memmaping for faster loading. |
56 | memmap-fonts = ["fontdb/memmap" ] |
57 | |