Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin and PowerShell.

★ 10,954⑂ 893👁 30⑃ 455● 339▤ 22
RustApache-2.0Created 2026-11-16rustanything.ai
Download: v5.0.1v5.0.1 ↓5.0.12026-11-26
+451
Daily
+4,019
Weekly
10,954
stars
893
forks
30
watchers
455
prs
339
issues
22
releases

README

Rust Anything













Migrate your app to Rust, and prove it still behaves the same.








Documentation: https://rustanything.ai/


🌐 Other languages

Moving a codebase to Rust? I offer consulting for Rust migrations: [email protected]

 Sponsors


  Made in Türkiye 🇹🇷 by erKam Yaman
  Rust Anything is free and open source. If it helps your work, sponsoring keeps it going.


Your safety comes first: sponsors get a logo and a link here, nothing more. No paid recommendations and no setup guides for third-party AI API resellers, so nothing here steers your code, keys or data somewhere you didn't choose.


  
    
      
      
    
  



  
    
      
      
    
  



  
    
      
      
    
  



  
  


Sponsoring as a company, or anything else? [email protected]

Moving a codebase to Rust? I offer consulting for Rust migrations: [email protected]

 Quick start

Paste this into your coding agent:

text
Install Rust Anything with npm i -g rust-anything, then run rust-anything setup. Run rust-anything go --  and finish the port until rust-anything gate passes.


Or install it yourself:

sh
cargo install rust-anything    or: npm install -g rust-anything
rust-anything setup            adds it to Claude Code, Codex, Cursor, Gemini CLI and OpenCode


 [!TIP]
 Agents: read rustanything.ai/llms.txt for the install steps, every command and the porting workflow.

 How it works


  
    
    
  


What counts as done. Behavior, not your tests. record runs the original on generated and given inputs and saves what each call returns, throws and prints. A port is done when gate passes: every recorded case matches, and fmt, clippy, cargo test, the unsafe check, the stub check and the check for recorded answers pasted into the port all pass. Your own tests run too.

Report or migrate, you pick. analyze and profile only report: a ranked plan of what to port, and what is hot under a real workload. They are plain commands, so the report costs no tokens. go migrates one unit: it bridges the hottest function, records it, hands the port to your agent, then builds, diffs and gates it, and switches it on only when everything matches (TS/JS, Python and PowerShell; disable switches it back off).

How long a run takes. One go run ports one unit, with at most --rounds agent turns (3 by default): one for the port, then one per failing diff or gate. A whole app is one run per unit, so you can stop after any of them.

Cheap model for the plan, strong model for the port. The plan needs no model. For the port, pass any agent command: rust-anything go --agent "claude --model " -- .

Agents. rust-anything setup adds it to Claude Code, Codex, Cursor, Gemini CLI and OpenCode. Any other MCP client can run rust-anything mcp, and the skill also installs on its own with npx skills add erkamyaman/rust-anything (see install).

 License

Licensed under either of MIT or Apache-2.0, at your option. © Erkam Yaman. Ports and generated code in your repository are yours.

Top issues

Discussions

Latest release

v5.0.1 v5.0.1 2026-11-26
- rust-anything is now dual licensed under MIT OR Apache-2.0, the usual license for Rust projects. You
  can keep using it under MIT exactly as before; Apache-2.0 adds an explicit patent grant. LICENSE is
  now LICENSE-MIT, next to a new LICENSE-APACHE, and both ship in the crate, the npm package and
  the release archives.
- map counts units, not crates, in its first line: one unit bridged twice (napi and wasm, or a
  second bridge --out) reads 1 of 1 unit has a Rust port instead of 2 of 2 units have. The
  Ports table still lists every crate (609 by @Aadithya-kl).
- fuzz --time given a negat

Snapshot: 2026-11-28T10:06:57Z · Data license Apache-2.0 · JSON