#graph #dot #graphviz #data #render-graph

dotwalk

Traits to traverse structures and generate DOT graphs

1 unstable release

0.1.0 Sep 2, 2024

#567 in Data structures

MIT/Apache

68KB
1.5K SLoC

dotwalk-rs

Traits for traversing through your own structure and generating DOT language (reference) files for graphs to be rendered by another tool.

Contribution History

This crate is extracted from the Rust compiler source tree. It is based on compiler/rustc_graphviz at commit fa18140. The crate has been renamed and moved from src/librustc_graphviz and previously src/libgraphviz.

In addition to its origin as an internal crate, others have extracted forks of their own, as a matter of course. Among them are dot which has a messy history and appears to have changed hands a few times, and dot2-rs.

This project's history contains all known commits to each file, from the original and cherry-picked contributions to derivative sources. Delicate care has been taken to preserve each commit's original author.

You can create your own filtered repository from newer Rust source by running these commands:

git clone git@github.com:rust-lang/rust.git rustc_graphviz
cd rustc_graphviz
git filter-repo \
	--path src/libgraphviz \
	--path src/librustc_graphviz \
	--path compiler/rustc_graphviz \
	--subdirectory-filter src/libgraphviz \
	--subdirectory-filter src/librustc_graphviz \
	--subdirectory-filter compiler/rustc_graphviz \
	--prune-empty always \
	--prune-degenerate always

License

This project is dial-licensed under either MIT or Apache-2.0, at your option. This licensing the same as the Rust Project, from which this fork is based.

See COPYRIGHT for more information.

No runtime deps