bdk-ffi
bdk-ffi copied to clipboard
Using multiple uniffi libraries together meta issue
This issue tracks a number of related-or-maybe-not-related issues we have found over the past few weeks relating to the use of multiple uniffi-based libraries used in the same project.
Issues
- The glue code created from bitcoin-ffi includes types the bdk-ffi library has not imported in its UDL. bitcoindevkit/bitcoin-ffi#27. The related uniffi issue is https://github.com/mozilla/uniffi-rs/issues/2282
- Using different versions of uniffi in completely separate libraries built with uniffi creates application compilation errors in Swift (@jurvis)
- Using BDK + LDK Node in the same project does not build https://github.com/bitcoindevkit/bdk-ffi/issues/620
- Importing multiple swift bindings modulemap collision https://github.com/bitcoindevkit/bdk-ffi/issues/621
The way to import external types is changing significantly with the new release of uniffi: see https://github.com/mozilla/uniffi-rs/blob/main/CHANGELOG.md#%EF%B8%8F-breaking-changes-%EF%B8%8F.
I don't know if this would solve or change anything for us, but we could test it out using the main branch of uniffi.
I have a new reproducible example of our issue here: thunderbiscuit/uniffi-2282.