20 releases

Uses old Rust 2015

0.4.5 Nov 24, 2017
0.4.3 Nov 22, 2017
0.3.3 Nov 11, 2017
0.3.1 Feb 13, 2017
0.1.9 Dec 31, 2016

#37 in #calling

Download history 80/week @ 2024-07-30 18/week @ 2024-09-24 39/week @ 2024-10-01

62 downloads per month

MIT/Apache

31KB
588 lines

Rucaja (Rust calls Java) Build Status

Calling JVM code from Rust via JNI.

Status

Creating a flat Java wrapper class and producing a fat JAR with all the dependencies reduces the Rust interface code.

A more complete example is kud1ing/tinkerpop-rs which uses Rucaja to call Apache TinkerPop.

Platforms

The code is tested on Linux and macOS. Your platform might need adjustments in build.rs.

Mac

Trying to run may give:

dyld: Library not loaded: @rpath/libjvm.dylib
  Referenced from: ./target/debug/rucaja
  Reason: image not found
Abort trap: 6

this might require something like:

sudo ln -s $(/usr/libexec/java_home)/jre/lib/server/libjvm.dylib /usr/local/lib

License

Licensed under either of

at your option.

Dependencies

~43KB