-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
79 lines (71 loc) · 1.91 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
71
72
73
74
75
76
77
78
79
[workspace]
members = [
".",
"web",
]
[package]
name = "img2text"
version = "0.2.0"
authors = ["yvt <[email protected]>"]
edition = "2018"
license = "MIT/Apache-2.0"
readme = "README.md"
description = "Image-to-text converter"
categories = ["command-line-utilities", "graphics"]
repository = "https://github.com/yvt/img2text"
rust-version = "1.56.1"
[features]
# Enable the `bin`-only deps to facilitate `cargo install`, at cost of
# making it more tedious to use the package as a library. The following are the
# RFCs that will solve this problem:
#
# - [Allow specifying dependencies for individual artifacts]
# (https://github.com/rust-lang/rfcs/pull/2887)
# - [Allow specifying features of the implicit lib dependency]
# (https://github.com/rust-lang/rfcs/pull/3020)
#
default = ["bin"]
# `bin`-only deps
bin = [
"anyhow",
"env_logger",
"console",
"image",
"imageproc",
"clap",
"log",
]
[dependencies]
num-integer = { version = "0.1.42", default-features = false }
num-traits = { version = "0.2.11", default-features = false }
env_logger = { version = "0.8.1", optional = true }
# TODO: `imageproc` currently compiles all algorithms. I hope they break them
# into features...
imageproc = { version = "0.23.0", optional = true }
console = { version = "0.13.0", optional = true }
anyhow = { version = "1.0.34", optional = true }
clap = { version = "3.2", features = ["derive", "wrap_help"], optional = true }
log = { version = "0.4.11", optional = true }
[dev-dependencies]
quickcheck_macros = "1"
quickcheck = "1"
[build-dependencies]
num-integer = { version = "0.1.42", default-features = false }
num-traits = { version = "0.2.11", default-features = false }
[dependencies.image]
version = "0.24.1"
optional = true
default-features = false
features = [
"bmp",
"gif",
"jpeg",
"png",
"tga",
"webp",
]
[profile.release]
panic = "abort"
codegen-units = 1
lto = true
opt-level = "z"