Testing out speeding up JS plots with Rust.
To build a WASM artifact, use wasm-pack. The generated pkg/density_bins_bg.wasm and pkg/density_bins.js files are what you need to use the code.
$ wasm-pack build --target web --releaseSee https://observablehq.com/@mythmon/density-plot-using-rust-wasm for detailed usage.