Hello all! Some weeks ago I started this new proje...
# server
y
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
very cool!
So it's possible to call Rust libraries from Kotlin Native? How easy/hard is it?
y
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
nice, thanks
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?
ah I see there's a tool for Rust that you're using https://github.com/mozilla/cbindgen
y
Exactly