RustBridge translates Java into safe, idiomatic Rust, then compiles it, runs it, and repairs it until it prints exactly what your Java program prints. The Rust compiler and your program's own output check the work, not just a model.
curl -fsSL https://rustbridge.auduvanttechnologies.com/install.sh | sh
macOS and Linux. Needs Java 21+ and Rust. Or download the jar and run java -jar rustbridge.jar.
Translating line by line produces code that doesn't compile. RustBridge reads the compiler's errors and fixes the root cause, here by borrowing instead of moving, without scattering .clone() everywhere.
public class Ownership { public static void main(String[] args) { String name = "Genvium"; String name2 = name; System.out.println(name2); System.out.println(name.length()); } }
fn main() { let name = String::from("Genvium"); let name2 = &name; println!("{}", name2); println!("{}", name.len()); } // first attempt moved `name` (error E0382); // the repair borrows it instead of cloning
Compiling and running happen on your machine. RustBridge only sends the model what it needs to translate and repair.
A real Java parser maps classes, interfaces and risky constructs before any model sees your code.
The model writes Rust using a small runtime that reproduces Java's number formatting, String.format, and HashMap order.
cargo build runs locally. Compiler errors go back for targeted fixes until it builds.
Your Java program and the Rust both run. Any difference in output triggers another repair.
Every translation comes with a Cargo project and a report a human can review.
Byte-for-byte comparison against your Java program's real output, including doubles, formatting and map order.
RustBridge flags translations that copy expected output into the code instead of computing it.
Counts clones, RefCells, unwraps and unsafe, plus decisions worth a second look.
Standard library plus the RustBridge runtime. No external crates, no unsafe.
Built against a 70-program test suite: shared mutable state, inheritance, exceptions, generics, regex, overflow, UTF-16.
The beta handles single-file programs. Multi-file projects and Spring Boot services are coming next.
Free for learners. A translation is one file, including all its repairs, and a translation that fails at the first step isn't counted.
For students and the curious
For developers moving real code
Available at launch in January 2027.
Bring an Anthropic API key
--provider anthropic with ANTHROPIC_API_KEY set.
RustBridge needs your source to translate it. It doesn't need to keep it.
RUSTBRIDGE_NO_REPORT=1. Reports never include code.Try it on your own Java and tell us what broke. Failing programs, with your permission, become test cases that make the next version better.