Skip to content

Conversation

benalleng
Copy link

@benalleng benalleng commented Jul 2, 2025

Spacebear is taking over this branch to get it across the finish line. We have some remaining thread on the todos for this PR but it is close.

@benalleng benalleng marked this pull request as draft July 2, 2025 18:35
@benalleng

This comment was marked as outdated.

@benalleng benalleng changed the title Uniffi dart tests Uniffi dart integration test Jul 3, 2025
spacebear21 and others added 20 commits July 8, 2025 13:57
Minimizing the import I was able to get rid of all errors introduced by
uniffi-dart and built a successful uniffi binding.

These tests are just the barebones of what is built but proves out that
we have some functioning bindings when creating a minimal build.
I've included support for including --language args beyond those explicitly
supported in uniffi-rs with a match block that passes the chosen language
to chose what binding cargo package to use.
The constructors are public as of uniffi-dart db4eed7
the FFI create_session method takes a String, not a URL.
uniffi-dart empty sequence handling was fixed in 8536f95
toString() isn't defined due to Display trait not yet implemented in
uniffi-dart, so use asString() instead which is defined.
Pass the "psbt" value as parameter, and return a String instead of a
bitcoin.Psbt
Uri.https() expects only the host portion, not a complete URL. Use
Uri.parse() instead.
@benalleng benalleng marked this pull request as ready for review July 9, 2025 21:12
@benalleng
Copy link
Author

Going to mark this as ready for review so I'm not a blocker @spacebear21

@spacebear21 spacebear21 merged commit 5a54064 into spacebear21:uniffi-dart Jul 10, 2025
15 of 17 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.

2 participants