3 ms·
I needed to call Rust from Java a few years ago. The approach was build a straightforward .so and call into it via JNA. It seemed way less complicated
by LispSporks22 3y ago
I needed to call Rust from Java a few years ago. The approach was build a straightforward .so and call into it via JNA. It seemed way less complicated
- amunra__ 3y agoThe rust-maven-plugin we wrote indeed also supports JNA for these simple use cases. https://github.com/questdb/rust-maven-plugin https://github.com/questdb/rust-maven-plugin Compared with JNA, JNI is indeed more complex, but it's faster and has more features. It also solves the problem of calling Java from Rust.