Debian Codegraph @

rsvg/Cargo.toml

raw symbols SCIP
1 [package]
2 name = "librsvg"
3 documentation = "https://gnome.pages.gitlab.gnome.org/librsvg/doc/rsvg/index.html"
4 version = "2.62.1"
5 authors.workspace = true
6 description.workspace = true
7 license.workspace = true
8 homepage.workspace = true
9 repository.workspace = true
10 edition.workspace = true
11 rust-version.workspace = true
12 exclude = ["tests/fixtures", "tests/resources"]
13
14 [package.metadata.docs.rs]
15 rustc-args = ["--cfg", "docsrs"]
16 rustdoc-args = ["--cfg", "docsrs"]
17
18 [package.metadata.system-deps]
19 cairo = "1.18"
20 cairo-gobject = "1.18"
21 cairo-png = "1.18"
22 cairo-pdf = { version = "1.18", optional = true }
23 cairo-ps = { version = "1.18", optional = true }
24 cairo-svg = { version = "1.18", optional = true }
25 freetype2 = "20.0.14"
26 gio = { name = "gio-2.0", version = "2.24" }
27 glib = { name = "glib-2.0", version = "2.50" }
28 harfbuzz = "2.0"
29 libxml2 = { name = "libxml-2.0", fallback-names = ["libxml2"], version = "2.9" }
30 pangocairo = "1.50"
31
32 [package.metadata.system-deps.'cfg(any(target_os = "macos", target_os = "windows"))']
33 fontconfig = { version = "1.7", optional = true }
34 pangoft2 = { version = "1.50", optional = true }
35
36 [package.metadata.system-deps.'cfg(all(not(target_os = "macos"), not(target_os = "windows")))']
37 fontconfig = { version = "1.7" }
38 pangoft2 = { version = "1.50" }
39
40 [features]
41 avif = ["image/avif-native"]
42 capi = []
43 test-utils = ["yeslogic-fontconfig-sys"]
44
45 [lib]
46 name = "rsvg"
47
48 [dependencies]
49 # Keep these in sync with respect to the cairo-rs version:
50 # src/lib.rs - toplevel example in the docs
51 cairo-rs = { workspace = true, features = ["v1_16", "png", "pdf", "ps", "svg"] }
52 cast.workspace = true
53 cssparser.workspace = true
54 cssparser-color.workspace = true
55 data-url.workspace = true
56 encoding_rs.workspace = true
57 float-cmp.workspace = true
58 gio.workspace = true
59 glib.workspace = true
60 image = { workspace = true, features = ["jpeg", "png", "gif", "webp"] }
61 itertools.workspace = true
62 language-tags.workspace = true
63 libc.workspace = true
64 locale_config.workspace = true
65 markup5ever.workspace = true
66 mutants.workspace = true
67 nalgebra.workspace = true
68 num-traits.workspace = true
69 pango = { workspace = true, features = ["v1_46"] }
70 pangocairo.workspace = true
71 precomputed-hash.workspace = true
72 rayon.workspace = true
73 rctree.workspace = true
74 regex.workspace = true
75 rgb = { workspace = true, features = ["argb"] }
76 selectors.workspace = true
77 string_cache.workspace = true
78 tinyvec = { workspace = true, features = ["alloc", "rustc_1_55"] }
79 url.workspace = true
80 xml5ever.workspace = true
81
82 [target.'cfg(all(not(target_os = "macos"), not(target_os = "windows")))'.dependencies]
83 yeslogic-fontconfig-sys = { workspace = true, optional = true }
84
85 [dev-dependencies]
86 chrono = { workspace = true, features = ["clock", "std"] }
87 criterion.workspace = true
88 lopdf.workspace = true
89 matches.workspace = true
90 png.workspace = true
91 predicates.workspace = true
92 pretty_assertions.workspace = true
93 proptest.workspace = true
94 quick-error.workspace = true
95 serde = { workspace = true, features = ["derive"] }
96 serde_json.workspace = true
97 tempfile.workspace = true
98
99 [build-dependencies]
100 system-deps.workspace = true
101
102 [lints.rust]
103 unexpected_cfgs = { level = "warn", check-cfg = [
104 'cfg(system_deps_have_fontconfig)',
105 'cfg(system_deps_have_pangoft2)',
106 ] }
107
108 [[bench]]
109 name = "box_blur"
110 harness = false
111
112 [[bench]]
113 name = "composite"
114 harness = false
115
116 [[bench]]
117 name = "lighting"
118 harness = false
119
120 [[bench]]
121 name = "path_parser"
122 harness = false
123
124 [[bench]]
125 name = "pixel_iterators"
126 harness = false
127
128 [[bench]]
129 name = "pixel_ops"
130 harness = false
131
132 [[bench]]
133 name = "srgb"
134 harness = false