There's a library[1] that wraps the jni, allowing just that.
I haven't tried it, but it looks featureful enough to be useful.
I haven't tried it, but it looks featureful enough to be useful.
1 - http://doc.rust-lang.org/0.12.0/guide.html#macros 2 - http://doc.rust-lang.org/0.12.0/guide-plugin.html