Rust Anything
Plugin : A set of capabilities installed into an AI application or a host · requires claude-code
Migrates an application to Rust piece by piece, checking at each step that it behaves like the original.
The strong idea is proof: each rewritten portion is replayed against the recorded behavior of the original. Best reserved for teams with a real reason to move to Rust and the time to review the generated code; we have not tested the tool.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
Rewriting an application in Rust is risky: you never quite know whether the new version behaves exactly like the old one. Rust Anything targets that specific problem. It records what your original code does (returned values, errors, printed text), then replays every recorded case against the Rust version.
In practice it is a plugin for Claude Code, along with a command line. It analyses the repository, finds the hottest function, generates a Rust crate with a wrapper that keeps the original API for callers, then hands the writing of the code to your agent. The gate validates a unit once every recorded case matches and the quality checks pass (fmt, clippy, tests, no unsafe code, no recorded answers pasted into the port). A unit is only switched on at that point, and one command switches it back off.
The tool can also port a whole application, whether a command-line program or a server. A Rust front door receives the calls and hands anything not yet ported back to the original, then units move over one by one until the app is pure Rust. Side effects (outgoing HTTP calls, emails, database contents) can be recorded and compared too.
It is meant for teams with a real reason to move to Rust, such as a slow part to speed up, and the time to review the generated code. It suits small libraries less well: the author's published measurements show that calling Rust function by function can be slower than the original code. We have not tested the tool ourselves.
What it offers
- ·Records what the original code returns, throws and prints, on generated inputs, your own inputs or the calls made by your test suite (record).
- ·Replays every recorded case against the Rust port and names the spot where outputs differ (diff).
- ·Defines what done means with a gate: identical cases, fmt, clippy, cargo test, and checks for unsafe code, stubs and recorded answers pasted into the port.
- ·Generates the Rust crate and a wrapper that keeps the original API for callers, with bindings suited to the language (bridge).
- ·Produces a ranked migration plan and a profile of what is slow under a real workload, without spending tokens (analyze, profile).
- ·Ports a whole app, CLI or server, piece by piece: Rust front door, gradual switch-over, then a pure Rust app (app front-door, wire, replay, lift).
- ·Records and compares side effects: outgoing HTTP calls, emails and database state after each request.
- ·Detects drift when the original changes (app drift), keeps your behavior corrections as rules (rules), and provides a GitHub Action that runs the gate on every push.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- claude-code, cli
- Host
- claude-code
- Licence
- MIT OR Apache-2.0
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Local or cloud depending on use
- Maintenance
- Active
- Last release
- 28 November 2026
Links and repository checked on 29 November 2026 · added on 28 November 2026
How to install Rust Anything
npm install -g rust-anything