-
Notifications
You must be signed in to change notification settings - Fork 325
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
Determine approach for language bindings #232
Comments
Other, slightly contradictory, approaches to consider are:
|
I've been doing some experiments for the past few days, I think a good and relatively scalable approach would be to have an extra crate library ( Once we have the header there are a couple of options: we could try using automated tools like Alternatively, we could try writing some proc-macros to generate everything right inside rust. I'm thinking about defining a "translation table" manually for every language and then have it applied automatically by the compiler. Things like "transform a string in your native format to a |
Pushed some stuff to this repo: https://github.com/afilini/hello-ffi Still very WIP but some things are starting to come together |
A Discord discussion comparing with LDK approach is here: |
I'm experimenting with creating a |
What's the state of bindings for Swift, anything I can try using? EDIT: found the BDK-Swift repo |
Expose sh/wsh Inners
The bdk-ffi - Provides FFI bindings and code generation for all language bindings, added as git submodule to below language specific projects. bdk-kotlin builds, packages, and tests kotlin bindings and able to publish to maven central for different platforms. |
This is a tracking issue to add notes and discuss how
bdk
should do future language bindings. The current targets are android/kotlin (see bdk-jni), ios/swift, and python.Related LDK projects to examine:
Contacts on the LDK project are:
The text was updated successfully, but these errors were encountered: