bdk-ffi icon indicating copy to clipboard operation
bdk-ffi copied to clipboard

Using multiple uniffi libraries together meta issue

Open thunderbiscuit opened this issue 1 year ago • 2 comments

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

  1. 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
  2. Using different versions of uniffi in completely separate libraries built with uniffi creates application compilation errors in Swift (@jurvis)
  3. Using BDK + LDK Node in the same project does not build https://github.com/bitcoindevkit/bdk-ffi/issues/620
  4. Importing multiple swift bindings modulemap collision https://github.com/bitcoindevkit/bdk-ffi/issues/621

thunderbiscuit avatar Nov 04 '24 19:11 thunderbiscuit

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.

thunderbiscuit avatar Nov 27 '24 14:11 thunderbiscuit

I have a new reproducible example of our issue here: thunderbiscuit/uniffi-2282.

thunderbiscuit avatar Apr 22 '25 15:04 thunderbiscuit