3 ms·
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. [1] https://github.com/Monnoroch
by AntiRush 12y ago
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.
[1] https://github.com/Monnoroch/RustJni https://github.com/Monnoroch/RustJni
- kodablah 12y agoI think the continuation of this would be a neat project. The lib starts up a JVM, it would be interesting to see a macro [1] (or will probably have to be a compiler plugin [2]) to model Java objects and make it clear the ownership of memory. 1 - http://doc.rust-lang.org/0.12.0/guide.html#macros http://doc.rust-lang.org/0.12.0/guide.html#macros 2 - http://doc.rust-lang.org/0.12.0/guide-plugin.html http://doc.rust-lang.org/0.12.0/guide-plugin.html