#tree #data #visualizing #child #text #grandchild

render_as_tree

Library for visualizing tree data structures via text

3 unstable releases

0.2.1 May 1, 2023
0.2.0 May 1, 2023
0.1.0 Apr 25, 2023

#1288 in Data structures

50 downloads per month
Used in ruut

MIT license

8KB
113 lines

render_as_tree

What is it

It's a library that allows you to visualize tree data structures in Rust with output like tree(1). For example,

Parent
├── Child 1
├── Child 2
│   ├── Grandchild 1
│   └── Grandchild 2
└── Child 3

This crate was extracted from ruut, a CLI intended for doing the same thing. See that repo if you're interested in executing a tree visualizer from the commandline or for something that can process common serialized data types (e.g. JSON).


lib.rs:

A library that allows you to visualize tree data structures in Rust with output like tree(1), like so:

Parent
├── Child 1
├── Child 2
│   ├── Grandchild 1
│   └── Grandchild 2
└── Child 3

This crate was extracted from ruut, a CLI intended for doing the same thing. See that repo if you're interested in executing a tree visualizer from the commandline or for something that can process common serialized data types (e.g. JSON).

No runtime deps