erkamyaman /rust-anything
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
+451
日增长
+4,019
周增长
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
#200Language roadmap: complete existing support; prioritize C++, Swift, Dart, PowerShell, CUDA, CMake, Assembly, Shell (SH), Batch/CMD and Dockerfile2 comments · 2026-11-22#786src/analyze.rs has no unit tests for priority and unit_id1 comments · 2026-11-27#772src/lang/go.rs has no unit test for unquote_go_string1 comments · 2026-11-27#745bridge: flag functions that read global/app state instead of scaffolding them as pure1 comments · 2026-11-27#679`record` and `fuzz` rarely reach values nested inside encoded arguments1 comments · 2026-11-26#788src/lang/java.rs has no unit tests for strip_kw, jdk_set and package_name_in0 comments · 2026-11-27#787src/lang/powershell.rs has no unit test for local_path0 comments · 2026-11-27#785src/lang/php.rs has no unit tests for plain_type, bare_array and literal_type0 comments · 2026-11-27
Discussions
#642rust-anything 5.0: the old program is the judge, now with sharper eyes0 comments · 2026-11-25#390rust-anything 4.0: a website and a Discord4 comments · 2026-11-24#305Is there a way to use rust-anything with async code?1 comments · 2026-11-23#303How does rust-anything handle errors across the boundary?1 comments · 2026-11-23#165rust-anything 3.0: ports you can install, starting with eslint-rs0 comments · 2026-11-21#127Welcome to rust-anything Discussions 🦀 Thank you, and tell me what you think1 comments · 2026-11-20
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