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

Update bindings for new Listen interface #811

Merged

Conversation

TheBlueMatt
Copy link
Collaborator

Some of these commits were in #802, but I pulled them out since we needed further bindings updates. This is still based on #802.

@codecov
Copy link

codecov bot commented Feb 26, 2021

Codecov Report

Merging #811 (ee9ceb4) into main (9fba7c9) will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #811      +/-   ##
==========================================
- Coverage   91.06%   91.01%   -0.06%     
==========================================
  Files          48       48              
  Lines       25495    25495              
==========================================
- Hits        23218    23204      -14     
- Misses       2277     2291      +14     
Impacted Files Coverage Δ
lightning/src/chain/keysinterface.rs 93.15% <ø> (ø)
lightning/src/ln/functional_tests.rs 96.91% <0.00%> (-0.24%) ⬇️

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 9fba7c9...ee9ceb4. Read the comment docs.

@TheBlueMatt TheBlueMatt force-pushed the 2021-02-bindings-rust-bump branch from 7c65fbb to e5f42aa Compare February 27, 2021 04:51
genbindings.sh Outdated Show resolved Hide resolved
For ChannelManager, at least, we have two separate functions called
block_connected, one in the Listen trait, one in the struct, we
need to be explicit with which one we're trying to call.
@TheBlueMatt TheBlueMatt force-pushed the 2021-02-bindings-rust-bump branch from e5f42aa to b37d090 Compare March 1, 2021 00:45
@TheBlueMatt TheBlueMatt added this to the 0.0.13 milestone Mar 1, 2021
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.

New genbindings works for me! LGTM

(build broken, but I think that's related to #812?)

@TheBlueMatt
Copy link
Collaborator Author

Yea, I kicked the build to make it run again without changing the code.

Comment on lines 4 to 8
This program parses a single-file-lib.rs Rust crate's AST passed in on stdin and generates a second
crate which is C-callable (and carries appropriate annotations for cbindgen). It is usually invoked
via the `genbindings.sh` script in the top-level directory, which converts the lightning crate into
a single file with a call to
`RUSTC_BOOTSTRAP=1 cargo rustc --profile=check -- -Zunstable-options --pretty=expanded`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Were any changes resulting from #802 (comment) incorporated when splitting into this PR? Looks like it may have been missed, but the diff is no longer available there.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Heh, I'd responded to it, but only partially.

Copy link
Contributor

@jkczyz jkczyz left a comment

Choose a reason for hiding this comment

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

One minor comment about the README, but otherwise looks good.

This will switch to use the clang/C WASM ABI instead of the
wasm_bindgen WASM ABI as of rustc 1.51 (or nightly since [1]),
allowing us to link C and Rust code in a single wasm binary.

[1] rust-lang/rust#79998
@TheBlueMatt TheBlueMatt force-pushed the 2021-02-bindings-rust-bump branch from 3cf8a8c to ee9ceb4 Compare March 1, 2021 23:07
@TheBlueMatt
Copy link
Collaborator Author

Squashed without diff. Gonna merge after tests.

@TheBlueMatt TheBlueMatt merged commit 59d2040 into lightningdevkit:main Mar 1, 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