Skip to content

Uniffi bindings template #32

Closed
Closed

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.

Activity

  1. tnull commented on Nov 15, 2022

    @tnull
    Collaborator

    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.

  2. added a commit that references this issue on Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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