Did you ever wonder, how to call Rust code from Kotlin Multiplatform? I've build Kotlin Multiplatform bindings for uniffi if you are interested. Currently only JVM and Native are supported as targets, but I'm working on JS support too.
b
Big Chungus
11/27/2022, 2:14 PM
But you aren't really using rust, are you? It still goes through c layer or am I missing something?
b
benkuly
11/27/2022, 7:38 PM
It generates Kotlin bindings for Rust code. The bindings are using JNA on Kotlin/JVM and cinterop on Kotlin/Native.
d
Dominaezzz
12/03/2022, 11:39 PM
No C layer is necessary as Rust can generate a C compatible interface.