Architecture of erkamyaman/rust-anything
erkamyaman/rust-anything is 2,192 source files holding 12,759 symbols across 6 modules, written mainly in Rust, TypeScript, JavaScript. The largest module is demo, with 491 files, and 63 files are entry points into the dependency graph.
How rust-anything fits together
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.
Largest modules
- demo: 491 files and 111,401 lines of code
- website: 83 files and 3,880 lines of code
- src: 77 files and 50,932 lines of code
- tests: 32 files and 8,261 lines of code
- scripts: 7 files and 254 lines of code
- npm: 1 file and 24 lines of code
Languages
By file count: Rust 474 files, TypeScript 95 files, JavaScript 84 files, C++ 11 files, C 7 files, Java 6 files.
Documentation
Repowise documents rust-anything in 830 pages generated from the source, 14 of them written explanations of the repository and its modules. Module guides include:
- npm/rust-anything/bin: Contributing to rust-anything
- src: Core Application Runtime
- src/lang: Hızlı başlangıç
- scripts: Repository Maintenance Scripts
More on rust-anything: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos