---
type: "post"
id: "rust-anything-is-an-open-source-tool-for-2953cc"
slug: "rust-anything-is-an-open-source-tool-for-2953cc"
title: "rust-anything is an open-source tool for moving applications to Rust in stages"
description: "rust-anything is an open-source tool for moving applications to Rust in stages, checking each step against behavior recorded from the original program."
retrieval_nugget: "rust-anything is an open-source tool for moving applications to Rust in stages, checking each step against behavior recorded from the original program. It targets CLIs, HTTP servers, and libraries in six source languages. For teams planning a rewrite, its important contribution is to make behavioral equivalence a continuing gate rather than an assumption saved for the end."
published_at: "2026-11-19"
updated_at: "2026-11-19"
record_date: "2026-11-19"
date_kind: "published_at"
topics: ["claude","claude-code"]
entities: ["rust-anything","Erkam Yaman","Rust","Claude Code","Model Context Protocol"]
related_patterns: []
novelty_label: "new_fact"
what_changed: "A separate Rust tool, rust-anything, stages application rewrites and checks behavior at each step."
prior_refs: ["https://newruntime.com/posts/artcraft-open-sources-craft-anything-a-rust-app-17e3d4/"]
source_url: "https://github.com/erkamyaman/rust-anything"
source_urls: ["https://github.com/erkamyaman/rust-anything"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:rust-anything-is-an-open-source-tool-for-2953cc"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/rust-anything-is-an-open-source-tool-for-2953cc/","markdown":"https://newruntime.com/posts/rust-anything-is-an-open-source-tool-for-2953cc.md","json":"https://newruntime.com/posts/rust-anything-is-an-open-source-tool-for-2953cc.json"}
markdown_url: "https://newruntime.com/posts/rust-anything-is-an-open-source-tool-for-2953cc.md"
---

# rust-anything is an open-source tool for moving applications to Rust in stages

## Retrieval answer

rust-anything is an open-source tool for moving applications to Rust in stages, checking each step against behavior recorded from the original program. It targets CLIs, HTTP servers, and libraries in six source languages. For teams planning a rewrite, its important contribution is to make behavioral equivalence a continuing gate rather than an assumption saved for the end.

## Summary
rust-anything is an open-source tool for moving applications to Rust in stages, checking each step against behavior recorded from the original program. It targets CLIs, HTTP servers, and libraries in six source languages. For teams planning a rewrite, its important contribution is to make behavioral equivalence a continuing gate rather than an assumption saved for the end.

## What happened
The rust-anything GitHub repository describes a workflow for rewriting software in Rust one piece at a time. The project says it supports CLIs, HTTP servers, and libraries written in TypeScript, Python, C, Go, Ruby, and Java. Rather than producing a replacement in one pass, it structures a migration around recording behavior, porting a bounded part, and checking the result.

Recording is the starting point. The project says its recorder can capture cases from the existing program and measure which lines of the original source those cases reach. It saves that information in `recorded-from.json`, while both `record` and `gate` report lines that the cases never reached. The immediate value is not a claim of complete equivalence. It is a visible boundary around the behavior that has actually been exercised before a Rust implementation replaces any of it.

The repository also describes operational safeguards around recording. Programs launched by the tool, including test suites, Cargo, profilers, and formatters, run with standard input closed, in separate process groups, and under the `RUST_ANYTHING_COMMAND_TIMEOUT` limit. The project says this prevents a test runner left in watch mode from stalling `record --from-tests`. These are mundane controls, but they matter when a migration process is meant to run repeatably rather than only in a carefully managed demonstration.

After the baseline is recorded, developers port portions of the application and use a gate to compare the Rust implementation with the recorded cases. The repository describes the gate as the check at every step. It also identifies unported constructs: `todo!` and functions that only panic count as not ported. A change history for `port.rs` can flag a stalled port after three changes that do not add a matching case, and the accompanying skill tells the agent to stop and ask at that point.

The project exposes the workflow through a CLI, a library, a Claude Code plugin, and an MCP server. Recent repository changes say that the CLI and MCP tools use the same options; MCP calls provide progress notifications and cancellation, and failed calls carry structured information including a code, message, retryability, and next action. The GitHub page identifies release 2.0.2 in a recent commit. In a Python demonstration, the project reports that a textkit fixture was ported with 1,144 matching cases and a passing gate. That is a project-reported example, not an independently audited migration outcome.

## What the archive adds
New Runtime's earlier coverage described ArtCraft's Craft Anything, a Rust agent for studying and rebuilding software ([November 1, 2026](https://newruntime.com/posts/artcraft-open-sources-craft-anything-a-rust-app-17e3d4/)). rust-anything is a new event on a related thread: its stated focus is staged migration checked against recorded original behavior, rather than rebuilding a studied application.

## Trend signal
This does not yet fit a pattern New Runtime tracks. Its strongest lesson is narrower: a rewrite workflow becomes more credible when it makes the scope of tested behavior visible and blocks progress on a failed comparison, rather than treating generated Rust code as the outcome by itself.

## Why now
The repository's recent changes include Python support, MCP-facing improvements, a Claude Code plugin, coverage reporting for recorded cases, command time limits, and a 2.0.2 release commit. Together, those changes indicate active work on turning the record-port-check loop into an agent-accessible workflow rather than a one-off conversion script.

## Why it matters
A rewrite often fails in the space between what a system visibly does and what its tests happen to assert. Teams can replace a large amount of code, pass a narrow suite, and still lose error paths, compatibility behavior, or operational assumptions that users depend on. rust-anything starts from a more defensible premise: preserve behavior that has been observed, then expose where the observation is incomplete.

That makes the tool relevant to teams using coding agents in migration work. An agent can generate an impressive port, but code generation is not validation. Here, recorded cases are the reference, the gate is the immediate check, and uncovered original lines are a prompt to decide whether more evidence is needed before expanding the port. The workflow does not eliminate engineering judgement. It gives that judgement a smaller, reviewable unit: one bounded change and the behavior it demonstrably preserves.

The same model can be adopted without committing to the tool or Rust. Capture externally observable behavior before a risky refactor, make a comparison part of each increment, and treat missing coverage as a known migration risk. That is a better operating discipline than measuring progress only by the number of files rewritten.

## What happens next
- **The project will add or harden language-specific migration paths beyond its current demonstrations** (3 months, 65%). Watch for: tagged releases with new runtime fixtures and passing gate results.
- **Teams evaluating agent-assisted rewrites will use recorded behavior as an explicit acceptance boundary** (6 months, 55%). Watch for: migration tools that report baseline coverage and comparison outcomes alongside generated code.

## Limits and uncertainty
The repository's 1,144-case Python result is reported by the project and has not been independently audited. Passing recorded cases cannot establish equivalence for inputs, execution paths, integrations, or failures that those cases never exercise. Line reachability is helpful evidence, but it is not the same as a complete specification of behavior.

Support depth can also differ by source language, application structure, and the feasibility of building a representative recording harness. The repository documents interfaces and recent capabilities, but production teams should validate compatibility on a small bounded component, inspect generated bridges and failure modes, and establish their own rollback plan before applying the workflow to a critical system.

## Skill to build now
Choose one small library or service boundary and build a behavioral baseline before changing its implementation. Run its existing tests through a recorder, inspect the lines those cases do not reach, and add scenarios for observable errors and edge cases. Port one bounded unit only, run the comparison gate, and stop when a change adds no matching evidence. This gives an AI-assisted migration a concrete approval rule rather than an open-ended coding task.

## Reader takeaway
The useful idea is not simply to rewrite software with an agent or to rewrite it in Rust. It is to make every migration increment answerable to recorded behavior and to show where that evidence is thin. A staged gate can reduce rewrite risk, provided teams treat it as a guardrail rather than proof of complete equivalence.

## Open question
Can the project produce independently reproducible results on complex production applications, especially where behavior depends on external services, concurrency, or stateful data?

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude-code topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
