Using rust jni to call an external rust library in java

preview_player
Показать описание
In this video we setup rust JNI to call a rust function from java using JNI. Java native interface is a great way to enable quick calls to native code built in other languages like Rust. This approach can be used for other languages as well.

Github repository

Leverage AI in your software development workflow. Enhance your skills as a software developer, grow your career, and stay competitive in this fast-paced industry.

Join the channel to get access to more perks:

Or visit my blog at:

Outro music: Sanaas Scylla

#java #rust #jni
Рекомендации по теме
Комментарии
Автор

yup, definitely interesting. I'm a Java junior but was interested in accessing native functions. What surprised me a bit is what I think was the "prep" work in Rust needed to make the conversion between types in Rust and Java.

adicide
Автор

how much do you improve your performance?
Which Use Cases can you say about use Rust inside of Java Solution.
Where Rust can show its contribution?
Tks, great video!

RobertoGPuentesDiaz
Автор

Nice video! I’m currently working on a project using JNI rust. Do you have any tips on debugging end to end? It’s really hard to debug because you can’t just set breakpoints in the rust lib and have them work when Java calls rust. Or is there a way to “stub” out the Java side so that it’s easier to debug?

edcoronado