fast-anything: Rewrite Only the Slow 5% in Rust
Original: Fast-Anything: Don't rewrite it in Rust. Rewrite the 5% that's slow
Why This Matters
Surgical Rust optimization via AI agents could lower the bar for native-speed hotfixes.
fast-anything is an open-source CLI tool that profiles Python, Node.js, or Ruby apps, identifies hot functions, ports only those to Rust via a coding agent, then validates behavioral equivalence before swapping them in.
Released on GitHub by EL4CTEO, fast-anything targets a common developer pain point: the temptation to rewrite an entire application in Rust for performance gains that could be achieved by optimizing a small fraction of the codebase. The tool's premise is blunt — most runtime cost lives in a handful of functions, so only those need to change.
The workflow is straightforward: profile the app, let a coding agent (Claude Code or OpenAI Codex) port the identified hot functions to Rust, record real call inputs and outputs to prove behavioral equivalence, then swap the native extension in. The process is described as one command and fully reversible.
Under the hood, it uses PyO3 for Python bindings, napi-rs for Node.js, and FFI for Ruby — compiling the Rust code with the user's local Rust toolchain via rustup. The package is available on npm as @el4cteo/fast-anything or via cargo install.
The repo has picked up 1.5k stars and 93 forks since launch, with active issues and pull requests. It supports MCP server integration and ships as a Claude Code plugin, positioning it squarely in the emerging AI-assisted developer tooling space.