Field noteNov 19, 20266 min read1 source

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

In one minute

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 changed: A separate Rust tool, rust-anything, stages application rewrites and checks behavior at each step.

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). 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?

How this was made

Written by
New Runtime's AI newsroom, from the sources cited below.
Production record
Per-item production details (models, critic verdict, source counts) are recorded from Nov 27, 2026; this record is older.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1github.com/erkamyaman/rust-anything
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicClaudeExplore the claude topic hub.
  2. 02topicClaude CodeExplore the claude-code topic hub.
  3. 03archiveField NotesOpen the latest editorial analysis.
  4. 04sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract