-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
44 lines (37 loc) · 964 Bytes
/
Copy pathCargo.toml
File metadata and controls
44 lines (37 loc) · 964 Bytes
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
[package]
edition = "2024"
name = "pdfdown"
version = "0.9.9"
[lib]
crate-type = ["cdylib"]
[dependencies]
hayro-jpeg2000 = { version = "0.3.1", features = ["image"] }
image = { version = "0.25", default-features = false, features = [
"png",
"jpeg",
] }
flate2 = "1.1"
lopdf = "0.39"
napi = { version = "3.0.0", features = ["napi6"] }
napi-derive = "3.0.0"
rayon = "1.11"
tesseract-rs = { version = "0.1", optional = true }
pdfium-render = { version = "0.8", optional = true, default-features = false, features = [
"pdfium_latest",
"image_025",
"thread_safe",
"sync",
] }
[features]
default = []
ocr = ["tesseract-rs"]
render = ["pdfium-render"]
[build-dependencies]
napi-build = "2"
# Pin to the last known-good release for Linux OCR CI.
# native-tls 0.2.17 introduces Protocol::Tlsv13 but misses match arms
# in the OpenSSL fallback path, breaking Linux builds in CI.
native-tls = "=0.2.14"
[profile.release]
lto = true
strip = "symbols"