Skip to content
 
 

Repository files navigation

RustViz Web

RustViz Website Minimal instructions for building, changing, and running this website.

Prerequisites

  • Rust
  • mdBook v0.4.40: cargo install mdbook --version 0.4.40
  • Node.js 18+ (for local hosting)
  • wasm-pack and wasm32-unknown-unknown target: rustup target add wasm32-unknown-unknown

Build after changes

From the repository root:

./rustviz.sh build

This regenerates SVGs, rebuilds mdBook, and updates published WASM assets.

Run website locally

./rustviz.sh start

Open http://127.0.0.1:8000. Use PORT=9000 ./rustviz.sh start to change port.

Deploy website (latest changes)

Requirements

npx wrangler pages deploy --project-name rustviz-website --branch main
# Note: --branch main is optional, default branch is used by Cloudflare Pages

Update Cloudflare Worker (Rust Playground API for Compile)

cd workers/rustc-api
npx wrangler deploy

Clean generated outputs

From the repository root:

./rustviz.sh clean

About

Interactively Visualizing Ownership and Borrowing for Rust (Hosted using WASM)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages