rs4j works by using a custom language syntax to translate into Rust and Java code. A good way to use this is to make a build script and have it auto-compile your code.