Skip to content

Uniffi bindings template #32

Closed
Closed
@thunderbiscuit

Description

@thunderbiscuit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions