Skip to content

Commit

Permalink
update opt-level, removed unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Dec 19, 2023
1 parent 5aafae2 commit 7083901
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
17 changes: 0 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,27 @@ required-features = ["cli"]
[profile.release]
lto = true
codegen-units = 1
opt-level = "z"

[features]
default = ["cli", "parallel", "quantization", "resizing", "exif", "oxipng"]
# enable usage of threads
parallel = ["mozjpeg/parallel", "imagequant?/threads", "oxipng?/parallel", "jxl-oxide?/rayon", "zune-jpegxl?/threads", "dep:rayon"]
# enable quantization options
quantization = ["dep:imagequant"]
# enable resize options
resizing = ["dep:resize"]
transform = ["dep:transpose"]
# enable automatic exif correction
transform = []
# enable avif encoding
avif = ["dep:ravif", "dep:libavif-image"]
exif = ["dep:kamadak-exif", "transform"]
# enable exif metadata extraction
exif = ["dep:kamadak-exif"]
# enable jpegxl encoding
jxl = ["dep:jxl-oxide", "dep:zune-jpegxl", "dep:zune-core"]
# enable webp encoding
webp = ["image/webp-encoder"]
# enable cli dependencies (dont use as library)
cli = ["dep:clap", "dep:glob", "quantization", "resizing", "exif"]


Expand All @@ -41,7 +51,6 @@ thiserror = "1.0.51"
png = "0.17.10"
rayon = { version = "1.7.0", optional = true }
resize = { version = "0.8.0", optional = true }
transpose = { version = "0.2.2", optional = true }
ravif = { version = "0.11.2", optional = true }
kamadak-exif = { version = "0.5.5", optional = true }
clap = { version = "4.4.2", optional = true }
Expand Down Expand Up @@ -87,3 +96,6 @@ optional = true
[target.'cfg(windows)'.dependencies.glob]
optional = true
version = "0.3.1"

[package.metadata.cargo-udeps.ignore]
normal = ["kamadak-exif"]

0 comments on commit 7083901

Please sign in to comment.