oximg 0.7.8

High-performance image compression: library, CLI, and self-hostable server (PoC).
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.90"
name = "oximg"
version = "0.7.8"
build = "build.rs"
exclude = ["fuzz/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance image compression: library, CLI, and self-hostable server (PoC)."
readme = "README.md"
keywords = [
    "image",
    "jpeg",
    "resize",
    "compression",
    "server",
]
categories = [
    "multimedia::images",
    "web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/oximg/oximg"

[features]
avif = [
    "dep:avif-serialize",
    "dep:avif-parse",
    "dep:dav1d-sys",
]
bench-internals = []
default = ["server"]
server = [
    "dep:axum",
    "dep:tokio",
    "dep:ureq",
    "dep:hmac",
    "dep:sha2",
    "dep:serde_json",
]

[lib]
name = "oximg"
path = "src/lib.rs"

[[bin]]
name = "oximg"
path = "src/main.rs"
required-features = ["server"]

[[example]]
name = "avif_parity"
path = "bench/tools/avif_parity.rs"
required-features = ["avif"]

[[example]]
name = "decode_bench"
path = "bench/tools/decode_bench.rs"

[[example]]
name = "enc_loop"
path = "bench/tools/enc_loop.rs"
required-features = ["avif"]

[[example]]
name = "probe"
path = "examples/probe.rs"

[[example]]
name = "qcli"
path = "bench/tools/qcli.rs"

[[example]]
name = "resize_bench"
path = "bench/tools/resize_bench.rs"
required-features = ["bench-internals"]

[[example]]
name = "resize_bench_x86"
path = "bench/tools/resize_bench_x86.rs"
required-features = ["bench-internals"]

[[example]]
name = "thumbnail"
path = "examples/thumbnail.rs"

[[example]]
name = "transcode"
path = "examples/transcode.rs"

[[test]]
name = "cli"
path = "tests/cli.rs"

[[test]]
name = "errors"
path = "tests/errors.rs"

[[test]]
name = "formats"
path = "tests/formats.rs"

[[test]]
name = "formats_avif"
path = "tests/formats_avif.rs"

[[test]]
name = "formats_cmyk"
path = "tests/formats_cmyk.rs"

[[test]]
name = "formats_icc"
path = "tests/formats_icc.rs"

[[test]]
name = "formats_orientation"
path = "tests/formats_orientation.rs"

[[test]]
name = "params_overrides"
path = "tests/params_overrides.rs"

[[test]]
name = "server"
path = "tests/server.rs"

[dependencies.anyhow]
version = "1"

[dependencies.avif-parse]
version = "2"
optional = true

[dependencies.avif-serialize]
version = "0.8"
optional = true

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.dav1d-sys]
version = "0.8"
optional = true

[dependencies.fast_image_resize]
version = "5"

[dependencies.hmac]
version = "0.13.0"
optional = true

[dependencies.jpegli]
version = "0.1.0"

[dependencies.libwebp-sys]
version = "0.14"
features = ["neon"]

[dependencies.mimalloc]
version = "0.1.52"
optional = true

[dependencies.moxcms]
version = "0.8"

[dependencies.mozjpeg]
version = "0.10"

[dependencies.png]
version = "0.18.1"

[dependencies.quantette]
version = "0.6"
default-features = false

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.sha2]
version = "0.11.0"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "net",
    "macros",
    "signal",
    "fs",
]
optional = true

[dependencies.ureq]
version = "3.3.0"
optional = true

[target.'cfg(target_arch = "x86_64")'.dependencies.pic-scale]
version = "0.7"

[profile.release]
lto = true
codegen-units = 1