-
Notifications
You must be signed in to change notification settings - Fork 19
/
Cargo.toml
129 lines (116 loc) · 3.78 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[package]
name = "rimage"
version = "0.11.0-next.3"
edition = "2021"
description = "Optimize images natively with best-in-class codecs"
license = "MIT OR Apache-2.0"
readme = "README.md"
authors = ["Vladyslav Vladinov <[email protected]>"]
keywords = ["image", "compression", "encoder"]
categories = ["compression", "multimedia::images"]
repository = "https://github.com/SalOne22/rimage"
documentation = "https://docs.rs/rimage"
homepage = "https://lib.rs/rimage"
include = ["/README.md", "/Cargo.toml", "/src/**/*.rs"]
build = "build.rs"
[package.metadata.winres]
LegalCopyright = "Copyright Vladyslav Vladinov © 2024"
FileDescription = "Powerful img optimization CLI tool by Rust"
[build-dependencies]
winres = { version = "0.1.12", default-features = false }
[profile.release]
lto = true
codegen-units = 1
strip = true
panic = "abort"
[[bin]]
name = "rimage"
path = "./src/main.rs"
required-features = ["build-binary"]
[features]
default = [
"resize",
"quantization",
"mozjpeg",
"oxipng",
"webp",
"avif",
"tiff",
"threads",
"metadata",
]
# Used for binary
build-binary = [
"dep:anyhow",
"dep:clap",
"dep:indoc",
"dep:rayon",
"dep:pretty_env_logger",
"dep:zune-imageprocs",
"dep:glob",
"zune-image/default",
"dep:indicatif",
"dep:indicatif-log-bridge",
"dep:console",
"dep:regex",
]
# Enables utilization of threads
threads = ["imagequant?/threads", "mozjpeg?/parallel", "oxipng?/parallel"]
# Enables metadata support
metadata = ["dep:kamadak-exif", "zune-image/metadata"]
# Enables resize operation
resize = ["dep:fast_image_resize"]
# Enables quantize operation
quantization = ["dep:imagequant", "dep:rgb"]
# Enables mozjpeg codec
mozjpeg = ["dep:mozjpeg"]
# Enables oxipng codec
oxipng = ["dep:oxipng"]
# Enables webp codec
webp = ["dep:webp"]
# Enables avif codec
avif = ["dep:ravif", "dep:libavif", "dep:rgb"]
# Enables tiff codec
tiff = ["dep:tiff"]
icc = ["dep:lcms2"]
console = ["dep:console"]
[dependencies]
zune-core = "0.5.0-rc2"
log = "0.4.22"
zune-image = { version = "0.5.0-rc0", default-features = false }
fast_image_resize = { version = "3.0.4", optional = true }
imagequant = { version = "4.3.3", default-features = false, optional = true }
rgb = { version = "0.8.45", optional = true }
mozjpeg = { version = "0.10.10", default-features = false, features = [
"with_simd",
], optional = true }
oxipng = { version = "9.1", default-features = false, features = [
"zopfli",
"filetime",
], optional = true }
webp = { version = "0.3.0", default-features = false, optional = true }
ravif = { version = "0.11.10", optional = true }
libavif = { version = "0.14.0", default-features = false, features = [
"codec-aom",
], optional = true }
lcms2 = { version = "6.1.0", optional = true }
tiff = { version = "0.9.1", default-features = false, optional = true }
# cli
anyhow = { version = "1.0.92", optional = true }
clap = { version = "4.5.20", features = ["cargo", "string"], optional = true }
indoc = { version = "2.0.5", optional = true }
pretty_env_logger = { version = "0.5.0", optional = true }
rayon = { version = "1.10.0", optional = true }
zune-imageprocs = { version = "0.5.0-rc0", features = [
"exif",
], optional = true }
kamadak-exif = { version = "0.5.5", optional = true }
indicatif = { version = "0.17.8", features = ["rayon"], optional = true }
indicatif-log-bridge = { version = "0.2.3", optional = true }
console = { version = "0.15.8", optional = true }
regex = { version = "1.11.0", optional = true }
[target.'cfg(windows)'.dependencies]
glob = { version = "0.3.1", optional = true }
[dev-dependencies]
zune-core = { version = "0.5.0-rc2", features = ["std"] }
zune-image = "0.5.0-rc0"