This repository contains sample Rust
programs that call Java
methods, and Java
classes that call Rust
methods.
-
sample000, call
Rust
method fromJava
-
sample001, convert
Java
primitive types to bytes inRust
-
sample002, accept a
Java
object inRust
, and callback toJava
-
sample003, reverse
Java
bytes -
sample004, access
Java
DirectBuffer inRust
-
sample005, access
Java
primitive array inRust
-
call
Java
ecah JUnit test in IDEneed to setup
JVM
args:-Dsample000Lib=<path to lib>
-
call
Java
JUnit suite in IDEneed to setup
JVM
args:-Dlib_dir=<path to lib dir>