Skip to content

xuejianxinokok/rust_java_samples

 
 

Repository files navigation

rust-java samples

desc

This repository contains sample Rust programs that call Java methods, and Java classes that call Rust methods.

  1. sample000, call Rust method from Java

  2. sample001, convert Java primitive types to bytes in Rust

  3. sample002, accept a Java object in Rust, and callback to Java

  4. sample003, reverse Java bytes

  5. sample004, access Java DirectBuffer in Rust

  6. sample005, access Java primitive array in Rust

how-to

  1. call Java ecah JUnit test in IDE

    need to setup JVM args: -Dsample000Lib=<path to lib>

  2. call Java JUnit suite in IDE

    need to setup JVM args: -Dlib_dir=<path to lib dir>

About

rust-java samples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 53.9%
  • Rust 46.0%
  • Shell 0.1%