auto-palette-wasm

Crates.ioauto-palette-wasm
lib.rsauto-palette-wasm
version0.5.0
sourcesrc
created_at2024-05-19 06:16:47.19941
updated_at2024-08-13 14:51:11.783278
description🎨 A WebAssembly binding for auto-palette, allowing it to automatically extract color palettes from images.
homepagehttps://github.com/t28hub/auto-palette
repositoryhttps://github.com/t28hub/auto-palette
max_upload_size
id1244715
size21,727
Tatsuya Maki (t28hub)

documentation

README

auto-palette-wasm

A WebAssembly binding for auto-palette, allowing it to automatically extract color palettes from images.

Development

Run unit tests

cargo nextest run --tests --package auto-palette-wasm

Run wasm-pack tests

Run wasm-pack tests in headless mode using Chrome:

wasm-pack test --headless --chrome ./crates/auto-palette-wasm

Run wasm-pack tests in headless mode using Firefox:

wasm-pack test --headless --firefox ./crates/auto-palette-wasm

[!TIP] Before running the tests, make sure to install the latest version of Chrome Driver or Gecko Driver. If you're using macOS, you can install the drivers using Homebrew:

brew install chromedriver
brew install geckodriver

Build the WebAssembly module

wasm-pack build ./crates/auto-palette-wasm --release --target web
Commit count: 141

cargo fmt