rucaja

Crates.iorucaja
lib.rsrucaja
version0.4.5
sourcesrc
created_at2016-12-13 18:03:08.603192
updated_at2017-11-24 18:01:10.175657
descriptionRust Calls Java - via JNI
homepage
repositoryhttps://github.com/kud1ing/rucaja
max_upload_size
id7568
size53,353
(kud1ing)

documentation

https://docs.rs/crate/rucaja

README

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.

Commit count: 214

cargo fmt