can we use rust somehow in multiplatform shared mo...
# multiplatform
k
can we use rust somehow in multiplatform shared module specifically in android ios ?
j
Haven't tried myself, but I'd do a rust C binding (https://developers.redhat.com/articles/2022/09/05/how-create-c-binding-rust-library#) and JNI on top of that for Android, cinterop for iOS...
k
that i know of and i have done that by myself as well, but what i want to know if we can connect some rust lib directly to kotlins shared module a pure kotlin module
m
Does https://github.com/mozilla/uniffi-rs have anything to offer in that direction? Especially this https://gitlab.com/trixnity/uniffi-kotlin-multiplatform-bindings could be interesting.
🤩 2
k
@Michael Paus this is amazing, just what i was looking for
124 Views