Cargo Features

[dependencies]
quantette = { version = "0.5.1", default-features = false, features = ["kmeans", "std", "threads", "image", "tap"] }
default = image, kmeans, threads

These default features are set whenever quantette is added without default-features = false somewhere in the dependency tree.

kmeans default = rand, rand_xoshiro

Exposes kmeans as an alternative quatization method which gives higher quality results but is slower to run.

Affects quantize::kmeans

std image threads

Enable use of the Rust std lib

Enables std of num-traits and wide ^0.8.1

threads default = rayon, std

Exposes parallel versions of most algorithms.

image default = std

Enables integration with the image crate.

Enables image

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

rayon threads
rand kmeans
rand_xoshiro kmeans
tap cfg(any()) implicit feature

Enables tap

tap:

Generic extensions for tapping values in Rust