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

Migration to the procedural macros system of uniffi-rs

Open thunderbiscuit opened this issue 2 years ago • 4 comments

I'm opening this issue to keep track of documentation, references, and discussions around the migration to the new uniffi-rs system.

  1. Documentation page on using proc-macros: here
  2. Issue on readiness of migration and further documentation: here
  3. PR for the 0.23.0 migration: #299

thunderbiscuit avatar Jan 26 '23 17:01 thunderbiscuit

It seems rust-nostr already successfully migrated their ffi part to proc-macro https://github.com/rust-nostr/nostr/pull/204

aki-mizu avatar Feb 26 '24 08:02 aki-mizu

Thunder how interested are you in doing this at the current moment, just wondering what you're current thoughts would be for this

reez avatar Apr 30 '24 01:04 reez

Looking into it now. I'm not sure if we'd be able to migrate everything or if some things would stay in the UDL and some would be proc macros.

But the one prerequisite to this is that we use the --library flag to create the library, which is recommended anyway and is a good move forward no matter what if we can do it, so I think we can start with that and see where it leads us.

thunderbiscuit avatar Apr 30 '24 19:04 thunderbiscuit

awesome, thanks for those thoughts, and --library makes sense to start like you're saying

reez avatar Apr 30 '24 19:04 reez