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

Use external uniffi library for rust-bitcoin types #546

Merged

Conversation

thunderbiscuit
Copy link
Member

@thunderbiscuit thunderbiscuit commented May 30, 2024

This PR allows our library to depend on an external bitcoin-ffi library. This is useful because it means we can collaborate with other projects who also need to use types from rust-bitcoin in their uniffi bindings.

I propose we merge some types coming from bitcoin-ffi for the beta 2 release as a good way to introduce the design and workflow slowly but surely. All libraries build and work well locally and pass CI.

Closes #556.

@thunderbiscuit thunderbiscuit force-pushed the feature/rust-bitcoin branch 4 times, most recently from fb7d9d8 to 30cf4af Compare June 12, 2024 15:04
@thunderbiscuit thunderbiscuit self-assigned this Jun 13, 2024
@thunderbiscuit thunderbiscuit force-pushed the feature/rust-bitcoin branch 5 times, most recently from e5f0925 to eaab4fe Compare June 18, 2024 14:19
@thunderbiscuit thunderbiscuit force-pushed the feature/rust-bitcoin branch 2 times, most recently from 3d23579 to 6a9df3d Compare July 18, 2024 14:11
@thunderbiscuit thunderbiscuit force-pushed the feature/rust-bitcoin branch 2 times, most recently from 00e03c1 to b06cb6b Compare August 15, 2024 18:38
@thunderbiscuit thunderbiscuit force-pushed the feature/rust-bitcoin branch 8 times, most recently from 491b3a4 to ee195fb Compare August 30, 2024 15:46
@reez
Copy link
Collaborator

reez commented Aug 30, 2024

This is so so great.

Compiled and ran this PR's Swift bindings locally and used in Example Wallet and everything built and ran in the iOS app ✅

You may already be planning on it, but would love to see this squash down to one commit when merged since that will be nice historically to go back to see what all had to be changed to use the external bitcoin-ffi ("Use external uniffi library for rust-bitcoin types").

ACK ee195fb

@thunderbiscuit
Copy link
Member Author

Ah yes good point, I think a squash makes sense.

@thunderbiscuit
Copy link
Member Author

I have run all live tests locally for all four libraries. In addition, here is the CI workflow for the live tests: https://github.com/bitcoindevkit/bdk-ffi/actions/runs/10636432218.

If all passes in both CIs I'll merge later on today.

@thunderbiscuit thunderbiscuit merged commit d74acfa into bitcoindevkit:master Aug 30, 2024
25 checks passed
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.

Publish the rust-bitcoin types in their own crate
2 participants