Hello all!
Some weeks ago I started this new project.
https://github.com/smyrgeorge/sqlx4k
It’s a small database driver for Kotlin Native.
Take a look if you want 🙂
👍 2
👍🏾 1
a
Adam S
07/21/2024, 9:11 AM
very cool!
Adam S
07/21/2024, 9:11 AM
So it's possible to call Rust libraries from Kotlin Native? How easy/hard is it?
y
Yorgos S.
07/21/2024, 9:25 AM
Sure you can. You need to build the rust code as a library (is very easy) then you need to link it (using a .def) with your build process.
Also, I created a series of articles that describe the process of creating the sqlx4k library. There going to be 2 more parts I think.
Take a look here:
https://smyrgeorge.github.io/
a
Adam S
07/21/2024, 9:39 AM
nice, thanks
Adam S
07/21/2024, 9:40 AM
so you're not hand-writing the C wrapper code for the Rust library? Rust can generate a C API? Does it generate C headers?