okaneco / kmeans-colors

k-means clustering library and binary to find dominant colors in images
Apache License 2.0
139 stars 9 forks source link

Refactor crate into library with bin folder #3

Closed okaneco closed 4 years ago

okaneco commented 4 years ago

Update CI to build lib, bin, and doc with --no-deps

This puts the binary crate requirements behind a feature flag. Library users will not need to compile image, png, or the structopt/clap dependencies. The number of crates needed to build the lib drops from 67 to 26 crates. The library and binary can be extended separately now.

In the Cargo.toml, specify default-features = false when using the crate as a lib.