From c887f5fef803e720052898b9561028dfd50e51db Mon Sep 17 00:00:00 2001 From: gennyble Date: Tue, 16 Jan 2024 15:06:29 -0600 Subject: ability to choose kmeans implementation --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index e0cdfc4..21a50b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,13 @@ repository = "https://github.com/gennyble/colorsquash" rgb = "0.8.36" gifed = { path = "../gifed/gifed", optional = true } rand = { version = "0.8.5", optional = true } +kmeans = { version = "0.2.1", optional = true } + +[features] +default = ["simd-kmeans"] +# use the kmeans crate instead of the internal kmeans implementation. the crate +# is faster and uses SIMD but requries nightly Rust. +simd-kmeans = ["kmeans"] [workspace] members = ["squash"] -- cgit 1.4.1-3-g733a5