quantette 0.6.0

Fast and high quality image quantization and palette generation.
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.90"
name = "quantette"
version = "0.6.0"
build = false
include = ["src"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast and high quality image quantization and palette generation."
readme = "README.md"
keywords = [
    "quantization",
    "palette",
    "color",
    "dither",
    "kmeans",
]
categories = ["multimedia::images"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/IanManske/quantette"

[[package.metadata.docs.rs]]
all-features = true

[features]
default = [
    "kmeans",
    "threads",
    "image",
]
image = [
    "dep:image",
    "std",
]
kmeans = [
    "rand",
    "rand_xoshiro",
]
std = [
    "wide/std",
    "num-traits/std",
]
threads = [
    "rayon",
    "std",
]

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

[dependencies.bitvec]
version = "1.0.1"
features = ["alloc"]
default-features = false

[dependencies.bytemuck]
version = "1.24.0"
features = [
    "derive",
    "min_const_generics",
    "extern_crate_alloc",
]

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

[dependencies.libm]
version = "0.2.11"
default-features = false

[dependencies.num-traits]
version = "0.2.16"
features = ["libm"]
default-features = false

[dependencies.ordered-float]
version = "5.1.0"
default-features = false

[dependencies.palette]
version = "0.7.6"
features = [
    "alloc",
    "libm",
    "bytemuck",
]
default-features = false

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

[dependencies.rand_xoshiro]
version = "0.8.0"
optional = true

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

[dependencies.ref-cast]
version = "1.0.23"

[dependencies.wide]
version = "1.0.2"
default-features = false

[dev-dependencies.clap]
version = "4.3.0"
features = ["derive"]

[dev-dependencies.color_quant]
version = "1.1.0"

[dev-dependencies.criterion]
version = "0.8.0"

[dev-dependencies.dssim]
version = "3.2.4"

[dev-dependencies.exoquant]
version = "0.2.0"

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

[dev-dependencies.imagequant]
version = "4.2.0"

[dev-dependencies.rgb]
version = "0.8.36"
features = ["as-bytes"]

[target."cfg(any())".dependencies.tap]
version = "1.0.1"
optional = true
default-features = false

[lints.clippy]
dbg_macro = "warn"
if_then_some_else_none = "warn"
lossy_float_literal = "warn"
many_single_char_names = "allow"
module_name_repetitions = "allow"
multiple_unsafe_ops_per_block = "warn"
must_use_candidate = "allow"
needless_raw_strings = "warn"
partial_pub_fields = "warn"
precedence_bits = "warn"
rc_buffer = "warn"
ref_patterns = "warn"
self_named_module_files = "warn"
semicolon_if_nothing_returned = "allow"
semicolon_inside_block = "warn"
str_to_string = "warn"
string_lit_chars_any = "warn"
string_slice = "warn"
string_to_string = "warn"
suspicious_xor_used_as_pow = "warn"
tests_outside_test_module = "warn"
todo = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_self_imports = "warn"
unneeded_field_pattern = "warn"
unreadable_literal = "allow"
unused_trait_names = "warn"
use_debug = "warn"
wildcard_enum_match_arm = "warn"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.complexity]
level = "warn"
priority = -1

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.clippy.perf]
level = "warn"
priority = -1

[lints.clippy.style]
level = "warn"
priority = -1

[lints.clippy.suspicious]
level = "warn"
priority = -1

[lints.rust]
future-incompatible = "warn"
keyword-idents = "warn"
let-underscore = "warn"
nonstandard-style = "warn"
refining-impl-trait = "warn"
rust-2018-idioms = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused = "warn"

[lints.rustdoc]
all = "warn"