Hi. What would be the preferred way to use a high level rust cargo package in a kotlin desktop project? Seems like most use cases i can find is rust libraries in android projects.
e
ephemient
05/30/2022, 6:41 PM
you'll either want to expose a Java API from the Rust side (https://docs.rs/jni/latest/jni/)
or expose a C API from Rust and use JNA or JNR or Project Panama to access them from Java
in both cases you'll need to be able to build the Cargo crate as a loadable shared library
k
Kinylund
05/30/2022, 6:52 PM
Thx for the tip. I will start with this and see how it goes🙂