Skip to content

Commit

Permalink
Add fxhash for caching, relocate find_colors to find.rs
Browse files Browse the repository at this point in the history
Add `fxhash` to `palette_colors` feature
Add more `clippy` `forbid` and `warn` lints to `lib.rs`
Use caching of `Lab` conversions in the binary application
Add `cached_srgba_to_lab` to `utils.rs`
Use `map_err` in `parse_color`
Add `allow` annotations for new `clippy` lints in `Sort` and kmeans
Replace uses of `std::collections::HashMap` with `FxHashMap`
  • Loading branch information
okaneco committed Aug 17, 2023
1 parent 6bbd568 commit d6b5ab5
Show file tree
Hide file tree
Showing 9 changed files with 636 additions and 545 deletions.
40 changes: 25 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ app = [
]

# Enable `palette` color types
palette_color = ["palette", "num-traits"]
palette_color = ["palette", "num-traits", "fxhash"]

[dependencies.fxhash]
version = "0.2.1"
default-features = false
optional = true

[dependencies.image]
version = "0.24.6"
Expand All @@ -34,7 +39,7 @@ features = ["jpeg", "png"]
optional = true

[dependencies.palette]
version = "0.7.2"
version = "0.7.3"
default-features = false
features = ["std"]
optional = true
Expand Down
Loading

0 comments on commit d6b5ab5

Please sign in to comment.