-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
52 lines (44 loc) · 1.4 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
[package]
name = "ocrlocate"
version = "0.3.0"
authors = ["bep"]
license = "MIT OR Apache-2.0"
edition = "2021"
description = "Index and search a directory of images with OCR (optical character recognition)"
repository = "https://github.com/bepvte/ocrlocate"
keywords = ["ocr", "image", "tesseract"]
categories = ["command-line-utilities", "multimedia::images"]
[features]
default = ["regex"]
bundled = ["leptess/bundled"]
regex = ["dep:regex", "rusqlite/functions"]
[dependencies]
anyhow = "1.0.79"
clap = { version = "4.4.18", features = ["cargo", "wrap_help", "env"] }
dirs = "5.0.1"
itertools = "0.12.0"
kdam = { version = "0.5.1", features = ["rayon"] }
rayon = "1.8.1"
rusqlite = { version = "0.31.0", features = ["bundled"] }
walkdir = "2.4.0"
glob = "0.3.1"
leptess = { version = "0.15.0", default-features = false }
leptonica-plumbing = "1.4.0"
camino = "1.1.6"
imagesize = "0.12.0"
regex = { version = "1.10.3", optional = true }
[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = { version = "0.5.4", features = ["unprefixed_malloc_on_supported_platforms"] }
[workspace]
members = [".", "libs/*"]
[patch.crates-io]
leptess = { path = "./libs/leptess" }
tesseract-plumbing = { path = "./libs/tesseract-plumbing" }
tesseract-sys = { path = "./libs/tesseract-sys" }
[profile.release]
opt-level = 3
strip = false
debug = 1 # for perf analysis
lto = "thin"
[dev-dependencies]
tempfile = "3.9.0"