[dependencies.image]
default-features = false
optional = true
version = "0.25.0"
[dependencies.palette]
default-features = false
version = "0.7.6"
[dependencies.quantette]
default-features = false
features = ["kmeans"]
version = "0.5.1"
[dependencies.rayon]
optional = true
version = "1.10.0"
[features]
default = ["threads", "image"]
image = ["quantette/image", "std", "dep:image"]
std = ["quantette/std"]
threads = ["quantette/threads", "rayon", "std"]
[lib]
name = "okolors"
path = "src/lib.rs"
[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"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["multimedia::images"]
description = "Create color palettes from images by performing k-means clustering in the Oklab color space."
edition = "2024"
include = ["src", "CHANGELOG.md"]
keywords = ["palette", "theme", "color", "oklab", "kmeans"]
license = "MIT OR Apache-2.0"
name = "okolors"
readme = "README.md"
repository = "https://github.com/IanManske/Okolors"
rust-version = "1.90"
version = "0.9.0"
[[package.metadata.docs.rs]]
all-features = true
[target."cfg(any())".dependencies.flate2]
default-features = false
optional = true
version = "1.0.24"
[target."cfg(any())".dependencies.tap]
default-features = false
optional = true
version = "1.0.1"