diving into crystals in various ways
Install the WASM target and wasm-bindgen-cli once:
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cliBuild and generate the browser bindings:
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --target web --out-dir web/pkg target/wasm32-unknown-unknown/release/crystal-viz.wasmServe the web folder from a local HTTP server, then open it in a WebGPU-capable browser:
python web/serve.pyThen visit http://localhost:8080.