Cargo Features

[dependencies]
kmeans_colors = { version = "0.6.0", default-features = false, features = ["app", "palette_color"] }
default = app

Use default-features=false if using as a library

app default = image, palette_color, structopt

Features required for building the binary

palette_color app = num-traits, palette

Enable palette color types

Affects kmeans::MapColor

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.

image app

Enables image ^0.24.6

num-traits palette_color?
palette palette_color?
structopt app