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: re-export felt crate from cairo_vm #981

Merged
merged 7 commits into from
Apr 17, 2023
Merged

feat: re-export felt crate from cairo_vm #981

merged 7 commits into from
Apr 17, 2023

Conversation

Oppen
Copy link
Member

@Oppen Oppen commented Apr 13, 2023

Re-exports as pub extern crate the imported cairo-felt. It's a public dependency (types defined by it are part of the public APIs) and requiring explicit imports causes issues where the version imported by downstream does not match the one imported by cairo-vm, which ends up in compilation failures.
After this change the users have the option of importing cairo-vm only and use cairo_vm::felt::Felt252 to get the exact version of the type used by the VM crate, eliminating such errors.
This is not a breaking change.

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.
    • CHANGELOG has been updated.

@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Merging #981 (b1953a4) into main (ce0d096) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #981   +/-   ##
=======================================
  Coverage   97.76%   97.76%           
=======================================
  Files          75       75           
  Lines       31155    31155           
=======================================
  Hits        30459    30459           
  Misses        696      696           
Impacted Files Coverage Δ
src/lib.rs 100.00% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Oppen Oppen marked this pull request as ready for review April 13, 2023 20:13
@Oppen Oppen changed the title Re-export felt crate from cairo_vm to avoid version mismatches feat: re-export felt crate from cairo_vm to avoid version mismatches Apr 13, 2023
@Oppen Oppen changed the title feat: re-export felt crate from cairo_vm to avoid version mismatches feat: re-export felt crate from cairo_vm Apr 13, 2023
@juanbono juanbono added this pull request to the merge queue Apr 17, 2023
Merged via the queue into main with commit 7fe94ef Apr 17, 2023
9 checks passed
@juanbono juanbono deleted the re-export_felt252 branch April 17, 2023 13:43
kariy pushed a commit to dojoengine/cairo-rs that referenced this pull request Jun 23, 2023
* Re-export felt crate from cairo_vm to avoid version mismatches

* Update CHANGELOG

* Formatting
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.

None yet

3 participants