-
Notifications
You must be signed in to change notification settings - Fork 24
/
Cargo.toml
64 lines (59 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
58
59
60
61
62
63
64
[package]
name = "mupdf"
version = "0.4.4"
authors = ["messense <[email protected]>"]
edition = "2021"
description = "Safe Rust wrapper to MuPDF"
keywords = ["pdf", "mupdf"]
license = "AGPL-3.0"
readme = "README.md"
repository = "https://github.com/messense/mupdf-rs"
[features]
default = ["js", "xps", "svg", "cbz", "img", "html", "epub", "system-fonts", "tesseract"]
# Use system libs for all thirdparty libs
sys-lib = ["mupdf-sys/sys-lib"]
# Use system freetype
sys-lib-freetype = ["mupdf-sys/sys-lib-freetype"]
# Use system gumbo parser
sys-lib-gumbo = ["mupdf-sys/sys-lib-gumbo"]
# Use system harfbuzz
sys-lib-harfbuzz = ["mupdf-sys/sys-lib-harfbuzz"]
# Use system jbig2dec
sys-lib-jbig2dec = ["mupdf-sys/sys-lib-jbig2dec"]
# Use system libjpeg
sys-lib-libjpeg = ["mupdf-sys/sys-lib-libjpeg"]
# Use system openjpeg
sys-lib-openjpeg = ["mupdf-sys/sys-lib-openjpeg"]
# Use system zlib
sys-lib-zlib = ["mupdf-sys/sys-lib-zlib"]
# Use system leptonica
sys-lib-leptonica = ["mupdf-sys/sys-lib-leptonica"]
# Use system tesseract
sys-lib-tesseract = ["mupdf-sys/sys-lib-tesseract"]
tesseract = ["mupdf-sys/tesseract"]
js = ["mupdf-sys/js"]
xps = ["mupdf-sys/xps"]
svg = ["mupdf-sys/svg"]
cbz = ["mupdf-sys/cbz"]
img = ["mupdf-sys/img"]
html = ["mupdf-sys/html"]
epub = ["mupdf-sys/epub"]
all-fonts = ["mupdf-sys/all-fonts"]
system-fonts = ["font-kit"]
[dependencies]
mupdf-sys = { version = "0.4.4", path = "mupdf-sys" }
once_cell = "1.3.1"
num_enum = "0.7.0"
bitflags = "2.0.2"
serde = { version = "1.0.201", features = ["derive"] }
serde_json = "1.0.117"
[dependencies.font-kit]
version = "0.14.1"
optional = true
[workspace]
members = [
".",
"mupdf-sys"
]
[dev-dependencies]
crossbeam-utils = "0.8.1"