Directories
¶
| Path | Synopsis |
|---|---|
|
Package analyze builds the migration plan: units, their dependency graph, port order and readiness.
|
Package analyze builds the migration plan: units, their dependency graph, port order and readiness. |
|
Package app is `app record` and `app replay` for command-line apps, in any language: the program is a black box (rust-anything's `app.rs`).
|
Package app is `app record` and `app replay` for command-line apps, in any language: the program is a black box (rust-anything's `app.rs`). |
|
Package apphttp is `app record` and `app replay` for apps that are HTTP servers: start the original (or any build) on a port, send the recorded requests in order, and store or compare what it answers (rust-anything's `http.rs`).
|
Package apphttp is `app record` and `app replay` for apps that are HTTP servers: start the original (or any build) on a port, send the recorded requests in order, and store or compare what it answers (rust-anything's `http.rs`). |
|
Package audit is the append-only log of what runs in production and every gate that was run: one JSON line per change in `<repo>/go/audit.jsonl`.
|
Package audit is the append-only log of what runs in production and every gate that was run: one JSON line per change in `<repo>/go/audit.jsonl`. |
|
Package bridge is step 2 of the loop: it reads what a unit of the original offers and writes the port module that carries it to Go, `<repo>/go/<unit>-go/` (rust-anything's `bridge.rs`).
|
Package bridge is step 2 of the loop: it reads what a unit of the original offers and writes the port module that carries it to Go, `<repo>/go/<unit>-go/` (rust-anything's `bridge.rs`). |
|
Package build builds a port module: `go build -buildmode=c-shared` into `build/`, and for a TS/JS unit the koffi package its wrapper loads the library with (rust-anything's `harness::build`).
|
Package build builds a port module: `go build -buildmode=c-shared` into `build/`, and for a TS/JS unit the koffi package its wrapper loads the library with (rust-anything's `harness::build`). |
|
Package cache is `clean`: it removes what a port module builds and what the tool keeps for it, and can remove the Go build cache too.
|
Package cache is `clean`: it removes what a port module builds and what the tool keeps for it, and can remove the Go build cache too. |
|
Package card renders a unit's result as Markdown and an SVG card, for a pull request or a README: rust-anything's `card.rs`.
|
Package card renders a unit's result as Markdown and an SVG card, for a pull request or a README: rust-anything's `card.rs`. |
|
Package cli is the command line.
|
Package cli is the command line. |
|
Package codegen writes the files of a port module: the stubs to port (`port/port.go`), the generated cgo side (`main.go`, `wire.go`), the runtime (`goany/goany.go`) and the wrapper the source language loads (`python/<name>/__init__.py`, `index.cjs`).
|
Package codegen writes the files of a port module: the stubs to port (`port/port.go`), the generated cgo side (`main.go`, `wire.go`), the runtime (`goany/goany.go`) and the wrapper the source language loads (`python/<name>/__init__.py`, `index.cjs`). |
|
goany
Package goany is the runtime of a go-anything port module: the JSON value the wire carries, an insertion-ordered map, and the decoders and encoders the generated bindings call.
|
Package goany is the runtime of a go-anything port module: the JSON value the wire carries, an insertion-ordered map, and the decoders and encoders the generated bindings call. |
|
Package core holds the contracts the workstreams share: names on disk, the bridge manifest, the recorded case, and the interfaces one area calls another through.
|
Package core holds the contracts the workstreams share: names on disk, the bridge manifest, the recorded case, and the interfaces one area calls another through. |
|
Package doctor checks the tools a port needs on this machine, and says the command that fixes each problem: `go-anything doctor`.
|
Package doctor checks the tools a port needs on this machine, and says the command that fixes each problem: `go-anything doctor`. |
|
Package drift is `app drift` (rust-anything's `drift.rs`): whether the recording still describes the original, and the port still matches it.
|
Package drift is `app drift` (rust-anything's `drift.rs`): whether the recording still describes the original, and the port still matches it. |
|
Package effects records what leaves an app besides its output: the HTTP calls it makes, the mail it sends and the state it leaves in a database.
|
Package effects records what leaves an app besides its output: the HTTP calls it makes, the mail it sends and the state it leaves in a database. |
|
Package enable switches a ported unit in and out of the app with one command.
|
Package enable switches a ported unit in and out of the app with one command. |
|
block
Package block is the text `enable` puts into an original source file and takes out again.
|
Package block is the text `enable` puts into an original source file and takes out again. |
|
enabletest
Package enabletest builds the fixtures the switching tests share: an original in a scratch repository, bridged with the language plugin, recorded by running it, ported by hand and built into a shared library the original's callers load.
|
Package enabletest builds the fixtures the switching tests share: an original in a scratch repository, bridged with the language plugin, recorded by running it, ported by hand and built into a shared library the original's callers load. |
|
Package fromtests is `record --from-tests -- <test command>` (rust-anything's `from_tests.rs`): it runs the original's own test suite and keeps every call it makes to the unit's exported functions as recorded inputs, so the cases cover what the project's authors thought worth testing, not only generated values.
|
Package fromtests is `record --from-tests -- <test command>` (rust-anything's `from_tests.rs`): it runs the original's own test suite and keeps every call it makes to the unit's exported functions as recorded inputs, so the cases cover what the project's authors thought worth testing, not only generated values. |
|
Package frontdoor is rust-anything's `front_door.rs` and `front_door_http.rs` with Go for Rust: `app front-door` scaffolds `<repo>/go/app`, a Go program that owns a CLI's or a server's entry point and hands every command (or request) no unit answers yet to the original, and `app wire` hands a gated unit's commands (or routes) to its port behind a kill switch, `GO_ANYTHING_UNIT_<NAME>=original`.
|
Package frontdoor is rust-anything's `front_door.rs` and `front_door_http.rs` with Go for Rust: `app front-door` scaffolds `<repo>/go/app`, a Go program that owns a CLI's or a server's entry point and hands every command (or request) no unit answers yet to the original, and `app wire` hands a gated unit's commands (or routes) to its port behind a kill switch, `GO_ANYTHING_UNIT_<NAME>=original`. |
|
Package fuzz is live differential testing: fresh inputs from a new seed, run through the original and the Go port, mismatches reported and optionally kept in the recording.
|
Package fuzz is live differential testing: fresh inputs from a new seed, run through the original and the Go port, mismatches reported and optionally kept in the recording. |
|
Package gate is the definition of done for one port: every check here must pass before a port ships.
|
Package gate is the definition of done for one port: every check here must pass before a port ships. |
|
Package harness is the runtime half of the loop: `record` runs the original in its own runtime and saves what each call returned, threw, changed and printed; `diff` replays every recorded case against the built port, through the wrapper, the way the original's callers call it (rust-anything's `harness.rs` and `harness_py.rs`).
|
Package harness is the runtime half of the loop: `record` runs the original in its own runtime and saves what each call returned, threw, changed and printed; `diff` replays every recorded case against the built port, through the wrapper, the way the original's callers call it (rust-anything's `harness.rs` and `harness_py.rs`). |
|
Package jsonv is the JSON value every recording, manifest and wire message goes through.
|
Package jsonv is the JSON value every recording, manifest and wire message goes through. |
|
Package lang holds what the source-language plugins share with `analyze`: the shape of a workspace (packages, source files), the facts a scan collects from one file, how an import resolves, and the machinery that sorts a unit's exports into what crosses the bridge and what stays in the original.
|
Package lang holds what the source-language plugins share with `analyze`: the shape of a workspace (packages, source files), the facts a scan collects from one file, how an import resolves, and the machinery that sorts a unit's exports into what crosses the bridge and what stays in the original. |
|
c
Package c is the C source-language plugin (rust-anything's `lang/c.rs`): build folders, `#include`s, risks, and the exported functions whose signatures a drop-in replacement with the original's C names can take over: scalars, `const char *` strings, byte buffers with a length parameter, and pointers to one scalar the function writes (`out`).
|
Package c is the C source-language plugin (rust-anything's `lang/c.rs`): build folders, `#include`s, risks, and the exported functions whose signatures a drop-in replacement with the original's C names can take over: scalars, `const char *` strings, byte buffers with a length parameter, and pointers to one scalar the function writes (`out`). |
|
php
Package php is the PHP source-language plugin: composer.json packages and PSR-4 roots, `require` and `use` imports, the facts `analyze` scores, and the functions and public static methods of a unit with native and phpdoc types mapped into the type dialect.
|
Package php is the PHP source-language plugin: composer.json packages and PSR-4 roots, `require` and `use` imports, the facts `analyze` scores, and the functions and public static methods of a unit with native and phpdoc types mapped into the type dialect. |
|
python
Package python is the Python source-language plugin: packages and imports, the facts `analyze` scores, the PyPI-to-Go table lookup, and the exported functions and classes of a unit with type hints mapped into the TS-like type dialect.
|
Package python is the Python source-language plugin: packages and imports, the facts `analyze` scores, the PyPI-to-Go table lookup, and the exported functions and classes of a unit with type hints mapped into the TS-like type dialect. |
|
ruby
Package ruby is the Ruby source-language plugin: the gem and its files, requires, and the module functions of a unit (`def self.x`, `module_function`, `extend self`, `class << self`) with YARD types mapped into the TS-like type dialect.
|
Package ruby is the Ruby source-language plugin: the gem and its files, requires, and the module functions of a unit (`def self.x`, `module_function`, `extend self`, `class << self`) with YARD types mapped into the TS-like type dialect. |
|
rust
Package rust is the Rust source-language plugin: where rust-anything has Go as a source language (`lang/go.rs`), go-anything has Rust.
|
Package rust is the Rust source-language plugin: where rust-anything has Go as a source language (`lang/go.rs`), go-anything has Rust. |
|
ts
Package ts is the TypeScript/JavaScript language plugin: discovery, scanning, import resolution and the exports of a unit, over tree-sitter (rust-anything uses oxc here).
|
Package ts is the TypeScript/JavaScript language plugin: discovery, scanning, import resolution and the exports of a unit, over tree-sitter (rust-anything uses oxc here). |
|
Package languages links in every source language's plugin (internal/lang/<x>), so the commands that read originals find them: import it for its side effect,
|
Package languages links in every source language's plugin (internal/lang/<x>), so the commands that read originals find them: import it for its side effect, |
|
Package lift is the part of `app lift` (rust-anything's `lift.rs`) that does not need the front door: the checklist's checks of a lifted Go app (no process that runs the original, no embedded interpreter, no path into the original's repository; the files it reads at run time; the targets named in go/DECISIONS.md), and hiding the original while the lifted binary is replayed.
|
Package lift is the part of `app lift` (rust-anything's `lift.rs`) that does not need the front door: the checklist's checks of a lifted Go app (no process that runs the original, no embedded interpreter, no path into the original's repository; the files it reads at run time; the targets named in go/DECISIONS.md), and hiding the original while the lifted binary is replayed. |
|
Package loop is `go`, the hot-path loop in one command (rust-anything's `go.rs`; a Go package cannot be called `go`): profile the workload, bridge the outermost portable hot function, record it with the calls the workload makes, hand the port to an agent, then build, diff, gate and bench it, and switch it on with `enable` only when every case matches, gate passes and the port is not slower as its callers call it.
|
Package loop is `go`, the hot-path loop in one command (rust-anything's `go.rs`; a Go package cannot be called `go`): profile the workload, bridge the outermost portable hot function, record it with the calls the workload makes, hand the port to an agent, then build, diff, gate and bench it, and switch it on with `enable` only when every case matches, gate passes and the port is not slower as its callers call it. |
|
Package mcp is the MCP server behind `go-anything mcp`: every step as a tool, for any agent.
|
Package mcp is the MCP server behind `go-anything mcp`: every step as a tool, for any agent. |
|
Package measuretest is what the tests of `report`, `map` and `clean` share: a copy of one of the two demo ports (real, recorded, with their audit log) to run the commands on.
|
Package measuretest is what the tests of `report`, `map` and `clean` share: a copy of one of the two demo ports (real, recorded, with their audit log) to run the commands on. |
|
Package mismatch says where a recorded case and the port's answer part, which mismatches are the same difference, and how to show them without their values (rust-anything's `mismatch.rs`), and decides whether two values match under the loosenings a recording allows (its `tolerance.rs`).
|
Package mismatch says where a recorded case and the port's answer part, which mismatches are the same difference, and how to show them without their values (rust-anything's `mismatch.rs`), and decides whether two values match under the loosenings a recording allows (its `tolerance.rs`). |
|
Package modules is the counterpart of rust-anything's `crates.rs` with `crates.toml`: the libraries a source language's code imports and the Go package that replaces each (a standard library package where there is one, else a module), from a data table: adding a mapping is a few lines in `modules.toml`, not code.
|
Package modules is the counterpart of rust-anything's `crates.rs` with `crates.toml`: the libraries a source language's code imports and the Go package that replaces each (a standard library package where there is one, else a module), from a data table: adding a mapping is a few lines in `modules.toml`, not code. |
|
Package obligations is the registry of what the original offers: its exports, commands, flags, routes, environment variables and error paths, read from the source and not from the recordings.
|
Package obligations is the registry of what the original offers: its exports, commands, flags, routes, environment variables and error paths, read from the source and not from the recordings. |
|
evidence
Package evidence is `obligations --evidence`: it links each obligation of the registry to the recorded cases that exercise it, lists the ones no case exercises with a candidate input, reads go/obligations-bindings.toml and writes go/OBLIGATIONS.evidence.json.
|
Package evidence is `obligations --evidence`: it links each obligation of the registry to the recorded cases that exercise it, lists the ones no case exercises with a candidate input, reads go/obligations-bindings.toml and writes go/OBLIGATIONS.evidence.json. |
|
Package pack is `go-anything package`: it turns a gated port module into packages end users install (rust-anything's `package`, in src/package.rs).
|
Package pack is `go-anything package`: it turns a gated port module into packages end users install (rust-anything's `package`, in src/package.rs). |
|
Package pin is the pinned clock and random numbers of `record --pin-clock`, so units that read them can be recorded and diffed (rust-anything's `pin.rs`).
|
Package pin is the pinned clock and random numbers of `record --pin-clock`, so units that read them can be recorded and diffed (rust-anything's `pin.rs`). |
|
pinned
Package pinned is the clock and random numbers the original saw while go-anything recorded it.
|
Package pinned is the clock and random numbers the original saw while go-anything recorded it. |
|
Package portmap maps the port: every unit of the original, the port module that ports it, its cases and last diff, its last switch from the audit log, and which recordings the original has changed past since they were made.
|
Package portmap maps the port: every unit of the original, the port module that ports it, its cases and last diff, its last switch from the audit log, and which recordings the original has changed past since they were made. |
|
Package process runs outside programs the way rust-anything's `process.rs` does: stdin closed, in a process group of their own, under a time limit, with what they print kept up to a cap.
|
Package process runs outside programs the way rust-anything's `process.rs` does: stdin closed, in a process group of their own, under a time limit, with what they print kept up to a cap. |
|
Package profile runs a real workload under the language's own profiler and says what to port: the counterpart of rust-anything's `profile.rs`.
|
Package profile runs a real workload under the language's own profiler and says what to port: the counterpart of rust-anything's `profile.rs`. |
|
Package recording makes and keeps what `record` saves: the generated inputs (edge cases per type and the semantic traps), the `--inputs` lines, `recorded-from.json` (what the recording was made from) and `known-diffs.jsonl` (differences a person accepted).
|
Package recording makes and keeps what `record` saves: the generated inputs (edge cases per type and the semantic traps), the `--inputs` lines, `recorded-from.json` (what the recording was made from) and `known-diffs.jsonl` (differences a person accepted). |
|
Package report writes a unit's result for a pull request or a README: `report/REPORT.md`, `report/card.svg` and `report/report.json` in the port module (rust-anything's `card::report`; its `report.rs` is the Markdown of `analyze`, which lives in `internal/analyze`).
|
Package report writes a unit's result for a pull request or a README: `report/REPORT.md`, `report/card.svg` and `report/report.json` in the port module (rust-anything's `card::report`; its `report.rs` is the Markdown of `analyze`, which lives in `internal/analyze`). |
|
Package risks is the catalog of source-language behaviors to account for when porting to Go.
|
Package risks is the catalog of source-language behaviors to account for when porting to Go. |
|
Package rules keeps the port rules: behavior the port must keep exactly, learned from the user's corrections.
|
Package rules keeps the port rules: behavior the port must keep exactly, learned from the user's corrections. |
|
Package selftest asks whether the checking itself catches what it claims to catch.
|
Package selftest asks whether the checking itself catches what it claims to catch. |
|
Package setup registers go-anything with the coding agents on this machine, in one command.
|
Package setup registers go-anything with the coding agents on this machine, in one command. |
|
Package shadow writes the drop-in module that runs the original and the Go port side by side.
|
Package shadow writes the drop-in module that runs the original and the Go port side by side. |
|
Package spec is the one description of the commands an agent can run: the MCP server builds its tools from it, `setup` and the skill are checked against it, and the tests that keep the three doors (the command line, the tools and the skill) in agreement read it.
|
Package spec is the one description of the commands an agent can run: the MCP server builds its tools from it, `setup` and the skill are checked against it, and the tests that keep the three doors (the command line, the tools and the skill) in agreement read it. |
|
Package state is what the command line last found for a port module, kept where any tool can read it (rust-anything's `state.rs`).
|
Package state is what the command line last found for a port module, kept where any tool can read it (rust-anything's `state.rs`). |
|
Package syntax parses source files of the original with tree-sitter.
|
Package syntax parses source files of the original with tree-sitter. |
|
Package walk finds a repository's files the way git sees them: it reads `.gitignore` (and `.ignore`) from the repository root down to the scanned folder and below it, never from folders above the repository (a `*` in a home-folder `.gitignore` would otherwise hide every file), and skips hidden files and folders.
|
Package walk finds a repository's files the way git sees them: it reads `.gitignore` (and `.ignore`) from the repository root down to the scanned folder and below it, never from folders above the repository (a `*` in a home-folder `.gitignore` would otherwise hide every file), and skips hidden files and folders. |
Click to show internal directories.
Click to hide internal directories.