Skip to content
r.

rustviz

rustviz/rustviz · Public GitHub repository

Interactively Visualizing Ownership and Borrowing for Rust

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

rustviz live demo screenshot
Captured from the live demo · 2026-11-03

About this project

Author-written excerpt from the project README.

RustViz generates interactive timeline visualizations of ownership and borrowing for short Rust programs. It is meant as a teaching aid: paste a snippet and see exactly when each binding becomes the resource owner, when references go in and out of scope, and which lines those events correspond to.

This repository is now the compiler-integrated rewrite. Earlier versions of RustViz, deployed in the classroom and described in our VL/HCC 2022 paper, read hand-annotated source; this one plugs into rustc directly and walks HIR/MIR, so the diagram reflects the real borrow checker's view of the program rather than a hand-curated approximation.

Looking for the original (annotation-based) RustViz? It lives on the rv1-final branch and tag in this repo, with a matching GitHub Release.

Requirements and intended audience

RustViz generates interactive timeline visualizations of ownership and borrowing for short Rust programs. It is meant as a teaching aid: paste a snippet and see exactly when each binding becomes the resource owner, when references go in and out of scope, and which lines those events correspond to.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-15. Source: https://github.com/rustviz/rustviz/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-11-03. Saved release: rv1-final · 2026-05-05. These dates do not guarantee ongoing maintenance.

Technologies
Rust
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-23. This does not test every feature.

Browse related categories