-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Cargo.toml
70 lines (64 loc) · 2.12 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
58
59
60
61
62
63
64
65
66
67
68
69
70
[workspace]
members = ["cli", "tests"]
default-members = ["cli"]
resolver = "2"
[workspace.package]
version = "0.12.0"
authors = ["Laurenz Stampfl <[email protected]>", "Martin Haug <[email protected]>"]
edition = "2021"
repository = "https://github.com/typst/svg2pdf"
readme = "README.md"
license = "MIT OR Apache-2.0"
[workspace.dependencies]
log = "0.4"
svg2pdf = { path = ".", default-features = false, version = "0.12.0" }
clap = { version = "4.5", features = ["derive"] }
clap_complete = "4.5"
clap_mangen = "0.2"
fontdb = "0.21"
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "gif"] }
miniz_oxide = "0.8"
once_cell = "1.18"
oxipng = { version = "9", default-features = false, features = ["filetime", "parallel", "zopfli"] }
pdf-writer = "0.12"
pdfium-render = "=0.8.20"
termcolor = "1.2"
usvg = { version = "0.43", default-features = false }
tiny-skia = "0.11.4"
resvg = { version = "0.43", default-features = false }
subsetter = "0.2"
ttf-parser = { version = "0.24.1" }
siphasher = { version = "1.0.1"}
[package]
name = "svg2pdf"
description = "Convert SVG files to PDFs."
categories = ["encoding", "graphics", "multimedia"]
keywords = ["svg", "pdf", "vector-graphics", "conversion"]
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
[lib]
bench = false
[features]
default = ["image", "filters", "text"]
image = ["dep:image"]
filters = ["image", "dep:tiny-skia", "resvg/raster-images"]
text = [
"usvg/text", "resvg/text", "dep:siphasher",
"dep:subsetter", "dep:ttf-parser", "dep:fontdb",
]
[dependencies]
miniz_oxide = { workspace = true }
once_cell = { workspace = true }
pdf-writer = { workspace = true }
fontdb = { workspace = true, optional = true }
usvg = { workspace = true }
log = { workspace = true }
image = { workspace = true, optional = true }
tiny-skia = { workspace = true, optional = true }
resvg = { workspace = true, optional = true }
subsetter = { workspace = true, optional = true }
ttf-parser = { workspace = true, optional = true }
siphasher = { workspace = true, optional = true }