summaryrefslogtreecommitdiff
path: root/Cargo.toml
blob: cca1f34cbb0ad06b2343ca2771db52e2b738d848 (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
[package]
name = "resvg"
# When updating version, also modify html_root_url in the lib.rs, in the README and in the rendersvg
version = "0.4.0"
authors = ["Evgeniy Reizner <razrfalcon@gmail.com>"]
keywords = ["svg", "render", "raster"]
license = "MPL-2.0"
description = "An SVG rendering library."
documentation = "https://docs.rs/resvg/"
repository = "https://github.com/RazrFalcon/resvg"
readme = "README.md"
categories = ["multimedia::images"]

[workspace]
members = [
    "capi",
    "tools/rendersvg",
    "examples/cairo-rs",
]
exclude = [
    "examples/cairo-rs",
    "testing_tools",
    "workdir-qt", # for CI tests
    "workdir-cairo", # for CI tests
]

[badges]
travis-ci = { repository = "RazrFalcon/resvg" }

[dependencies]
log = "0.4.5"
rgb = "0.8.9"
usvg = "0.4"
unicode-segmentation = "1.2.1"

# cairo backend
cairo-rs = { version = "0.5", features = ["png"], optional = true }
gdk-pixbuf = { version = "0.5", optional = true }
pango = { version = "0.5", optional = true }
pangocairo = { version = "0.6", optional = true }

# qt backend
resvg-qt = { version = "0.4", optional = true }

[features]
cairo-backend = ["cairo-rs", "pango", "pangocairo", "gdk-pixbuf"]
qt-backend = ["resvg-qt"]

[lib]
doctest = false

[profile.release]
lto = true