Skip to content

Commit

Permalink
fix: added binary feature
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Mar 15, 2024
1 parent 66a2be7 commit ee148f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@ lto = true
codegen-units = 1
opt-level = "z"

[[bin]]
name = "rimage"
path = "./src/main.rs"
required-features = ["build-binary"]

[features]
default = ["resize", "quantization", "mozjpeg", "oxipng", "webp", "avif", "threads"]

# Used for binary
build-binary = ["dep:anyhow", "dep:clap", "dep:indoc", "dep:rayon", "dep:pretty_env_logger", "zune-image/default"]

# Enables utilization of threads
threads = ["imagequant?/threads", "mozjpeg?/parallel", "oxipng?/parallel"]

Expand Down

0 comments on commit ee148f1

Please sign in to comment.