summaryrefslogtreecommitdiff
path: root/rsvg/Cargo.toml
blob: aa06717f57f3d6788b83311fd4a621392c541a1b (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[package]
name = "librsvg"
documentation = "https://gnome.pages.gitlab.gnome.org/librsvg/doc/rsvg/index.html"
version.workspace = true
authors.workspace = true
description.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
edition.workspace = true
rust-version.workspace = true

[package.metadata.system-deps]
cairo-pdf = { version = "1.16", optional = true }
cairo-ps = { version = "1.16", optional = true }
cairo-svg = { version = "1.16", optional = true }
gdk-pixbuf = { name = "gdk-pixbuf-2.0", version = "2.20" }
gio = { name = "gio-2.0", version = "2.24" }
glib = { name = "glib-2.0", version = "2.50" }
pangocairo = "1.46"

[package.metadata.system-deps.'cfg(windows)']
fontconfig = { version = "1.7", optional = true }
pangoft2 = { version = "1.46", optional = true }
harfbuzz = { version = "2.0", optional = true }
freetype2 = { version = "20.0.14", optional = true }
cairo = { version = "1.16", optional = true }
cairo-gobject = { version = "1.16", optional = true }
cairo-png = { version = "1.16", optional = true }
libxml2 = { name = "libxml-2.0", version = "2.9", optional = true  }

[package.metadata.system-deps.'cfg(not(windows))']
fontconfig = { version = "1.7" }
pangoft2 = { version = "1.46" }
cairo = "1.16"
cairo-gobject = "1.16"
cairo-png = "1.16"
harfbuzz = "2.0"
freetype2 = "20.0.14"
libxml2 = { name = "libxml-2.0", version = "2.9" }

[features]
c-api = []
test-utils = ["yeslogic-fontconfig-sys"]

[lib]
name = "rsvg"

[dependencies]
# Keep these in sync with respect to the cairo-rs version:
#   src/lib.rs - toplevel example in the docs
byteorder = "1.4"
cairo-rs = { version = "0.17", features=["v1_16", "png", "pdf", "ps", "svg"] }
cast = "0.3.0"
cssparser = "0.29.0"
data-url = "0.2.0"
encoding_rs = "0.8.32"
float-cmp = "0.9.0"
gdk-pixbuf = "0.17"
gio = "0.17"
glib = "0.17"
itertools = "0.10.3"
language-tags = "0.3.1"
libc = "0.2"
locale_config = "*" # recommended explicitly by locale_config's README.md
markup5ever = "0.11.0"
nalgebra = "0.32.1"
num-traits = "0.2"
once_cell = "1.2.0"
pango = { version = "0.17", features = ["v1_46"] }
pangocairo = "0.17"
rayon = "1"
rctree = "0.5.0"
regex = "1.7.1"
rgb = { version="0.8", features=["argb"] }
selectors = "0.24.0"
string_cache = "0.8.0"
tinyvec = { version = "1.2.0", features = ["alloc", "rustc_1_55"] }
url = "2"
xml5ever = "0.17.0"

[target.'cfg(not(windows))'.dependencies]
yeslogic-fontconfig-sys = { version = "4.0.1", optional = true }

[dev-dependencies]
anyhow = "1.0"
chrono = { version = "0.4.23", default-features = false, features = ["clock", "std"] }
criterion = "0.4"
lopdf = "0.30.0"
matches = "0.1"
png = "0.17.2"
predicates = "3.0.3"
proptest = "1.0.0"
quick-error = "2.0.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tempfile = "3"
#librsvg = { path = ".", features = ["tests"] }

[build-dependencies]
system-deps = "6.0.0"

[[bench]]
name = "box_blur"
harness = false

[[bench]]
name = "composite"
harness = false

[[bench]]
name = "lighting"
harness = false

[[bench]]
name = "path_parser"
harness = false

[[bench]]
name = "pixbuf_from_surface"
harness = false

[[bench]]
name = "pixel_iterators"
harness = false

[[bench]]
name = "pixel_ops"
harness = false

[[bench]]
name = "srgb"
harness = false

[[bench]]
name = "surface_from_pixbuf"
harness = false