Skip to content

Pre-0.0.103 Bindings Tweaks #1150

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

Merged
merged 6 commits into from
Nov 2, 2021

Conversation

TheBlueMatt
Copy link
Collaborator

Some trivial tweaks and (C-not exported) tags for bindings for 0.0.103, as well as some rustc warnings fixes for good measure.

@TheBlueMatt TheBlueMatt added this to the 0.0.103 milestone Nov 1, 2021
@codecov
Copy link

codecov bot commented Nov 1, 2021

Codecov Report

Merging #1150 (0c1b70c) into main (094ddb2) will decrease coverage by 0.00%.
The diff coverage is 89.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1150      +/-   ##
==========================================
- Coverage   90.14%   90.14%   -0.01%     
==========================================
  Files          70       70              
  Lines       36384    36386       +2     
==========================================
+ Hits        32800    32801       +1     
- Misses       3584     3585       +1     
Impacted Files Coverage Δ
lightning/src/ln/channelmanager.rs 83.72% <0.00%> (ø)
lightning/src/routing/scorer.rs 34.42% <0.00%> (ø)
lightning/src/util/logger.rs 83.14% <ø> (ø)
lightning/src/util/macro_logger.rs 85.48% <ø> (ø)
lightning/src/util/ser_macros.rs 86.89% <ø> (ø)
lightning/src/routing/router.rs 91.98% <88.88%> (ø)
lightning-invoice/src/lib.rs 88.39% <100.00%> (ø)
lightning-invoice/src/payment.rs 91.15% <100.00%> (+0.02%) ⬆️
lightning-invoice/src/utils.rs 83.48% <100.00%> (ø)
lightning/src/ln/functional_test_utils.rs 95.13% <100.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 094ddb2...0c1b70c. Read the comment docs.

@valentinewallace
Copy link
Contributor

ACK 1ca01a2 mod CI

@TheBlueMatt
Copy link
Collaborator Author

Oops, pushed a fixup commit for fuzzing and reordered the commits so things are correct.

This also differentiates it from the bindings default-constructed
`new` method which is constructed when all fields are exposed and
of mappable types.
The bindings don't currently support passing `Vec`s of objects
which it mappes as "opaque types". This is because it will require
clones to convert its own list of references to Rust's list of
objects.

In the near future we should resolve this limitation, allowing us
to revert this (and make `find_route`'s method signature similarly
cleaner), but for now we must avoid `Vec<OpaqueType>`.
This matches the other `Payee` move-modifier functions.
This prepares us for C bindings auto-exporting tuple type fields.
@TheBlueMatt
Copy link
Collaborator Author

Rebased on latest upstream and squashed.

Copy link
Contributor

@valentinewallace valentinewallace left a comment

Choose a reason for hiding this comment

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

ACK if CI's happy :)

@TheBlueMatt TheBlueMatt merged commit 55fc0a1 into lightningdevkit:main Nov 2, 2021
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.

3 participants