Skip to content
On this page

Uniffi Examples

Welcome to the companion documentation website for the uniffi-examples repository.

The repository hosts a series of examples that demonstrate how to develop language bindings libraries using the uniffi-rs library. For more information on how to use uniffi-rs, see the official documentation.


Prerequisites

The examples in this repository output a Kotlin library meant to run on the JVM, version 17 or later. To build the examples, you'll need to install the following tools:

  1. Rust
  2. If you are building on macOS, also install the required M1 JVM target:
shell
rustup target add aarch64-apple-darwin
  1. A JVM version 17 or later (a great tool to install that is SDKMAN!)
  2. Kotlin (a fantastic tool to install that is SDKMAN!)
  3. Gradle (you guessed it... SDKMAN!)