IIRC graal can already run clang ir so in _theory_ you should be able to run Rust.
https://www.graalvm.org/latest/reference-manual/llvm/Compati...
It can run any LLVM bitcode, but I'm not sure where that leaves you if or when you want to call through from java.
Re:Rust to .NET compiler – Progress update
by neonsunset on Friday May 03, 2024 @10:08PM
(#40254236)
For the Rust use case, JVM is fundamentally limited in ways that .NET isn't. Perhaps GraalVM does better but IL offers a direct 1:1 for many features that Rust needs, like struct generics.
Getting into google Summer of code.
If anything, a GraalVM target would make more sense, as it's already gaining traction for this type of thing (although, usually interpreted langs like python, ruby, etc). Even there, the utility of running Rust on a JVM target also seems dubious.
TFA doesn't mention an intended use-case. Perhaps it's an academic endeavor?