-
Notifications
You must be signed in to change notification settings - Fork 16
/
Cargo.toml
80 lines (69 loc) · 2.83 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
[package]
name = "rimage"
version = "0.11.0-next.1"
edition = "2021"
description = "Optimize images natively with best-in-class codecs"
license = "MIT OR Apache-2.0"
readme = "README.md"
authors = ["Vladyslav Vladinov <vladinov.dev@gmail.com>"]
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"]
[profile.release]
lto = true
codegen-units = 1
strip = true
[[bin]]
name = "rimage"
path = "./src/main.rs"
required-features = ["build-binary"]
[features]
default = ["resize", "quantization", "mozjpeg", "oxipng", "webp", "avif", "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"]
# 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"]
icc = ["dep:lcms2"]
[dependencies]
zune-core = "0.5.0-rc1"
log = "0.4.21"
zune-image = { version = "0.5.0-rc0", default-features = false }
fast_image_resize = { version = "3.0.4", optional = true }
imagequant = { version = "4.3.1", default-features = false, optional = true }
rgb = { version = "0.8.37", optional = true }
mozjpeg = { version = "0.10.7", 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.4", optional = true }
libavif = { version = "0.13.0", default-features = false, features = ["codec-aom"], optional = true }
lcms2 = { version = "6.1.0", optional = true }
# cli
anyhow = { version = "1.0.86", optional = true }
clap = { version = "4.5.1", 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 }
[target.'cfg(windows)'.dependencies]
glob = { version = "0.3.1", optional = true }
[dev-dependencies]
zune-core = { version = "0.5.0-rc1", features = ["std"] }
zune-image = "0.5.0-rc0"