An example showing interopability between Rust and Kotlin/Native.
An example showing interopability between Rust and Kotlin/Native.
$ ./gradlew assemble
$ cd ./untitled
$ cargo build
First, you have to compile both the project and expect failures. Headers will be generated from both compilers.
Then compile them again to get the dynamic libraries and binaries.
To update bindings to call from Kotlin, compile the Rust part. Similarly, compile the Kotlin part to update that for Rust.