Skip to content

Uniffi bindings template #32

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

Closed
thunderbiscuit opened this issue Nov 6, 2022 · 1 comment
Closed

Uniffi bindings template #32

thunderbiscuit opened this issue Nov 6, 2022 · 1 comment

Comments

@thunderbiscuit
Copy link

thunderbiscuit commented Nov 6, 2022

I was working on extracting out a core/basic template for a uniffi-based bindings library last week and figured you might find it useful if you are still planning on using uniffi-rs to build bindings for ldk-lite (not sure if you already have your uniffi-rs base yet or not, so totally disregard this message if you do). I was explaining the architecture to another dev and realized that our bdk-ffi repo has a decent amount of structure that's specific to us and our code, and it would have been great to have an empty template that still contained all the helpers, plugins, etc. to get started quickly.

The uniffi-bindings-template repository is a template that has all the moving parts (including our own custom Gradle plugin, and our own simple bindgen tool) to create an android library using uniffi-rs. My goal was to create a structure where a dev can simply add to the udl file and the lib.rs files, recompile, and get a working bindings library.

@tnull
Copy link
Collaborator

tnull commented Nov 15, 2022

Ah, thank you for the pointer and excuse the late reply! Will definitely have a look, especially regarding the gradle plugin! The basic binding generation are kinda working (see #25), but I'll still need some boilerplate to create the packages etc.
Closing the issue for now, but will def. come back to it.

@tnull tnull closed this as completed Nov 15, 2022
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

No branches or pull requests

2 participants