Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cairo_run_program function that takes a Program as an arg #1496

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

ElijahVlasov
Copy link
Contributor

Add cairo_run_program function to cairo_runner.

Description

It seems convenient to have an API function that runs a cairo program from a Program struct, not a serialized JSON representation. For instance, in my use-case the program comes from a compressed binary representation, not from a json, so don't want to copy the content of cairo_run function in my project for that.

If this is useful for someone barring me please consider this tiny PR :)

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (006666e) 96.81% compared to head (bab376e) 96.81%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1496   +/-   ##
=======================================
  Coverage   96.81%   96.81%           
=======================================
  Files          96       96           
  Lines       39574    39581    +7     
=======================================
+ Hits        38315    38322    +7     
  Misses       1259     1259           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Oppen Oppen left a comment

Choose a reason for hiding this comment

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

Thanks! This is very handy indeed.
We'll need you to update the CHANGELOG.md to be able to merge this.

@Oppen
Copy link
Contributor

Oppen commented Nov 27, 2023

Also, clippy is complaining about taking a reference to program, which is now already a reference.

@ElijahVlasov
Copy link
Contributor Author

Also, clippy is complaining about taking a reference to program, which is now already a reference.

Should be fine now

@Oppen Oppen added this pull request to the merge queue Nov 27, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 27, 2023
@pefontana pefontana added this pull request to the merge queue Nov 27, 2023
Merged via the queue into lambdaclass:main with commit 0941386 Nov 27, 2023
49 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants