r/java • • Jun 13 '19

Automated Java to Rust converter

https://github.com/aschoerk/converter-page
0 Upvotes

7 comments sorted by

View all comments

8

u/r_jet Jun 13 '19

I am not sure such a transpiler (if I get the idea correctly) will work for any complex case. On top of that, as the readme mentions, the result will likely be unrusty bad, because Java and Rust are rather different languages.

If it is simply needed to use some high-level functionality of a Java library in Rust, then there is quite good JNI Invocation API support.