Did you ever wonder, how to call Rust code from Ko...
# feed
b
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
But you aren't really using rust, are you? It still goes through c layer or am I missing something?
b
It generates Kotlin bindings for Rust code. The bindings are using JNA on Kotlin/JVM and cinterop on Kotlin/Native.
d
No C layer is necessary as Rust can generate a C compatible interface.
495 Views