1 | [package] |
2 | name = "usvg" |
3 | version = "0.45.1" |
4 | keywords = ["svg" ] |
5 | license.workspace = true |
6 | edition = "2021" |
7 | rust-version = "1.65.0" |
8 | description = "An SVG simplification library." |
9 | categories = ["multimedia::images" ] |
10 | repository = "https://github.com/linebender/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.22" # 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.15.3" |
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.13" # raster images size detection |
33 | kurbo = "0.11" # Bezier curves utils |
34 | roxmltree = "0.20" |
35 | simplecss = "0.2" |
36 | siphasher = "1.0" # perfect hash implementation |
37 | |
38 | # text |
39 | fontdb = { version = "0.23.0" , default-features = false, optional = true } |
40 | rustybuzz = { version = "0.20.1" , 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 | |