Skip to content

Repository files navigation

crystaldive

diving into crystals in various ways

Browser/WebGPU build

Install the WASM target and wasm-bindgen-cli once:

rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli

Build 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.wasm

Serve the web folder from a local HTTP server, then open it in a WebGPU-capable browser:

python web/serve.py

Then visit http://localhost:8080.

About

diving into crystals in various ways

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages