-
Notifications
You must be signed in to change notification settings - Fork 229
/
Cargo.toml
58 lines (53 loc) · 1.39 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[package]
name = "usvg"
version = "0.16.0"
authors = ["Yevhenii Reizner <[email protected]>"]
keywords = ["svg"]
license = "MPL-2.0"
edition = "2018"
description = "An SVG simplification library."
categories = ["multimedia::images"]
repository = "https://github.com/RazrFalcon/resvg"
documentation = "https://docs.rs/usvg/"
readme = "README.md"
exclude = ["testing-tools/**"]
workspace = ".."
[[bin]]
name = "usvg"
required-features = ["system-fonts", "text"]
[dependencies]
base64 = "0.13"
data-url = "0.1"
flate2 = { version = "1.0", default-features = false, features = ["rust_backend"]}
kurbo = "=0.8.0" # https://github.com/linebender/kurbo/issues/176
log = "0.4"
pico-args = "0.4"
rctree = "0.4"
xmlwriter = "0.1"
# for svgtree
roxmltree = "0.14"
simplecss = "0.2.1"
siphasher = "0.3"
svgtypes = "0.6"
# for text to path
fontdb = { version = "0.6", optional = true, default-features = false }
rustybuzz = { version = "0.4", optional = true }
memmap2 = { version = "0.3", optional = true }
ttf-parser = { version = "0.12", optional = true }
unicode-bidi = { version = "0.3", optional = true }
unicode-script = { version = "0.5", optional = true }
unicode-vo = { version = "0.1", optional = true }
[features]
default = ["system-fonts", "text"]
text = [
"fontdb",
"rustybuzz",
"ttf-parser",
"unicode-bidi",
"unicode-script",
"unicode-vo",
]
system-fonts = [
"fontdb/fs",
"memmap2",
]