# 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"
name = "moosicbox_image"
version = "0.2.0"
authors = ["Braden Steffaniak"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MoosicBox image package"
readme = "README.md"
keywords = [
    "compression",
    "image",
    "resize",
]
categories = [
    "compression",
    "development-tools",
    "multimedia",
]
license = "MPL-2.0"
repository = "https://github.com/MoosicBox/MoosicBox"

[package.metadata]
examples = true

[package.metadata.cargo-machete]
ignored = ["strum"]

[features]
build-binary = [
    "dep:clap",
    "image",
]
default = [
    "image",
    "libvips",
]
fail-on-warnings = [
    "switchy_async/fail-on-warnings",
    "switchy_fs/fail-on-warnings",
]
image = [
    "dep:image",
    "dep:webp",
]
libvips = ["dep:libvips"]
profiling = ["dep:profiling"]

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

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

[dependencies.bytes]
version = "1.11.1"

[dependencies.clap]
version = "4.6.1"
features = ["derive"]
optional = true

[dependencies.image]
version = "0.25.10"
optional = true

[dependencies.log]
version = "0.4.29"
features = ["release_max_level_trace"]

[dependencies.profiling]
version = "1.0.18"
optional = true

[dependencies.strum]
version = "0.28.0"

[dependencies.strum_macros]
version = "0.28.0"

[dependencies.switchy_async]
version = "0.2.0"
features = [
    "macros",
    "tokio",
]
default-features = false

[dependencies.switchy_fs]
version = "0.2.0"
features = ["std"]
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dependencies.webp]
version = "0.3.1"
optional = true

[target.'cfg(not(target_os = "windows"))'.dependencies.libvips]
version = "1.7.6"
optional = true

[target.'cfg(target_os = "windows")'.dependencies]
