Spannify
A tiny rust crate that produces nice-looking graphs for you to visualize your callstack
Spannify does not have any dependencies
Example
Here's an example of using spannify to trace calls to a recursive function.
Make sure you've added spannify to your project:
main.rs contents:
use ;
use LazyLock;
static SPANNER: =
new;
Output
┌fib(5)
| ┌fib(4)
| ¦ ┌fib(3)
| ¦ ┆ ┌fib(2)
| ¦ ┆ └fib(2)
| ¦ ┆ ┌fib(1)
| ¦ ┆ └fib(1)
| ¦ └fib(3)
| ¦ ┌fib(2)
| ¦ └fib(2)
| └fib(4)
| ┌fib(3)
| ¦ ┌fib(2)
| ¦ └fib(2)
| ¦ ┌fib(1)
| ¦ └fib(1)
| └fib(3)
└fib(5)
This and other examples can be found in the examples directory
Documentation
Check out the full documentation at docs.rs