anchor-viz

Crates.ioanchor-viz
lib.rsanchor-viz
version0.24.2
sourcesrc
created_at2022-02-23 02:10:27.067
updated_at2022-04-24 18:32:32.425555
descriptionThis crate pairs well with anchor-lang. It generates an executable which generates visualizations of the instructions of an anchor program.
homepage
repository
max_upload_size
id537576
size196,275
cavemanloverboy (cavemanloverboy)

documentation

README

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.

Commit count: 0

cargo fmt