byteshaver 0.7.1

A configurable and efficient batch image converter written in Rust.
Documentation
//! Conversion core: encoder implementations behind the [`ImageEncoder`]
//! trait; orchestration (pipeline, stats, progress, ctrl+c) lives in
//! `crate::pipeline`.

/// This module provides animated png (APNG) conversion via the png crate
#[cfg(feature = "anim-apng")]
pub mod apng;
/// This module provides avif conversion via the ravif crate
pub mod avif;
/// This module provides animated gif conversion via the image crate
pub mod gif;
/// This module provides jpeg-xl conversion via in-tree libjxl FFI bindings (WS2)
#[cfg(feature = "jxl")]
pub mod jxl;
/// This module provides optimized jpeg conversion via the mozjpeg crate
pub mod mozjpeg;
/// This module provides optimal png conversion via the oxipng crate
#[cfg(feature = "opt-oxipng")]
pub mod oxipng;
/// This module provides png conversion via the png crate
pub mod png;
/// This module defines the encoder abstraction
pub mod traits;
/// This module provides webp conversion via the webp crate
pub mod webp;
/// This module provides animated webp conversion via the webp-animation crate
#[cfg(feature = "anim-webp")]
pub mod webp_anim;
/// This module provides webp conversion via the image crate
pub mod webp_image;

// Include dependency version numbers
include!(concat!(env!("OUT_DIR"), "/versions.rs"));

/// Version of a build dependency from the generated table (newest entry,
/// `"unknown"` when absent) — used by the encoders' identity lines.
pub(crate) fn dependency_version(name: &str) -> &'static str {
    DEPENDENCIES
        .iter()
        .rfind(|&&(dependency, _)| dependency == name)
        .map_or("unknown", |&(_, version)| version)
}

pub use traits::{EncoderRegistry, ImageEncoder, ThreadBudget};