# erkamyaman/rust-anything

> rust-anything is a tool for rewriting an existing app in Rust one piece at a time, while proving the rewrite still behaves the same. It records what the original app does and checks each Rust piece against those recorded cases before moving on, until the app is pure Rust. It works on Node.js, Python, C, Go, Ruby, Java and Kotlin apps, and the tool itself is written in Rust.

Source: https://github.com/erkamyaman/rust-anything
Indexed: commit 8ac2c1c on 2026-11-22 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Library
- Language: Rust
- Stars: 7,711 at index time
- License: MIT
- Code health: 6.4/10, Fair
- Last commit: 2026-11-21
- Contributors: 21

## Install

From the README: https://github.com/erkamyaman/rust-anything#install-the-ports

Register rust-anything with your coding agents.
    rust-anything setup # registers it with Claude Code, Codex, Cursor, Gemini CLI and OpenCode

## How it works

The record step runs the original app on generated edge cases, semantic traps and your own inputs, and saves what it returns or throws. The port step uses bridge to generate a Rust crate and a wrapper, so callers keep the original API, while a developer or coding agent writes the Rust code. The diff step replays every recorded case against the Rust code, and a piece moves on only when all of them match. The src directory holds the analyzer that reads an existing project, groups its code into units and generates the Rust code that connects to each unit, reached through commands such as rust-anything analyze and rust-anything diff. The src/lang directory extends that analysis to projects written in languages other than TypeScript. The demo/real-world directory holds Rust crates that reimplement small pieces of C and Go standard-library behavior, each with a bridge that exposes it to the original language.

- demo/fuzzy-napi/src/lib.rs: entry point
- demo/fuzzy-rs/src/lib.rs: entry point
- demo/real-world/c-libc-rs/src/lib.rs: entry point
- demo/real-world/eslint-rs/app/src/cli.rs: entry point
- demo/real-world/eslint-rs/app/src/main.rs: entry point
Modules: demo, website, src, tests, scripts, npm. 2,192 files, 174,752 lines, 12,759 symbols.

## Code health

- Score: 6.4/10 (Fair)
- Trend: 6.4 on 2026-11-18, 6.0 on 2026-11-20, 6.4 on 2026-11-22
- Rank: #193 of 4,000+ indexed repos
- Hotspots: src/harness.rs, src/bridge.rs, src/main.rs, src/app.rs, src/codegen_java.rs
- Lowest file: demo/real-world/prettier-rs/prettier-js-rs/src/markdown/remark.rs
- Dead code: 59 findings

## Maintenance

- Last commit 2026-11-21, first commit 2026-11-16, 297 commits
- 21 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/erkamyaman/rust-anything/security

## More

- Page: https://repowise.dev/repo/erkamyaman/rust-anything
- Ask this codebase: https://repowise.dev/repo/erkamyaman/rust-anything/chat
- Docs: https://repowise.dev/repo/erkamyaman/rust-anything/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/erkamyaman/rust-anything
