Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Update cairo_rs_py_patch to be compatible with cairo-lang 0.11 #439

Merged

Conversation

fmoletta
Copy link
Contributor

@fmoletta fmoletta commented Apr 5, 2023

This PR aims to re-introduce support for Rust VM after cairo-lang 0.11 changes. Resolves #424
Main changes:

  • Update cairo_rs_py dependency to version 0.2.0
  • Modify cairo_rs_py_patch.py to patch the new methods introduced in 0.11 which use the VM

Checklist:

  • Applied formatting - ./scripts/format.sh
  • No linter errors - ./scripts/lint.sh
  • Performed code self-review
  • Rebased to the last commit of the target branch (or merged it into my branch)
  • Documented the changes
  • Linked the issues which this PR resolves
  • Updated the tests
  • All tests are passing - ./scripts/test.sh

@fmoletta fmoletta changed the title Update cairo_rs_py patch to be compatible with cairo-lang 0.11 Update cairo_rs_py_patch to be compatible with cairo-lang 0.11 Apr 5, 2023
@fmoletta fmoletta marked this pull request as ready for review April 5, 2023 18:19
@FabijanC FabijanC self-requested a review April 6, 2023 07:42
Copy link
Collaborator

@FabijanC FabijanC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a couple more places labeled with TMP: rust vm which are unaddressed:

  1. Two lines need to be uncommented in .circleci/config.yml.
  2. Update the docs by removing the temporarily suspended warning in page/docs/guide/run.md.

test/test_cairo_vm.py Show resolved Hide resolved
@fmoletta fmoletta requested a review from FabijanC April 10, 2023 16:07
Copy link
Collaborator

@FabijanC FabijanC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you for the contribution

@FabijanC FabijanC merged commit 5d9f66e into 0xSpaceShard:master Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reintroduce Rust VM support
2 participants