CLI reference
Generated from rust-anything --help and each subcommand's --help (rust-anything 4.0.0).
rust-anything
text
Rewrite TypeScript/JavaScript, Python, C, Go, Ruby, Java, Kotlin, PHP, C# or PowerShell apps in Rust, one verified piece at a time
Usage: rust-anything <COMMAND>
Commands:
analyze 1. Map a repository and write a ranked, ordered migration plan
bridge 2. Scaffold a Rust crate with bindings for one unit
refresh 2b. Regenerate the bindings (`lib.rs`, `index.cjs`, `js.rs`) from the signatures in `port.rs`
record 3a. Record what the original's functions return on generated and given inputs
build 3b. Build the crate's JS module (napi-rs `.node`, wasm-bindgen output) or, with `--profile android`, the JNI library for Android ABIs into `jniLibs/`
diff 3c. Replay recorded cases against the Rust module
bench 3d. Time the recorded cases on the original and on Rust, bridge included
fuzz 3e. Run fresh inputs from a new seed through the original and the port and report where they differ: what the recorded cases did not cover
profile Run a real workload under the language's profiler and say what to port: hot functions, their callers, and loops to batch. `rust-anything profile <repo> -- node bench.mjs` (also `python3 x.py`, `go test -bench . ./pkg`, `java ...`, `ruby x.rb`)
go The hot-path loop in one command: profile the workload, bridge the top portable function, record it, hand the port to an agent, then build, diff and gate it, and switch it on only when everything matches. `rust-anything go --agent claude -- python3 app.py`
enable Switch a ported unit on: one marked block in the original source files rebinds its functions to the Rust module, for every caller (TS/JS and Python). `disable` removes it
disable Switch a unit off: removes exactly the lines `enable` added
report Write a unit's result for a pull request or README: REPORT.md and card.svg with the recorded cases matched, the speedup from bench, the fallback rate and the machine
clean Remove the build cache every port and bridge shares (CARGO_TARGET_DIR when set, else rust-anything/target in your cache folder). Ports rebuild on their next build
shadow 4. Generate a drop-in module that runs the original and Rust side by side
gate 5. Check the definition of done for a port
package 6. Lay out installable packages and a CI workflow for every platform; never publishes
app Record the whole app's behavior and replay any build against it (CLIs and servers)
mcp Serve every step as MCP tools over stdio
setup Register rust-anything with your coding agents (Claude Code, Codex, Cursor, Gemini CLI, OpenCode): the MCP server and, where the agent reads skills, the workflow skill. Keeps your other settings; run it again any time
map Map the port: every unit of the original, the crate that ports it, its cases and last diff, the whole app's glue, and which recordings the original changed past since they were made. Commit the map (`--write`) to see upstream changes in it
doctor Check the language runtimes, the agent setup and the MCP server, with the command that fixes each problem. Exits 1 when something required is missing
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Loop per unit: analyze -> bridge -> record -> port src/port.rs -> build -> diff -> shadow -> gate
Only the slow part: go --agent claude -- <workload>, then enable/disable and report
rust-anything analyze
text
1. Map a repository and write a ranked, ordered migration plan
Usage: rust-anything analyze [OPTIONS] [ROOT]
Arguments:
[ROOT] Repository root [default: .]
Options:
--json Print the machine-readable report (schema `rust-anything/analyze@1`) instead of Markdown
-o, --out <OUT> Write to this file instead of stdout
--lang <LANG> Source language; detected from the repository when omitted [possible values: ts, python, c, go, ruby, java, kotlin, php, csharp, powershell]
--whole-app Plan a whole-app port: entry points and shape, every dependency (imported or declared) with its crate, pieces in port order, and decisions for the user
-h, --help Print help
rust-anything bridge
text
2. Scaffold a Rust crate with bindings for one unit
Usage: rust-anything bridge [OPTIONS] <ROOT> <UNIT>
Arguments:
<ROOT>
Repository root
<UNIT>
Unit id, as `analyze` lists it
Options:
--kind <KIND>
Bridge to generate; defaults to the plan's choice
[possible values: napi, wasm]
-o, --out <OUT>
Crate folder; defaults to `<root>/rust/<name>`
--name <NAME>
Crate name; defaults to `<unit>-rs`
--force
Bridge a unit the plan marks blocked or keep
--keep <KEEP>
Keep an export in the original language: `name` or `"name: reason"`. Repeatable
--batch <BATCH>
Add a batch class: `function:param` runs `function` over many `param` values kept in Rust, on all cores (what `profile` recommends for leaves called in loops)
--as-json <TYPE_PARAM>
Bridge a type parameter as JSON values (`--as-json T`) when the app only fills it with data, instead of keeping the generic export in TS. Repeatable
--allocator <ALLOCATOR>
Global allocator for crates with batches: `mimalloc` (C; wasm keeps Rust's default) or `rusty_alloc` (pure Rust, no C compiler; wasm too). Kept in `rust-anything.json`
Possible values:
- mimalloc: mimalloc, built from C with `cc`. Wasm crates keep Rust's default allocator
- rusty_alloc: rusty_alloc, a pure-Rust remake of mimalloc: no C compiler, and wasm crates get it too
[default: mimalloc]
-h, --help
Print help (see a summary with '-h')
rust-anything refresh
text
2b. Regenerate the bindings (`lib.rs`, `index.cjs`, `js.rs`) from the signatures in `port.rs`
Usage: rust-anything refresh [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR] Crate folder made by `bridge` [default: .]
Options:
--batch <BATCH> Add a batch class: `function:param` runs `function` over many `param` values kept in Rust, on all cores. Repeat for more
-h, --help Print help
rust-anything record
text
3a. Record what the original's functions return on generated and given inputs
Usage: rust-anything record [OPTIONS] [CRATE_DIR] [-- <TEST_COMMAND>...]
Arguments:
[CRATE_DIR]
Crate folder made by `bridge`
[default: .]
[TEST_COMMAND]...
The test command for `--from-tests`, after `--`; it runs in the original's folder
Options:
--count <COUNT>
Generated cases per function
[default: 200]
--inputs <INPUTS>
Extra cases: JSONL of `{"fn": name, "args": [...]}`, plus `"kwargs": {...}` for Python and Ruby arguments passed by keyword
--module <MODULE>
Import the original from this JS module (e.g. built output) instead of the TS source
--resolve-from <RESOLVE_FROM>
Resolve npm packages from this folder's `node_modules` (when the repo has none installed)
--node-arg <NODE_ARGS>
Extra arguments for node, e.g. `--node-arg=--import=tsx`
--float-tolerance <FLOAT_TOLERANCE>
Floats match when they differ by at most this times the larger magnitude (absolute below 1), e.g. 1e-9 for numeric code. Saved with the crate for diff and gate; 0 removes it
--from-tests
Also record every call the original's own test suite makes to the unit's functions: `--from-tests -- npx jest` (TS/JS, any runner) or `-- pytest` (Python)
--profile <PROFILE>
Target: this machine, or a connected Android device (for JVM crates)
Possible values:
- host: Run on this machine
- android: Run on Android: the JNI library for the ABIs in `jniLibs/`, and on a connected device when replaying
[default: host]
--device <DEVICE>
Android device serial; picked automatically when only one is connected
--pin-clock
Pin the clock and random numbers while recording and diffing (TS/JS with napi, Python): `Date.now()`, `new Date()` and `Math.random` (`time.time`, `datetime.now` and `random`) get fixed values, saved in `pinned.json`, and the port reads them from `src/port/pinned.rs`. Kept for later runs until `--no-pin-clock`
--no-pin-clock
Stop pinning the clock and random numbers
-h, --help
Print help (see a summary with '-h')
rust-anything build
text
3b. Build the crate's JS module (napi-rs `.node`, wasm-bindgen output) or, with `--profile android`, the JNI library for Android ABIs into `jniLibs/`
Usage: rust-anything build [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR]
Crate folder made by `bridge`
[default: .]
Options:
--profile <PROFILE>
Target: this machine, or Android (needs the NDK and the Rust Android targets)
Possible values:
- host: Run on this machine
- android: Run on Android: the JNI library for the ABIs in `jniLibs/`, and on a connected device when replaying
[default: host]
--abi <ABI>
Android ABI to build; repeatable. Defaults to arm64-v8a, armeabi-v7a and x86_64
--api <API>
Android API level the libraries target (at least 26; defaults to 26)
--ndk <NDK>
Android NDK root; found from ANDROID_NDK_HOME or the SDK when omitted
--jni-libs <JNI_LIBS>
Where to install the Android libraries; defaults to `<crate>/jniLibs`
-h, --help
Print help (see a summary with '-h')
rust-anything diff
text
3c. Replay recorded cases against the Rust module
Usage: rust-anything diff [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR]
Crate folder made by `bridge`
[default: .]
Options:
--profile <PROFILE>
Target: this machine, or a connected Android device (for JVM crates)
Possible values:
- host: Run on this machine
- android: Run on Android: the JNI library for the ABIs in `jniLibs/`, and on a connected device when replaying
[default: host]
--device <DEVICE>
Android device serial; picked automatically when only one is connected
--jni-libs <JNI_LIBS>
Android libraries folder to diff; defaults to `<crate>/jniLibs`
--module <MODULE>
Test this JS module instead of the crate's `index.cjs`
--ignore-key-order
Compare objects regardless of key order
--float-tolerance <FLOAT_TOLERANCE>
Floats match within this tolerance for this run (the one saved by `record` otherwise)
--json
Print the machine-readable report as JSON
--node-arg <NODE_ARGS>
Extra arguments for node, e.g. `--node-arg=--import=tsx`
-h, --help
Print help (see a summary with '-h')
rust-anything bench
text
3d. Time the recorded cases on the original and on Rust, bridge included
Usage: rust-anything bench [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR] Crate folder made by `bridge` [default: .]
Options:
--min-ms <MIN_MS> Minimum measured time per function and side, in milliseconds [default: 200]
--resolve-from <RESOLVE_FROM> Resolve npm packages the original imports from this folder's `node_modules`
--json Print the machine-readable report as JSON
--node-arg <NODE_ARGS> Extra arguments for node, e.g. `--node-arg=--import=tsx`
-h, --help Print help
rust-anything fuzz
text
3e. Run fresh inputs from a new seed through the original and the port and report where they differ: what the recorded cases did not cover
Usage: rust-anything fuzz [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR]
Crate folder made by `bridge`
[default: .]
Options:
--cases <CASES>
Fresh cases per function (and scenarios per class) in each round
[default: 200]
--seed <SEED>
Seed of the first round; random (and printed) when omitted. Later rounds count up
--time <SECS>
Keep running new rounds until this many seconds have passed (one round otherwise)
--keep[=<KEEP>]
Append the mismatching cases (`--keep`) or every fresh case (`--keep=all`) to `cases.jsonl`, so the next diff and gate check them
Possible values:
- mismatches: Only the cases where the port differs from the original
- all: Every fresh case
--resolve-from <RESOLVE_FROM>
Resolve npm packages the original imports from this folder's `node_modules`
--json
Print the machine-readable report as JSON
--node-arg <NODE_ARGS>
Extra arguments for node, e.g. `--node-arg=--import=tsx`
-h, --help
Print help (see a summary with '-h')
rust-anything profile
text
Run a real workload under the language's profiler and say what to port: hot functions, their callers, and loops to batch. `rust-anything profile <repo> -- node bench.mjs` (also `python3 x.py`, `go test -bench . ./pkg`, `java ...`, `ruby x.rb`)
Usage: rust-anything profile [OPTIONS] <ROOT> -- <COMMAND>...
Arguments:
<ROOT> Repository root
<COMMAND>... The workload, after `--`
Options:
--json Print the machine-readable report as JSON
--lang <LANG> Source language; detected from the repository when omitted [possible values: ts, python, c, go, ruby, java, kotlin, php, csharp, powershell]
-h, --help Print help
rust-anything go
text
The hot-path loop in one command: profile the workload, bridge the top portable function, record it, hand the port to an agent, then build, diff and gate it, and switch it on only when everything matches. `rust-anything go --agent claude -- python3 app.py`
Usage: rust-anything go [OPTIONS] [ROOT] -- <COMMAND>...
Arguments:
[ROOT] Repository root, as `profile` takes it
<COMMAND>... The workload, after `--`
Options:
--root <ROOT> Repository root
--agent <AGENT> `claude`, `codex`, or any command that reads a prompt on stdin. Without it, `go` writes the crate's TASK.md and stops; run it again once `src/port.rs` is ported
--function <FUNCTION> Port this function instead of the profile's pick
--lang <LANG> Source language; detected from the repository when omitted [possible values: ts, python, c, go, ruby, java, kotlin, php, csharp, powershell]
--count <COUNT> Generated cases per function, on top of the calls the workload makes [default: 200]
--rounds <ROUNDS> Agent turns: the port, then one more per failing diff or gate [default: 3]
--json Print the machine-readable report as JSON
-h, --help Print help
rust-anything enable
text
Switch a ported unit on: one marked block in the original source files rebinds its functions to the Rust module, for every caller (TS/JS and Python). `disable` removes it
Usage: rust-anything enable [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR] Crate folder made by `bridge` [default: .]
Options:
--force Switch it on even when recorded cases differ
--json Print the machine-readable report as JSON
-h, --help Print help
rust-anything disable
text
Switch a unit off: removes exactly the lines `enable` added
Usage: rust-anything disable [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR] Crate folder made by `bridge` [default: .]
Options:
--json Print the machine-readable report as JSON
-h, --help Print help
rust-anything report
text
Write a unit's result for a pull request or README: REPORT.md and card.svg with the recorded cases matched, the speedup from bench, the fallback rate and the machine
Usage: rust-anything report [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR] Crate folder made by `bridge` [default: .]
Options:
-o, --out <OUT> Output folder; defaults to `<crate>/report`
--min-ms <MIN_MS> Minimum measured time per function and side, in milliseconds [default: 200]
--json Print the machine-readable report as JSON
--node-arg <NODE_ARGS> Extra arguments for node, e.g. `--node-arg=--import=tsx`
--resolve-from <RESOLVE_FROM> Resolve npm packages the original imports from this folder's `node_modules`
-h, --help Print help
rust-anything clean
text
Remove the build cache every port and bridge shares (CARGO_TARGET_DIR when set, else rust-anything/target in your cache folder). Ports rebuild on their next build
Usage: rust-anything clean [OPTIONS]
Options:
--dry-run Only print the folder and its size
--force Remove it even when CARGO_TARGET_DIR names it (other cargo projects may build there)
--json Print the machine-readable report as JSON
-h, --help Print help
rust-anything shadow
text
4. Generate a drop-in module that runs the original and Rust side by side
Usage: rust-anything shadow [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR] Crate folder made by `bridge` [default: .]
Options:
-o, --out <OUT> Where to write the module. The default depends on the language: `<crate>/shadow/<name>.shadow.ts` (TypeScript), `<crate>/shadow/<name>_shadow.py` (Python), `<crate>/shadow/<name>_shadow.c` (C), `<crate>/go/shadow/<pkg>.go` (Go), `<crate>/ruby/<lib>_shadow.rb` (Ruby), and a folder, `<crate>/java/`, for Java and Kotlin. PHP, C# and PowerShell have no shadow module yet and stop with an error
-h, --help Print help
rust-anything gate
text
5. Check the definition of done for a port
Usage: rust-anything gate [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR] Crate folder made by `bridge` [default: .]
Options:
--json Print the machine-readable report as JSON
--node-arg <NODE_ARGS> Extra arguments for node, e.g. `--node-arg=--import=tsx`
-h, --help Print help
rust-anything package
text
6. Lay out installable packages and a CI workflow for every platform; never publishes
Usage: rust-anything package [OPTIONS] [CRATE_DIR]
Arguments:
[CRATE_DIR] Crate folder made by `bridge` [default: .]
Options:
--name <NAME> Package name on npm or PyPI; defaults to the crate name
--version <VERSION> Package version; defaults to the original package's
--out <OUT> Output folder; defaults to `<crate>/package`
--fallback <FALLBACK> napi: the module to load where no binary fits (defaults to the original file when it imports nothing)
--bin <BIN> CLI front door: a command the package installs (repeat for more); defaults to the package name without its scope
--original <ORIGINAL> CLI front door: the original npm package it falls back to, as <name>@<version>; defaults to the one in the repository's node_modules
--dry-run List the files, write nothing
--json Print the machine-readable report as JSON
-h, --help Print help
rust-anything app
text
Record the whole app's behavior and replay any build against it (CLIs and servers)
Usage: rust-anything app <COMMAND>
Commands:
record Run the original CLI on cases (its own examples, `--inputs`, semantic traps), twice each, and store them as trycmd files in `<repo>/rust/app-cases/`. `rust-anything app record . -- python3 cli.py`
replay Run a build against `<repo>/rust/app-cases/`, print passed/total, write a report with a diff per failing case; exits non-zero on any mismatch
front-door Scaffold `<repo>/rust/app`, the Rust binary that owns the CLI's entry point: a clap parser for the recorded commands and flags, every command running the original until a unit is wired. Builds it and replays the cases (100% passed, 100% fallback)
wire Hand commands to a unit's `port.rs` (after it passes gate): adds the crate to `rust/app`, a glue file to write once, the routing and a kill switch (`RUST_ANYTHING_UNIT_<NAME>=original`), then builds and replays
lift Make `rust/app` a pure Rust app, once replay passes with fallback rate 0 and every unit passes gate: removes the fallback and the kill switches, turns the units into plain libraries, runs the lift checklist and replays the pure binary. Checked on a copy first; the original stays in place
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
rust-anything app record
text
Run the original CLI on cases (its own examples, `--inputs`, semantic traps), twice each, and store them as trycmd files in `<repo>/rust/app-cases/`. `rust-anything app record . -- python3 cli.py`
Usage: rust-anything app record [OPTIONS] [REPO] [-- <RUN>...]
Arguments:
[REPO] Repository root [default: .]
[RUN]... The command that runs the original, after `--`; paths are relative to the repository. Taken from the saved cases when omitted
Options:
--inputs <INPUTS>
Extra cases: JSONL of `{"name", "args": [...], "stdin", "env": {...}, "files": {path: text}}`
--normalize <NORMALIZE>
Normalizer: `timestamps`, `uuids`, `key-order`, or `name=regex` for your own. Repeatable; saved with the cases
--name <NAME>
The name the app is invoked by in its docs (found from the command and manifests when omitted)
--no-traps
Leave out the semantic-trap inputs
--timeout <TIMEOUT>
Seconds before a run is killed (default 30)
--http
The app is a server: the command starts it, taking its port from PORT or `{port}`; cases are requests (curl lines in its docs, `--inputs`, traps), kept in `http/`
--port <PORT>
A port the server always listens on (implies --http)
--arg <ARG>
An argument every server start gets after its command, the original's and every build's, so the Rust binary is started as the original is (`--arg db.json`). Repeatable; implies --http; saved with the cases
--fresh <FRESH>
A file or folder of the repository the app reads or writes (a project tree, a database file, a public folder): snapshotted into `files/` (`http/files/` for a server) and copied into a fresh working directory before every case (CLIs) or start (servers). A CLI's written files are what differs from it afterwards, and the files it removed are compared too. Repeatable; saved with the cases
--pace <MS>
Milliseconds to wait after each response before the next request, for work a server does after answering (a file watcher reloading what it just wrote). Implies --http; saved with the cases and used by replay; 0 removes it
--float-tolerance <FLOAT_TOLERANCE>
Numbers in the output match when they differ by at most this times the larger magnitude (absolute below 1), e.g. 1e-9 for numeric code. Saved with the cases; 0 removes it
--float-file <PATH=FORMAT>
A written file of raw floats, compared value by value within --float-tolerance instead of byte for byte: `PATH=f32le` or `PATH=f64le`. Repeatable; saved with the cases
--effects <KINDS>
Record what leaves the process too: `http` runs a local sink that answers every request (set as HTTP_PROXY, http_proxy and RUST_ANYTHING_HTTP_SINK), `smtp` a local mail server (SMTP_HOST, SMTP_PORT). Each case stores what reached them, in order, and replay compares it. Comma-separated or repeated. Saved with the cases
--effect-env <VAR=KIND>
Point one of the app's own settings at a sink: VAR=http-url, VAR=smtp-host, VAR=smtp-port or VAR=smtp-url (e.g. WEBHOOK_URL=http-url). Implies that effect
--db-reset <COMMAND>
A shell command run before each case (CLIs) or each start (servers) that resets the database to a known state. Cases then run one at a time
--db-dump <COMMAND>
A shell command that prints the database's state (e.g. `sqlite3 app.db .dump`), run after each case or request; its output is recorded with the effects
--json
Print the machine-readable report as JSON
-h, --help
Print help
rust-anything app replay
text
Run a build against `<repo>/rust/app-cases/`, print passed/total, write a report with a diff per failing case; exits non-zero on any mismatch
Usage: rust-anything app replay [OPTIONS] [REPO]
Arguments:
[REPO] Repository root [default: .]
Options:
--build <BUILD> Command line of the build to test (the original, the front door, the final binary); the original when omitted
--timeout <TIMEOUT> Seconds before a run is killed (default: the one saved by `app record`, 30 seconds unless it was changed)
--port <PORT> Servers: the port the build always listens on; otherwise it gets a free one through PORT and `{port}`
--case <CASE> Replay only this case, by the name the report gives it (a library: only this unit). The fast, repeatable loop for fixing one mismatch
--json Print the machine-readable report as JSON
-h, --help Print help
rust-anything app front-door
text
Scaffold `<repo>/rust/app`, the Rust binary that owns the CLI's entry point: a clap parser for the recorded commands and flags, every command running the original until a unit is wired. Builds it and replays the cases (100% passed, 100% fallback)
Usage: rust-anything app front-door [OPTIONS] [REPO]
Arguments:
[REPO] Repository root [default: .]
Options:
--no-check Only write the files; skip the build and replay
--library Treat the repository as a library even if it has a `main`: the front door is a Rust crate with the public API (found by default when there is no main and no server)
--json Print the machine-readable report as JSON
-h, --help Print help
rust-anything app wire
text
Hand commands to a unit's `port.rs` (after it passes gate): adds the crate to `rust/app`, a glue file to write once, the routing and a kill switch (`RUST_ANYTHING_UNIT_<NAME>=original`), then builds and replays
Usage: rust-anything app wire [OPTIONS] <REPO> <UNIT>
Arguments:
<REPO> Repository root
<UNIT> Unit crate: its folder, its name under `rust/`, or the unit id it was bridged from
Options:
--command <COMMANDS> A command the unit answers. Repeatable; kept from the last wire when omitted
--route <ROUTES> Servers: a route the unit answers, axum syntax (`GET /users/{id}`, `/path` for any method, `*` for everything else). Repeatable; kept from the last wire when omitted
--skip-gate Do not run gate on the unit first (it just passed)
--no-check Only write the files; skip the build and replay
--json Print the machine-readable report as JSON
-h, --help Print help
rust-anything app lift
text
Make `rust/app` a pure Rust app, once replay passes with fallback rate 0 and every unit passes gate: removes the fallback and the kill switches, turns the units into plain libraries, runs the lift checklist and replays the pure binary. Checked on a copy first; the original stays in place
Usage: rust-anything app lift [OPTIONS] [REPO]
Arguments:
[REPO] Repository root [default: .]
Options:
--json Print the machine-readable report as JSON
-h, --help Print help
rust-anything mcp
text
Serve every step as MCP tools over stdio
Usage: rust-anything mcp
Options:
-h, --help Print help
rust-anything setup
text
Register rust-anything with your coding agents (Claude Code, Codex, Cursor, Gemini CLI, OpenCode): the MCP server and, where the agent reads skills, the workflow skill. Keeps your other settings; run it again any time
Usage: rust-anything setup [OPTIONS]
Options:
--agent <AGENTS>
Agents to set up (repeatable); every agent found by default
Possible values:
- claude: Claude Code: `~/.claude.json`, skill in `~/.claude/skills`
- codex: OpenAI Codex CLI: `~/.codex/config.toml`, skill in `~/.codex/skills`
- cursor: Cursor: `~/.cursor/mcp.json`
- gemini: Gemini CLI: `~/.gemini/settings.json`
- opencode: OpenCode: `~/.config/opencode/opencode.json`, skill in `~/.config/opencode/skills`
--remove
Take the rust-anything entries out again
--dry-run
Show what would change, write nothing
--no-backup
Change settings files in place without saving a `.rust-anything.bak` copy first
--json
Print the machine-readable report as JSON
-h, --help
Print help (see a summary with '-h')
rust-anything map
text
Map the port: every unit of the original, the crate that ports it, its cases and last diff, the whole app's glue, and which recordings the original changed past since they were made. Commit the map (`--write`) to see upstream changes in it
Usage: rust-anything map [OPTIONS] [REPO]
Arguments:
[REPO] Repository root [default: .]
Options:
--crates <CRATES> Also look for crates in this folder (crates kept outside the repository)
--write Write the map to rust/PORT_MAP.md in the repository instead of printing it
--check Exit 1 when the original changed since any port was recorded
--json Print the machine-readable report as JSON
-h, --help Print help
rust-anything doctor
text
Check the language runtimes, the agent setup and the MCP server, with the command that fixes each problem. Exits 1 when something required is missing
Usage: rust-anything doctor [OPTIONS]
Options:
--json Print the machine-readable report as JSON
-h, --help Print help