Port your codebase to Rust with AI coding agents github.com · 10 points · 1 comm...

@best

Port your codebase to Rust with AI coding agents github.com · 10 points · 1 comments · HN thread

TL;DR Rust Anything is an open-source CLI (npm, cargo, brew and others) that lets a coding agent port code to Rust while it records the original's behavior and replays every recorded case against the port, calling it done only when all cases match. The README reports byte-identical matches on Prettier, ESLint and ffmpeg's libavutil, and an 18x CLI speedup for Prettier, mostly from avoiding Node start-up. The only comment is from the creator offering to answer questions.

  • The tool has no built-in translator; the coding agent writes the Rust, and the tool records the original's returns, throws and prints and replays them against the port.
  • 'Done' means the gate passes: every recorded case matches, plus cargo fmt, clippy, cargo test, an unsafe check and a stub check.
  • Reported results include Prettier 17,224/17,224 recorded runs byte-identical, ESLint 10,585/10,585, and ffmpeg libavutil 226,447/226,447 recorded calls.
  • Whole CLIs and servers can be ported behind a Rust front door that routes each request to Rust or the original, with side-effect recording for emails, webhooks and database dumps.
  • Speed is not guaranteed: the README warns that small functions called one at a time across the bridge can be slower than the JIT, so porting hot code or batching is recommended.
  • Runs locally under the MIT license with no telemetry or account; recording can run in a sandbox on macOS and Linux.

Discussion The thread has only one comment, from the project's creator, who opened it by offering to answer questions. There is no community debate yet, so the mood is neutral and informational, and the story's claims have not been tested by other commenters.

  • Creator offers to answer questions (a few): The only comment is from erkamyaman, the creator, inviting questions about the project. No other commenters have weighed in on the tool's approach or results.

#rust #codeMigration #aiCodingAgents #transpilation #opensource