rusty-mermaid
Mermaid diagram rendering in pure Rust.
The base crate parses mermaid syntax and produces a Scene — a backend-agnostic
intermediate representation of primitives (rects, paths, text, etc.).
Enable features to add rendering backends:
| Feature | What you get |
|---|---|
svg |
to_svg() → SVG string |
raster |
to_png() → PNG bytes |
wgpu |
vello/WebGPU scene builder |
gpui |
gpui canvas element (Zed) |
viewport |
Pan/zoom state + coordinate transforms |