Wait.. wasm compiles to Java Bytecode?
Quite directly[0] :-) There's even an example using Rust regex on the JVM to get speedups in some cases [1].
0 - https://github.com/cretz/asmble 1 - https://github.com/cretz/asmble/tree/master/examples/rust-re...