A cairo-vm crate to run Cairo 1 Programs
Once you are inside the ./cairo1-run
folder, use the CLI with the following commands
To install the required dependencies(cairo corelib) run
make deps
Now that you have the dependencies necessary to run the tests, you can run:
make test
To execute a cairo 1 program
cargo run ../cairo_programs/cairo-1-programs/fibonacci.cairo
Arguments to generate the trace and memory files
cargo run ../cairo_programs/cairo-1-programs/fibonacci.cairo --trace_file ../cairo_programs/cairo-1-programs/fibonacci.trace --memory_file ../cairo_programs/cairo-1-programs/fibonacci.memory
To execute all the cairo 1 programs inside ../cairo_programs/cairo-1-programs/
and generate the corresponding trace and the memory files
make run