-
Notifications
You must be signed in to change notification settings - Fork 213
/
Cargo.toml
45 lines (40 loc) · 1.22 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
[package]
name = "usvg"
version = "0.38.0"
authors = ["Yevhenii Reizner <razrfalcon@gmail.com>"]
keywords = ["svg"]
license = "MPL-2.0"
edition = "2021"
description = "An SVG simplification library."
categories = ["multimedia::images"]
repository = "https://github.com/RazrFalcon/resvg"
documentation = "https://docs.rs/usvg/"
readme = "README.md"
exclude = ["tests"]
workspace = "../.."
[[bin]]
name = "usvg"
required-features = ["text", "system-fonts", "memmap-fonts"]
[dependencies]
base64 = "0.21" # for embedded images
log = "0.4"
pico-args = { version = "0.5", features = ["eq-separator"] }
usvg-parser = { path = "../usvg-parser", version = "0.38.0" }
usvg-tree = { path = "../usvg-tree", version = "0.38.0" }
xmlwriter = "0.1"
[dependencies.usvg-text-layout]
path = "../usvg-text-layout"
version = "0.38.0"
default-features = false
optional = true
[dev-dependencies]
once_cell = "1.5"
[features]
default = ["text", "system-fonts", "memmap-fonts"]
# Enables text-to-path conversion support.
# Adds around 400KiB to your binary.
text = ["usvg-text-layout"]
# Enables system fonts loading.
system-fonts = ["usvg-text-layout/system-fonts"]
# Enables font files memmaping for faster loading.
memmap-fonts = ["usvg-text-layout/memmap-fonts"]