-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
103 lines (95 loc) · 2.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# SPDX-FileCopyrightText: 2022 Shun Sakai
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
[package]
name = "qrtool"
version = "0.11.6"
authors = ["Shun Sakai <[email protected]>"]
edition = "2021"
rust-version = "1.74.0"
description = "An utility for encoding or decoding QR code"
readme = "README.md"
homepage = "https://sorairolake.github.io/qrtool/"
repository = "https://github.com/sorairolake/qrtool"
license = "Apache-2.0 OR MIT"
keywords = ["qrcode"]
categories = ["command-line-utilities"]
include = ["/LICENSES", "/README.md", "/src"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anstyle = { version = "1.0.10", default-features = false, optional = true }
anstyle-lossy = { version = "1.1.3", optional = true }
anstyle-yansi = { version = "2.0.2", optional = true }
anyhow = "1.0.93"
clap = { version = "4.5.21", features = ["derive", "wrap_help"] }
clap_complete = "4.5.38"
clap_complete_nushell = "4.5.4"
csscolorparser = "0.7.0"
image = { version = "0.25.5", default-features = false, features = ["png", "rayon"] }
is-svg = { version = "0.1.4", optional = true }
oxipng = { version = "9.1.2", default-features = false, features = ["parallel", "zopfli"], optional = true }
qrcode = "0.14.1"
resvg = { version = "0.44.0", default-features = false, optional = true }
rqrr = "0.8.0"
sysexits = "0.8.5"
xbm = { version = "0.1.3", optional = true }
yansi = { version = "1.0.1", default-features = false, optional = true }
[dev-dependencies]
assert_cmd = "2.0.16"
predicates = "3.1.2"
[features]
default = [
"decode-from-bmp",
"decode-from-dds",
"decode-from-ff",
"decode-from-gif",
"decode-from-hdr",
"decode-from-ico",
"decode-from-jpeg",
"decode-from-exr",
"decode-from-pnm",
"decode-from-qoi",
"decode-from-svg",
"decode-from-tga",
"decode-from-tiff",
"decode-from-webp",
"decode-from-xbm",
"optimize-output-png",
"output-as-ansi",
]
decode-from-bmp = ["image/bmp"]
decode-from-dds = ["image/dds"]
decode-from-ff = ["image/ff"]
decode-from-gif = ["image/gif"]
decode-from-hdr = ["image/hdr"]
decode-from-ico = ["image/ico"]
decode-from-jpeg = ["image/jpeg"]
decode-from-exr = ["image/exr"]
decode-from-pnm = ["image/pnm"]
decode-from-qoi = ["image/qoi"]
decode-from-svg = ["dep:is-svg", "dep:resvg"]
decode-from-tga = ["image/tga"]
decode-from-tiff = ["image/tiff"]
decode-from-webp = ["image/webp"]
decode-from-xbm = ["dep:xbm"]
optimize-output-png = ["dep:oxipng"]
output-as-ansi = [
"dep:anstyle",
"dep:anstyle-lossy",
"dep:anstyle-yansi",
"dep:yansi",
]
[lints.clippy]
cargo = { level = "warn", priority = -1 }
multiple_crate_versions = "allow"
nursery = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
[lints.rust]
missing_debug_implementations = "deny"
rust_2018_idioms = { level = "warn", priority = -1 }
unsafe_code = "forbid"
[profile.release]
codegen-units = 1
lto = true
panic = "abort"
strip = true