/rust-mandelbrot-set

An interactive application that lets you explore the Mandelbrot set fractal. Built with Rust, compiled to WebAssembly, running on Web Workers.

Primary LanguageRustMIT LicenseMIT

Rust Mandelbrot Set Explorer

This project is based on this Rust WASM worker template.

Code directory

Building locally

This template comes pre-configured with all the boilerplate for compiling Rust to WebAssembly and hooking into a Webpack build pipeline.

  • In the project root directory, run cargo build.
  • Within the www/ directory:
    • npm i
    • npm run build -- Bundle the project (in production mode).
    • npm run start -- Serve the project locally for development at http://localhost:8080.
  • If you need to change dependencies and get weird errors, try running ./clean.sh to purge all caches.