Hi. What would be the preferred way to use a high ...
# build-tools
k
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
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
Thx for the tip. I will start with this and see how it goes🙂