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