#ffi #kotlin #bindgen #gobley #kotlin-multiplatform

bin+lib gobley-uniffi-bindgen

A UniFFI Kotlin Multiplatform bindings generator for Rust

2 unstable releases

0.2.0 Apr 6, 2025
0.1.0 Mar 3, 2025

#7 in #kotlin

Download history 145/week @ 2025-03-03 8/week @ 2025-03-10 1/week @ 2025-03-17 82/week @ 2025-03-31 93/week @ 2025-04-07 9/week @ 2025-04-14

184 downloads per month

MPL-2.0 license

210KB
4.5K SLoC

Kotlin 3K SLoC // 0.1% comments Rust 1.5K SLoC // 0.1% comments

Gobley

License Crates.io Gradle Plugin Portal GitHub Actions Workflow Status

A set of libraries and tools that help you mix Rust and Kotlin using UniFFI. This project was forked from UniFFI Kotlin Multiplatform bindings. Since the original project is no longer maintained, active development now continues here.

Currently, Android, Kotlin/JVM, and Kotlin/Native are supported. WASM is not supported yet.

Features

  • UniFFI Bindings Generation for Kotlin Multiplatform (Android, JVM, Kotlin/Native)
  • KotlinX Serialization Support
  • Automatic building and linking of Rust libraries to Kotlin projects

Getting started

Please read the tutorial and the documentation to get started. If you have trouble setting up your project, please create a question in GitHub Discussions. For the contribution guide, please refer to here.

Dependencies

~9MB
~160K SLoC