This repository was archived by the owner on Aug 14, 2024. It is now read-only.
forked from linebender/resvg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
57 lines (52 loc) · 1.68 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
[package]
name = "resvg"
version = "0.31.0"
authors = ["Yevhenii Reizner <[email protected]>"]
keywords = ["svg", "render", "raster"]
license = "MPL-2.0"
edition = "2018"
description = "An SVG rendering library."
repository = "https://github.com/RazrFalcon/resvg"
exclude = ["tests"]
[workspace]
members = [
"c-api",
"rosvgtree",
"svgfilters",
"usvg",
"usvg-parser",
"usvg-text-layout",
"usvg-tree",
]
[[bin]]
name = "resvg"
required-features = ["filter", "text", "system-fonts", "memmap-fonts"]
[dependencies]
gif = { version = "0.12", optional = true }
jpeg-decoder = { version = "0.3", default-features = false, features = ["platform_independent"], optional = true }
log = "0.4"
pico-args = { version = "0.5", features = ["eq-separator"] }
png = { version = "0.17", optional = true }
rgb = "0.8"
svgfilters = { path = "svgfilters", version = "0.4", optional = true }
svgtypes = "0.11"
tiny-skia = "0.8.3"
usvg = { path = "usvg", version = "0.31.0", default-features = false }
[dev-dependencies]
once_cell = "1.5"
[features]
default = ["filter", "text", "system-fonts", "memmap-fonts", "raster-images"]
# Enables SVG Filter support.
# Adds around 100KiB to your binary.
filter = ["svgfilters"]
# Enables SVG Text support.
# Adds around 400KiB to your binary.
text = ["usvg/text"]
# Enables system fonts loading (only for `text`).
system-fonts = ["usvg/system-fonts"]
# Enables font files memmaping for faster loading (only for `text`).
memmap-fonts = ["usvg/memmap-fonts"]
# Enables decoding and rendering of raster images.
# When disabled, `image` elements with SVG data will still be rendered.
# Adds around 200KiB to your binary.
raster-images = ["gif", "jpeg-decoder", "png"]