iqa 1.2.1

A single, ergonomic API over the patchwork of visual quality assessment metrics in the Rust ecosystem.
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.85"
name = "iqa"
version = "1.2.1"
build = "build.rs"
links = "iqa_native"
exclude = [
    "third_party/lcms2/testbed",
    "third_party/lcms2/plugins",
    "third_party/lcms2/doc",
    "third_party/lcms2/Projects",
    "third_party/lcms2/utils",
    "third_party/lcms2/m4",
    "third_party/highway/g3doc",
    "third_party/highway/docs",
    "third_party/highway/debian",
    "third_party/ssimulacra2/*.svg",
    "references/*.pdf",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A single, ergonomic API over the patchwork of visual quality assessment metrics in the Rust ecosystem."
documentation = "https://docs.rs/iqa"
readme = "README.md"
keywords = [
    "iqa",
    "image-quality",
    "ssim",
    "psnr",
    "metrics",
]
categories = [
    "multimedia::images",
    "computer-vision",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/justin13888/iqa-rs"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "psnr",
    "ssim",
    "dssim",
    "ms-ssim",
    "iw-ssim",
    "psnr-hvs-m",
    "ciede2000",
    "ssimulacra2",
    "butteraugli",
    "vendored-lcms2",
]

[features]
butteraugli = ["dep:cc"]
ciede2000 = []
default = [
    "full",
    "vendored-lcms2",
]
dssim = ["ssim"]
full = [
    "psnr",
    "ssim",
    "dssim",
    "ms-ssim",
    "iw-ssim",
    "psnr-hvs-m",
    "ciede2000",
    "ssimulacra2",
    "butteraugli",
]
iw-ssim = ["ssim"]
ms-ssim = ["ssim"]
psnr = []
psnr-hvs-m = []
ssim = []
ssimulacra2 = ["dep:cc"]
system-lcms2 = ["dep:pkg-config"]
vendored-lcms2 = []

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

[[example]]
name = "compare"
path = "examples/compare.rs"
required-features = [
    "psnr",
    "ssim",
    "dssim",
    "ms-ssim",
    "iw-ssim",
    "psnr-hvs-m",
    "ciede2000",
    "ssimulacra2",
    "butteraugli",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
    "pnm",
]
default-features = false

[build-dependencies.cc]
version = "1"
optional = true

[build-dependencies.pkg-config]
version = "0.3"
optional = true