Free beta

Write familiar. Compile native.

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

Java's references become Rust's borrows

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.

Ownership.javainput
public class Ownership {
    public static void main(String[] args) {
        String name = "Genvium";
        String name2 = name;
        System.out.println(name2);
        System.out.println(name.length());
    }
}
src/main.rscompiled, output matches
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

How it works

Compiling and running happen on your machine. RustBridge only sends the model what it needs to translate and repair.

Analyze

A real Java parser maps classes, interfaces and risky constructs before any model sees your code.

Translate

The model writes Rust using a small runtime that reproduces Java's number formatting, String.format, and HashMap order.

Compile & repair

cargo build runs locally. Compiler errors go back for targeted fixes until it builds.

Compare

Your Java program and the Rust both run. Any difference in output triggers another repair.

$ rustbridge translate Ownership.java Translating Ownership.java with RustBridge API analysis: 1 type(s) [class Ownership], 1 method(s), has main() 2 of 3 free translations left this month attempt 1 (TRANSLATE): 1 compile error(s) attempt 2 (FIX_COMPILE): compiles, output matches Result: Compiles and output matches Java Project: rust-out/Ownership Report: rust-out/Ownership/rustbridge-report.md

What you get

Every translation comes with a Cargo project and a report a human can review.

Output-verified

Byte-for-byte comparison against your Java program's real output, including doubles, formatting and map order.

No faked results

RustBridge flags translations that copy expected output into the code instead of computing it.

Idiom report

Counts clones, RefCells, unwraps and unsafe, plus decisions worth a second look.

Safe Rust only

Standard library plus the RustBridge runtime. No external crates, no unsafe.

Tested on hard Java

Built against a 70-program test suite: shared mutable state, inheritance, exceptions, generics, regex, overflow, UTF-16.

Spring Boot next

The beta handles single-file programs. Multi-file projects and Spring Boot services are coming next.

Pricing

Free for learners. A translation is one file, including all its repairs, and a translation that fails at the first step isn't counted.

Free

$0

For students and the curious

  • 3 translations a month
  • Files up to 300 lines
  • Sign in with GitHub

Your own key

$0 + your Anthropic usage

Bring an Anthropic API key

  • Unlimited translations
  • No line limit
  • No sign-in needed

--provider anthropic with ANTHROPIC_API_KEY set.

Your code stays yours

RustBridge needs your source to translate it. It doesn't need to keep it.

Help shape the beta

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.

Download Send feedback