-
Notifications
You must be signed in to change notification settings - Fork 406
0.0.116 Bindings Changes #2434
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
0.0.116 Bindings Changes #2434
Conversation
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2434 +/- ##
==========================================
- Coverage 90.24% 90.23% -0.02%
==========================================
Files 106 106
Lines 55774 55784 +10
Branches 55774 55784 +10
==========================================
Hits 50334 50334
- Misses 5440 5450 +10
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the commits exclusive to this PR, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
33bda73
to
f23dbd1
Compare
In bindings we can't practically pass a mutable PSBT, and instead need to pass an owned transaction and have the sign method return a signed copy. We do this here for all build modes as its not a material API change for Rust users.
This matches what we've done for other `[u8; 32]` newtypes.
`APeerManager` will simply be mapped as `PeerManager` in bindings, as structs are all concretized into a single form.
We missed one method that now cannot be bindings exported - the `payment_paths` method, as it returns a slice of objects, which cannot be supported in bindings.
The bindings are being updated to consider all traits even if the trait itself is no-export, which causes issues generating code around the `Duration` impl here.
While bindings should probably be able to figure out that this is the same type as `Self`, for now we simply swap the type to make the bindings generator have an easier go of it.
Notably including `Hash`/`Eq`/`Ord` for structs which may be used in maps.
f23dbd1
to
27bf1d0
Compare
Merged the dependent PR so went ahead and rebased to remove the dependent commits. |
This is the remaining bindings-specific/-induced changes for 116, built on #2430.