#graph #visualization #visualize #structures #user #dot #generate

vizz

Tool for creating GraphViz/DOT visualizations of Rust data structures

2 unstable releases

0.2.0 Sep 26, 2021
0.1.0 Sep 26, 2021

#2345 in Data structures

MIT/Apache

33KB
568 lines

dot-trait

A trait to generate a GraphViz dot file from a value.


lib.rs:

The Visualize trait allows any Rust data structure to be graphically represented using GraphViz and Dot.

This crate is currently a work in progress. Major TODO items:

  1. Create derive macro for automatically implementing Visualize for arbitrary types
  2. Create impls for std library types
  3. Replace the crate::util::html_encode method with a proper implementation
  4. Replace this list with an ez intro to the lib, which will probably look just like the [Graph] docs
  5. Automatically add referenced data to graphs

Early adopters can make use of this crate by manually implementing [Visualize].

Users will want to use the [Graph] datatype to generate visualizations.

Dependencies

~280–730KB
~17K SLoC