# 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.93"
name = "okmain"
version = "0.1.0"
build = false
exclude = [
    "src/bin/*",
    "benches/*",
    "AGENTS.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OK main colors of your image"
homepage = "https://github.com/si14/okmain"
readme = "README.md"
keywords = [
    "color",
    "image",
    "oklab",
    "palette",
]
categories = ["multimedia::images"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/si14/okmain/tree/main/crates/okmain"

[package.metadata.docs.rs]
features = [
    "image",
    "unstable",
]

[features]
_debug = [
    "dep:clap",
    "image/png",
    "image/jpeg",
]
default = []
image = ["dep:image"]
unstable = []

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

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

[dependencies.fast-srgb8]
version = "1"

[dependencies.image]
version = "0.25"
optional = true
default-features = false

[dependencies.oklab]
version = "1"

[dependencies.rand]
version = "0.10.0"
default-features = false

[dependencies.rand_xoshiro]
version = "0.8"

[dependencies.rgb]
version = "0.8"

[dependencies.snafu]
version = "0.8"
features = ["rust_1_81"]

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

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

[dev-dependencies.pretty_assertions]
version = "1"
features = ["unstable"]
