-
Notifications
You must be signed in to change notification settings - Fork 8
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: Python bindings for hugr-model
.
#1959
base: main
Are you sure you want to change the base?
Conversation
This PR contains breaking changes to the public Rust API. cargo-semver-checks summary
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1959 +/- ##
==========================================
- Coverage 83.73% 82.55% -1.19%
==========================================
Files 209 212 +3
Lines 39266 40061 +795
Branches 35937 36265 +328
==========================================
+ Hits 32879 33071 +192
- Misses 4541 5144 +603
Partials 1846 1846
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
49fd266
to
f7c4ba4
Compare
This PR introduces Python bindings to
hugr-model
. On the Python side, we have dataclasses that mirror the model AST. On the Rust side, these classes are converted into the Rust AST structure. Using that, we can generate the text and binary representation.