cairo-vm icon indicating copy to clipboard operation
cairo-vm copied to clipboard

Refactor cairo1-run crate for library use

Open barabanovro opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. The current implementation of cairo1-run crate as a CLI restricts its usability in other projects that could benefit from its functionality as a library.

Describe the solution you'd like Transform the cairo1-run crate into a standalone library that can be used by external projects. Ideally, the run function would return:

  1. Output of program execution.
  2. Relocated trace and memory.
  3. Sierra (with debug info) and CASM programs.
  4. CASM additional instructions (proof_mode_header, entry_code, libfunc_footer).
  5. Diagnostics.
  6. Compiler RootDatabase.

Motivation We need it for https://cairovm.codes and https://walnut.dev — projects aiming to build a debugger for Cairo / Starknet.

barabanovro avatar Feb 12 '24 18:02 barabanovro