libimgquant 3.0.0

Pure-Rust, BSD-licensed color quantizer: converts RGBA images to 8-bit palette images with alpha for small PNGs and GIFs. Based on libimagequant 2.4.1, improved with color quantization research
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 = "libimgquant"
version = "3.0.0"
build = false
include = [
    "/src/**/*.rs",
    "/tests/**/*.rs",
    "/examples/animated_gif.rs",
    "/LICENSE",
    "/NOTICE",
    "/README.md",
    "/CHANGELOG.md",
    "/BENCHMARKS.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust, BSD-licensed color quantizer: converts RGBA images to 8-bit palette images with alpha for small PNGs and GIFs. Based on libimagequant 2.4.1, improved with color quantization research"
documentation = "https://docs.rs/libimgquant"
readme = "README.md"
keywords = [
    "quantization",
    "palette",
    "pngquant",
    "png",
    "gif",
]
categories = [
    "multimedia::images",
    "compression",
]
license = "BSD-2-Clause"
repository = "https://github.com/kiwina/libimgquant"

[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]

[features]
default = ["threads"]
png = ["dep:png"]
threads = ["dep:rayon"]

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

[[example]]
name = "animated_gif"
path = "examples/animated_gif.rs"
required-features = ["png"]

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

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

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

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

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

[dependencies.png]
version = "0.18.1"
optional = true

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.rgb]
version = "0.8.50"
default-features = false

[dev-dependencies.gif]
version = "0.14"
features = ["std"]
default-features = false

[dev-dependencies.png]
version = "0.18.1"

[dev-dependencies.rayon]
version = "1.10"

[profile.release]
debug = 1