Gobley
Embed Rust into your Kotlin Multiplatform project
UniFFI Bindings Generation for Kotlin Multiplatform
Gobley generates Kotlin code that connects your project to Rust code using UniFFI. You don't need to create your own wrapper manually, as you did with JNI.
KotlinX Serialization Support
Gobley detects the presence of KotlinX Serialization in your Gradle project and annotates data classes generated from Rust structs with @kotlinx.Serializable
.
Easy-to-Use Cargo Integration
Gobley automatically invokes Cargo as you build your Kotlin Multiplatform project. Required environment variables for each platform are automatically configured.