Rustine
Embed Rust into your Kotlin Multiplatform project
UniFFI Bindings Generation for Kotlin Multiplatform
Rustine 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
Rustine 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
Rustine automatically invokes Cargo as you build your Kotlin Multiplatform project. Required environment variables for each platform are automatically configured.