#anchor #viz #anchor-lang #color-coded

app anchor-viz

This crate pairs well with anchor-lang. It generates an executable which generates visualizations of the instructions of an anchor program.

1 unstable release

0.24.2 Apr 24, 2022
0.22.2 Feb 24, 2022
0.22.1 Feb 23, 2022
0.21.0 Feb 23, 2022
0.1.0 Feb 23, 2022
Download history 10/week @ 2023-10-28 2/week @ 2023-11-04 3/week @ 2023-11-11 6/week @ 2023-11-18 22/week @ 2023-11-25 5/week @ 2023-12-02 5/week @ 2023-12-16 10/week @ 2023-12-23 1/week @ 2024-01-06 4/week @ 2024-01-13 7/week @ 2024-01-20 21/week @ 2024-01-27 1/week @ 2024-02-03 20/week @ 2024-02-10

52 downloads per month

MIT license

65KB
863 lines

anchor-viz

A color-coded visualization tool for the instructions of an anchor program.

basic_2 (This is a schematic of basic-2 from anchor's examples/tutorial directory)

Installation

Via cargo:

cargo install anchor-viz

From source:

To install, run

git clone https://github.com/cavemanloverboy/anchor-viz
cd anchor-viz
make

to build the executable. On linux/mac, you can run

git clone https://github.com/cavemanloverboy/anchor-viz
cd anchor-viz
make linux-mac

to build the executable and then copy it to /usr/local/bin/ to link the executable (assuming /usr/local/bin is in your PATH).

Usage

To use anchor-viz, run anchor-viz in the root directory of an anchor project or in a program directory. For example,

anchor init my_project
cd my_project # or cd my_project/programs/my_project
anchor-viz

Otherwise, specify the program name via anchor-viz -p my_program while in the root of the anchor project.

Dependencies

~94MB
~1.5M SLoC