为rust-anything打分
给出您宝贵的评分:
手机端可长按图片保存,分享到朋友圈 / 社群
使用 rust-anything,你可以:
支持TS、Python、C、Go等语言,逐模块把应用改写为Rust,对比原始行为,保障迁移前后逻辑一致。
用户评论 (0)
2026年11月24日
2026年12月03日
2026年11月24日
v5.1.1
2026年12月02日
-
fuzz --generatorfails, naming the command and the seed, when the generator prints no input
in a round. Before, a generator that exited 0 with no output was reported as "No fresh cases:
every case it generated is already in the recording" and the run passed; with--timeit ran
the empty generator again every round (#1218 by @P-r-e-m-i-u-m). -
The site's CLI reference is regenerated for 5.1.0: it was missing 13 options (
gate's
--held-out-cases,--held-out-seed,--accept-known-diffs,--accept-smaller-recording,
--accept-droppedand--json-events,record's--allow-dropped,--allow-large-tolerance
onrecordanddiff,fuzz's--sandboxand--generator,go's--min-cases,
app front-door's--command) and theselftest,new,specandobligationscommands. A
new test,tests/cli_help.rs, fails with the command's name when
website/content/cli-help.jsondiffers from the binary's--help(#1217 by @alex00010). -
app record --float-toleranceabove1e-6now needs--allow-large-tolerance, like
record, and the MCPapp_recordtool takesallow_large_tolerance. Before,app record
saved any tolerance below 1, so a recording made with0.5letapp replaypass a build
whose numbers were a third off. A recording that already holds a large tolerance still loads
(#1213 by @og-orca). -
profile --helpandgo --helplist only the languages they run (ts,python,go,java,
ruby) for--lang, not all eleven.--lang phpand the other five still stop with the profiler
to use instead, andgonames itself in that message, notprofile(#1216 by @bala-zx). -
The MCP
prompts/listdescription ofport_unit'slanguageargument now names every
language file the skill ships (Swift was missing), andprompts/getwith a misspelled prompt
name says so and lists the two prompts, instead of reporting a missingpathargument first
(#1214 by @qwist1233-cpu). -
The MCP server's
initializeanswers with the client'sprotocolVersiononly when it speaks
it (2025-06-18,2025-03-26or2024-11-05), and with2025-06-18otherwise. Before, it
echoed any string, so a client asking for1999-01-01or a newer revision was told the server
spoke it (#1215 by @brixtonpham). -
rust-anything obligations <repo>lists what the original offers (exports, commands, flags,
routes, environment variables, error paths) and the places it could not enumerate, and writes
rust/OBLIGATIONS.jsonwith--write.--evidencelinks each item to the recorded cases that
exercise it, and--checksays what still blocksapp lift, which now refuses while an item has
no case, a family is not attested, an expected file holds a...line or the front door took a
fallback no case explains (#1122).obligations waiveandobligations attestrecord a
person's decision with an ADR, andobligations fallbacksreads the journal a front door writes
whenRUST_ANYTHING_FALLBACK_JOURNALis set.gate'scoveragecheck names the exports no case
exercises (#1123 by @devrhonadis). -
The MCP server has three tools for the obligation registry.
obligations(what the original
offers, and withevidencethe cases linked to it) andobligations_check(what blocks
app_lift, withclear, one sentence per group andclosed_by_binding) only read.
obligations_fallbackswrites only when asked:writestoresrust/obligations-fallbacks.jsonl
andinputscreates the file it names, outside the repository included, as the CLI does. None
waives, attests or binds: those are the user's decisions.app_liftrefused for the obligations
is an error with the codeobligations_openand the command
rust-anything obligations <repo> --check; theport_whole_appprompt and the skill say the port
is not done until that list is empty, and the skill forbids runningwaiveorattest, or
writing a binding, unasked (#1123 by @devrhonadis). -
gateno longer calls aknown-diffs.jsonlentry unused when only itsheld-outdraws need
it. Anint-beyond-i64entry for a function whose recording holds no overflowing int failed
known diffs("no longer differs: remove"), and removing it failedheld-out; an entry that
explains a held-out input now counts as in use. -
app liftskips a case fromcargo testonly when a normalizer that spans lines folded a line
break in it.app recordsaves those cases (and the output:stdout,stderror a written
file) asacross_linesinrust-anything.json, and the liftedapp_cases.rsskips just them.
Before, one saved normalizer such as--normalize 'session=sess-[^ ]+'sent every case whose
output held a[..]toapp replay, including a timestamp, a uuid, two-run noise and a match
that stayed inside one line, so on a CLI that prints a time per command most of the recording
leftcargo test. A recording made before this keeps no list and skips every case with a[..]
as it did, and the "replay in CI" note says so until you record again (#1212 by @og-orca). -
A
known-diffs.jsonlentry can cover a class of inputs, not one argument list:
{"fn": "add", "when": "int-beyond-i64", "reason": "..."}explains every mismatch ofadd
whose original result holds a Python int outsidei64(a{"$int": "..."}that does not fit),
and one whose result fits still fails. Before, a Python port that keepsintasi64could not
say so once:i64::MAXis in the pool of everyintparameter, sogate'sheld-outcheck
drew an overflowing input on nearly every run, and an entry only matched one exact argument
list. The held-out line now counts the inputs such an entry accepted (#1162, #1190 by
@og-orca). -
A Python port that raises a class of the original's with its own
__str__and a constructor
taking more than the message (FieldError(field, reason)) builds the subclass that prints the
message once per class, not on every raise, so two raises give the same type. The error now
pickles (it raisedPicklingError, so aProcessPoolExecutorworker handed the caller a
pickling error instead of the error) and copies, and keeps the attributes set on it.isinstance
andexceptworked before;type(e) is FieldErroris still false for such a class, and the
Python guide says so (#1166, #1188 by @og-orca). -
PyO3 bindings convert large structured values faster (#1072). A result is turned into Python
objects while it is taken apart, so it is freed as it goes instead of in a second pass over
the whole tree, and tuples are filled in place. Arguments no longer copy each value twice:
json!re-serialized every list, tuple, set and instance's fields put into a marker, and a
dict cloned each value to keep a$dictfallback. A tokenizer returning 1.09M tuples from a
3.9 MB string: converting the result went from 205 ms to 142 ms and the call from 374 ms to
275 ms (the original takes 413 ms on Python 3.9); passing those tuples back as an argument went
from 290 ms to 195 ms, and a 200k-entry nested dict from 455 ms to 140 ms. Ports and what
diffcompares are unchanged; the rest of the cost is the port buildingserde_json::Values
and Python creating its objects. -
record --messagesholds a unit's errors to their message as well as their class: saved with
the crate (rust-anything.json, andrecorded-from.json, so turning it off by hand fails the
recording), anddiffandgatefollow it in every driver (TS/JS, Python, Java and Kotlin,
Ruby, PHP, C#, PowerShell, and--batchindex checks). Off by default; then, when the
recording holds errors, the verdict sayserror messages not compared: N recorded errors checked by class only, andcomparisonin--jsoncarriesmessagesand
unchecked_messages.--no-messagessaves the opposite; also amessagesparameter of the
MCPrecordtool. Before, a port that threw the right class with the wrong message passed
(#1073). -
A Python
strholding a lone surrogate (fromerrors="surrogateescape") where the port takes a
RustStringis refused by name:TypeError: argument 'a': str holds a lone surrogate, which a Rust String cannot hold, for a top-levelstr,str | Noneandlist[str]parameter, a
string inside a structured value and a dict key alike. Before, PyO3 raised a bare
UnicodeEncodeErrorthat named no parameter, and strings inside containers a misleading
TypeError: unsupported argument type str.diffshows such a case as a mismatch where the
original returned; the Python guide says how to carry the string instead (an untyped parameter
orserde_json::Value, which receive{"$utf16": [...]}).refreshregenerates the bindings
(#1074). -
On Unix, a descendant that leaves its process group and keeps a command's stdout or stderr
open without writing no longer leaves the capture reader blocked after the command is taken or
dropped: the read polls the stream together with a shutdown pipe. Capture still runs to the end
of a stream that closes normally, and a stream still open at the command deadline makes the run
time out rather than return success with partial output (on Windows too, where a blocked reader
is still let go only at its next read). The crate stays free ofunsafe(#1120, #1185 by
@sanketpatel32). -
A Python parameter whose default is neither
Nonenor a literal (def to_az_el(dec, ha, lat=LAT)) tells an explicitNonefrom an argument left out: the PyO3 binding reads it with
from_py_with, soto_az_el(1, 0, None)reachesport.rsasSome(Value::Null)and
to_az_el(1, 0)asNone. Before, both arrived asNone, and a recorded case where the
original raises on the explicitNonecould not match.refreshregenerates the bindings
(#1157). -
gate'sruntimecheck judges a path dependency'sinclude_str!and#[path]against that
dependency's own crate: a library the port moved into after a hand lift (core-lib = { path = "../core/lib" }) can keep#[path = "port/doors.rs"] mod doors;and include its own
sum.wgsl, which failed as "outside the crate" before. The dependency still may not reach
outside its crate, include the recording or a file in the original's language, and one whose
folder holds the bridged crate or the original unit is judged against the bridged crate as
before (#1158). -
setupinstallsnew-app.md, whichSKILL.mdlinks to for a new CLI app, and the MCP server serves it as
skill://rust-anything/new-app.md. A test now checks that every file of the skill folder is installed (#1153). -
gate'sheld-outcheck runs for Python PyO3 ports, not only TypeScript/JavaScript napi
ones: a Python port that matches every recorded case and differs on other inputs now fails
gate, andselftestcatches its two Python rows that onlyfuzzused to find (#1094,
#1112 by @RubenPanero).
Recordings with only keyword arguments also receive perturbed inputs. -
analyze --whole-appno longer asks a decision for a Python test, build or lint tool that no
unit imports (pytest-cov,setuptools,wheel,coverage,tox,ruff... from a dev
requirements.txt): the crate table marks the tooling row withtooling = true, and such a
dependency is still listed. jmespath.py went from five dependency decisions to one (#1136,
#1137 by @AyhamJo7). -
app recordkeeps its lock underrust/.app-record/, ignored by Git. Recording a Node,
Python or Go app no longer creates a top-leveltarget/folder in the original (#1165, #1176
by @Plastic-time). -
Two
app record --freshruns on one repository at once no longer wipe each other's staged
snapshot: each run stages into a folder of its own, and recordings of one repository take turns
(#1117, #1149 by @Lewandox). -
app recordon a lifted app rewritesrust/app/tests/app_cases.rswith the skips the new
recording needs: the listapp liftchose stayed as it was, so cases recorded after the lift
that trycmd cannot check failedcargo testwhileapp replaypassed them (#1145, #1146 by
@AyhamJo7). -
Re-recording a lifted CLI keeps hand-added trycmd skips for cases that still exist.
If you edited the test in another way,app recordleaves the file as you wrote it
and lists the skips the new recording needs (#1169, #1177 by @Plastic-time). -
app recordsays when it skips an--inputsline that repeats an earlier case (the same
arguments, stdin, environment and files): the summary counts them (1644 from inputs, 17 duplicate inputs skipped), a line names each with the case it repeats, and--jsonhas them
induplicate_inputs. Before, the count only came out short (#1140, #1141 by @AyhamJo7). -
fuzz --generator <command>takes each round's inputs from your own program, run with
RUST_ANYTHING_SEEDandRUST_ANYTHING_CASESset and read like arecord --inputsfile, so a
unit can be fuzzed over its real input domain and--seedreplays the run. A non-zero exit or
a bad line fails the run and names the line. Also ageneratorparameter of the MCPfuzz
tool (#1049, #1115 by @og-orca). -
analyzeandrecordwarn when an exported TS/JS function passes a parameter, directly or
through one local, toJSON.parse,atob,Buffer.from(x, "base64" | "base64url" | "hex"),
decodeURIComponentornew URLSearchParams. Even when decoding succeeds, generated strings can
miss cases that depend on the decoded content (#1163, #1174 by @Plastic-time).
analyzenames the parameter, the call and its line per function, andrecordlists the
functions after its summary and points at--inputs(#1050, #679, #1114 by @og-orca). -
A case recorded twice (a generated input that is also a line of the inputs file) can be
accepted inknown-diffs.jsonl: one entry now explains every copy of the case, and the count
of accepted cases thatdiff,gateand--accept-known-diffsshow is the number of
mismatches the entries explain, not the number of entries used. Before, one entry removed both
mismatches but counted one, sobehaviorstill failed, and a second entry for the same case
was reported as no longer differing (part of #1108, #1113 by @og-orca). -
record --from-testskeeps a reservoir sample of up to 1,000 distinct calls per function over
the whole test run instead of the first 1,000: a workload that walks one data source after another
recorded calls from the first source only and caught 0 of 12 planted bugs. The sample is
reproducible (seeded by the function name), the capture is read line by line with a hashed
de-duplication set, and a line that is not UTF-8 is skipped (#1071, #1104 by @XiaoBinGan). -
record --from-testscapture hooks (TS/JS and Python) skip a call already written for the same
function, keep the capture file open, and stop at 1 GiB (RUST_ANYTHING_CAPTURE_MAX_BYTES),
whichrecord,goand the MCP server report ascapture stopped at ...: later calls were not sampled(#1161, #1179 by @Lewandox). -
Two
record --from-testsruns on one crate at once (CLI and MCP, or two MCP calls) keep their
own captured calls and input files, and a failed test command leaves no capture files behind.
Before, they sharedtest-calls.raw.jsonlandtest-inputs.jsonl, so one run could delete or
record the other's calls (#1119, #1148 by @Lewandox). -
app recordwarns when every case (two or more) failed with the same exit code and the same
error output, quoting its last line (same_failurein--json): a command that never reached
the app, such aspython3 bin/jp.pywithout its package on the path, recorded a
ModuleNotFoundErrorper case and read as a complete recording (#1142, #1143 by @AyhamJo7). -
app liftno longer fails itscargo teston a normalizer that spans lines (a traceback's
frames folded into one[..]): trycmd reads[..]inside one line only, so the cases whose
output holds a[..]are skipped inrust/app/tests/app_cases.rswhen such a normalizer is
saved,app replaykeeps checking them, and the "replay in CI" note counts them (#1134, #1135
by @AyhamJo7). -
app front-doorno longer takes a CLI's free-text first argument for subcommands: when a
successful case starts with an argument that is neither a word nor a flag (foo.bar[0]), the
app has one root command and its flags come from every successful case. jmespath.py'sjp.py
got 44 "commands" (expressions such asfoo) and lost--astand-f, and those cases could
never stop falling back (#1130, #1131 by @AyhamJo7). -
app front-door --command <name>(repeatable, or--commands a,b, andcommandsin the MCP
app_front_doortool) names a CLI's subcommands when a free-text first argument would hide
them, and the front door's notes name the words it did not take for commands and the flags to
pass (#1167, #1181 by @Lewandox). -
Source walks leave out the repository's
rust/folder once rust-anything works in it (a
recording inrust/app-cases/or a front door inrust/app/), soanalyzeno longer counts
the port's own scripts as units, entry points or dependencies: mid-port, jmespath.py read as
16 files in 8 units withrust/inputs/*.pyas entry points, and is 10 files in 3 units again.
A project's ownrust/folder without that state is read as before (#1138, #1139 by
@AyhamJo7). -
refreshputscdylibback in a PyO3, napi or wasm crate'scrate-typewhen it is missing,
keeping the kinds already there: on a unit crateapp lifthad made a plain library, it
regenerated the bindings butbuildthen found no extension module (#1150, #1151 by
@AyhamJo7). -
Python ports can raise the original's own exception class when its constructor takes other
arguments than the message, or none (ParseError(position, token, type),EmptyError()): the
bindings make it without running__init__, with the message as itsargs, and a class whose
own__str__reads what__init__sets is raised through a same-named subclass that prints the
message, soexcepton the class still catches it. Before, these becameValueErrorand failed
diff; a jmespath.py port went from 3103/3441 to 3441/3441 (#1128, #1129 by @AyhamJo7). -
The generated
pyconv.rspasses clippy 1.98 (as_chunksinstead ofchunks_exact(2)for the
UTF-16 units of a string with lone surrogates), sogateno longer fails a Python port on
generated code; a test runsclippy -D warningson a bridged PyO3 crate (#1132, #1133 by
@AyhamJo7). -
A PyO3 crate named like one of its exported functions or classes (
bridge --name slugfor a
slugfunction) passescargo test: the generated registrations namecrate::slug, so
rustdoc's doctest build no longer stops witherror[E0659]: slug is ambiguousandgate's
testscheck no longer fails (#1091, #1098 by @XiaoBinGan). -
analyzeno longer counts Python%string formatting ("x=%s" % x, implicitly joined
literals, bytes, in parentheses) as "Division and modulo": only a%whose left side may be a
number is. On jmespath.py the 31 false hits are gone and the readiness ofjmespath/goes from
6 to 16 (#1124, #1125 by @AyhamJo7). -
analyzealso flags Ruby/=and%=asDivision and moduloand**=and<<=as
Integer width and overflow, alongside/,%,**and<<(#1105 by @brixtonpham). -
A whole-repository audit for implicit state machines, following Tobi Lütke's advice (list every
state machine, model it in TLA+), read every line ofsrc/,tests/, CI and the scripts,
modelled the risky ones with everystate by
@mattzcarey, and confirmed most findings with a repro. Most fixes below come with a regression
test that failed before the fix:recordholds the per-crate recording lock for its whole run, anddiff,bench,gate,
reportandenablehold it while they readcases.jsonl, so afuzzorheld-outround
can no longer put the old recording back over a new one, or hand a gate its temporary cases
between the recording check and the diff.recordfingerprints the original before its drivers run and writes the fingerprint and the
dropped counts torecorded-from.jsonin one step, so an original edited whilerecordruns
makes the recording stale instead of trusted.--allow-droppedapplies to the onerecordcall that gets it: the MCP server no longer
keeps one call's allowance for the next.- A
recordthat fails no longer leaves its--float-tolerance,--ignore-key-orderor
--pin-clocksettings behind, and a recording refused for holding a secret puts the previous
cases.jsonlback. - An input on which the original ends the process with an error status (PowerShell
exit 3,
KotlinexitProcess) is dropped and the rest are recorded, instead of failing the whole
recording. - After a timeout or such an exit, the new driver first runs again the cases already recorded,
so the original's state matches the one-processdiffreplay and a faithful port of a
stateful original no longer fails. recordrefuses when the original's source is not where the manifest says (a moved or cloned
repository) instead of recording the driver's failure to load it.gatecounts recorded numbers in a file the port includes (include_str!of a renamed
recording), treatstodo! (),unimplemented!{}andtodo![]as stubs, and checksunsafe
intests/,build.rsand every other Rust file of the crate, not onlysrc/. Both read
whole files, so a string or comment over several lines is not code.maptrusts a recording whose dropped cases the last passing gate accepted with
--accept-dropped.- Switching another unit on no longer makes a recording that imports its file look stale,
results are stamped with the port version they started on, and the port version follows
symlinked sources. - A library is dated when its build started (TS napi and Python), so a source saved while cargo
compiled makes it stale instead of being tested as the old version. - Python records publish
cases.jsonlby rename, and two Python runs on one crate no longer
sharedriver.pyor the bench and source-list files. --jsonafter--(the test command ofrecord --from-tests) no longer turns the CLI's
errors into JSON.record --from-testsno longer copies a killed run's backup over a TS/JS file edited since:
the backup goes back only while the file is still that copy with the capture block, a file
edited around a stale block is left as it is with an error naming the backup, two captures of
one file take turns, and a#!line stays the first line.- The MCP server kills the processes a cancelled call started, so the call lets go of the
recording lock at once, and at the end of its input it waits up to 5 seconds for cancelled
calls to stop, so their files are put back. profileandselftestwork in a folder of their own per call: two at once in the MCP
server no longer read each other's profiles or judge each other's planted ports.gate's fmt, clippy and test checks run under the batch lock, so adiffrunning at the
same time no longer puts its generated batch test in front of them. When the lock cannot be
taken, a stale generated test is still removed first.- A batch check killed mid-run no longer leaves its temporary copies in
tests/, and a test
someone writes attests/rust_anything_batch.rswhile one runs is never replaced. - Python batch checks recognize every built-in exception class, the warning classes among them,
so a port raisingUserWarninglike the original no longer fails the batch check. - The error-cases check finds a
throwafter a'}'string or char literal, and araisein
a Python function whose signature spans several lines (Black's style). - MCP calls with
timeout0, a non-listeffect_responseor a bad selftestlangfail as
invalid_arguments, notfailed. app record --httpandapp replaystop the whole process tree of a server that did not
listen in time or failed its--readyrequest, not only the launcher, so a server left
running can no longer answer the next replay and make a broken build pass.- A failed
app record(a secret refused, a--db-dumpfailure, a literal wildcard) no longer
replaces the--freshsnapshot or rewrites earlier cases: the snapshot is taken beside the
saved one and swapped in when the settings are written, and HTTP cases are all checked before
any is written. app record --httprefuses to write a secret-named environment variable's value and refuses
literal[..]/...text in fields that differ between runs, as the CLI recorder already
did.- HTTP requests sent by
app record,app replayandapp shadownow have--timeoutfor
the whole response, so a streaming route (SSE, long poll) times out instead of hanging. - Outside commands (
--db-reset,--db-dump, builds) and CLI cases end at their time limit
even when a background orsetsiddescendant keeps their output pipes open. - The HTTP front door's original stops with everything it started whenever the front door exits
(a router or bind panic included), receives Ctrl-C, is found on::1as well as127.0.0.1,
gets a new port if another process took the chosen one, and streams fallback answers with a
60s per-read timeout instead of buffering them under a 60s total. A SIGTERM while the original
starts reaches the original too, and on shutdown a response still streaming gets 10 seconds
before the original is stopped. app wirerefuses routes whose path parameters clash (/users/{id}and/users/{name}, or
a parameter and a catch-all at one place, which axum rejects at startup), refuses a crate
whose unit name, module or switch another wired crate already has, and serializes concurrent
wires, and a wire withapp lift, with a lock outside the repository and an atomic state
write.app shadowlogs a request the original did not answer (the build was not sent it either),
keeps it with--keep, and removes its scratch folder on a failed start and the folders of shadows stopped with
Ctrl-C.- The Python shadow no longer swaps
sys.stdoutper call: two threads calling a printing
export at once could leavesys.stdoutas a StringIO for good and count other threads'
output as the call's. A stdout proxy is installed only while shadowed calls run, and each
thread's prints go to its own call. - The Ruby shadow no longer swaps
$stdoutper call, for the same reason under Puma or Sidekiq
threads: each thread's prints go to its own call, and$stdoutis put back when the last
shadowed call ends, also when another shadowed file loads during a call. - The Go shadow no longer points
os.Stdoutat/dev/nullwhile the port runs. Concurrent
calls could leave it on a closed file and swallow the program's output. The port's output is
now held back through the wrapper, also when only the port prints. - A Python or TypeScript shadow whose original returns a value too deep to encode returns it to
the caller and reports a mismatch, instead of raisingRecursionErrororRangeError(or
rejecting the caller's promise). In TypeScript, two such values never compare equal. - The Ruby shadow returns binary (non-UTF-8) results instead of raising
Encoding::UndefinedConversionErrorinto the caller. - A Ruby port returning a
u64abovei64::MAXgives Ruby an Integer, not a Float. - Go typed and wire calls whose result is over 256 or 512 bytes no longer run the port twice. A
port with state (a counter, a cache) advanced twice per call. The result is now kept for the
second read. - The C shadow gives the port a
char **cursor into the port's own copy of the buffer (the
port panicked and aborted the caller), and frees that copy only after comparing. app liftrefuses to start or replay while a top-level path of the repository is still named
*.rust-anything-hidden: a lift stopped during its final replay (Ctrl-C, a CI timeout) left
src/moved away, and the next lift skipped the missing path, replayed with nothing hidden
and lifted anyway. Two lifts at once now refuse the same way.app liftcopies the checked crates back through a journal (rust/lift-commit.json) that
keeps the checked copy until the lift is inaudit.jsonl: a lift that stops or fails while
copying back, or at its final build, is finished by the nextapp liftinstead of leaving
rust/applifted, a unit still bound and no log entry. Every checked crate is checked before
a file goes, the files the copy removes and the replay counts are saved first, a lift whose
copy is done only builds again (an edit made to fix the build is kept), and the journal stays
until the audit entry is written.app liftstill recognises a CLI front door'ssrc/main.rsgenerated before
RUST_ANYTHING_MODE=oldwas honoured there, instead of refusing it as changed by hand.app lift's check that the glue no longer callsoriginal::reads escaped char literals
('\"','\'') and raw strings (r"\",r#"…"…"#) as Rust does, so the code after them is
no longer read as part of a string, andoriginal::inside a string is not a call.--deviceruns use a device folder of their own (process id, time and a counter), so two
hosts sharing a device, or a run after a crash, no longer share jars and results.enableanddisablewrite a unit's files all or none, each through a temporary file: a
failed write leaves that file whole and puts back the files already written, and a file saved whileenablechecked the module is not overwritten. If a
file cannot be put back,rust/audit.jsonllists the files that did change.- Two units whose blocks sit at the end of one file without a final newline give the file back
byte for byte when disabled in the order they were enabled. spec approveandspec checkinclude the input folder a case names withfs.base, so
editing that input marks an approved case as changed. Cases that setfs.baseshow as
changed once after upgrading.rules --addlocks the rules file from read to write, so two adds at once (CLI and MCP) keep
both rules, and appends, so a failed write leaves the earlier rules. Agent prompts for apps made withrust-anything newnamespec/RULES.mdas the
rules file.rust/audit.jsonlis locked between the torn-line check and the append, so a partial line
from another process can no longer merge with a new entry.logno longer panics on a commit
field that is not ASCII.- Library front doors give a unit whose module name a numbered one already took (
util,
util_2,util) the next free name instead of a secondutil_2module. - The shared build folder now gives a library name to one crate only, so
foo-rsandfoo_rs
(bothlibfoo_rs) no longer install each other's library. - A crate with a path dependency inside its own folder builds in its own
target/, since cargo
shares that dependency's build between crates laid out alike. - An owner of the shared build folder keeps its names while its Cargo.toml is briefly
unreadable.bridge,refreshand manifest saves write files through a temporary file and a
rename. rust-anything cleanempties the shared folder under the owners lock and keeps
owners.json, so a build in progress keeps its name.- Built libraries are copied out of the shared folder only for the crate types the crate
builds, so a former owner's<lib>.liborlib<lib>.ais no longer installed (the Windows
go_cgo flake). - C-ABI and FFI crates write their repository root relatively, as napi and PyO3 crates do, so a
clone of the repository no longer records against the original machine's path. A crate folder
that does not exist yet behind a symlinked path also gets a relative root now. rust-anything packagewrites its stamp before the package files, so an interrupted run no
longer leaves a folder every rerun refuses.setupkeeps the first<file>.rust-anything.bakinstead of overwriting it on every run.- Workspace packages are read again on each run, so a long-running MCP server follows packages
added after it started. - The napi wire keeps each loaded copy of a port's
index.cjson its own buffers: a second
evaluation (JestresetModules,delete require.cache[...]) took over the one Rust slot,
and calls through the first copy read the other copy's arguments and returned stale results
with no error. A call now registers its buffers again when another copy took the slot. - A wired TS/JS export called again from a getter on its own argument (napi and wasm) goes
through JSON for the inner call instead of sharing the wire's write cursor, which returned
the inner call's answer to the outer one. RUST_ANYTHING_MODE=oldruns the original from the CLI front door binary too, as the package
README says: once the postinstall put the binary in place of the Node launcher, the variable
was ignored. A front door made earlier gets this by regeneratingrust/app/src/main.rs.- TS/JS regular expression literals are read as one by the effect checks:
/\/*$/opened a
block comment and hid the rest of the function, so an environment read after it was missed
and the function bridged. analyzeof a TS/JS repository skips an unreadable folder and apackage.jsonthat is not
JSON (a template's"<%= name %>") instead of stopping, and skipsdist,build,out,
targetandcoverageonly beside apackage.json, so code insrc/commands/buildis
analyzed.- Object keys named
__proto__survive the napi and wasm wire as own keys, as on the JSON
path, instead of being dropped or setting the prototype. - An exported arrow function whose parameter default is itself an arrow (
(s, g = () => {}) => s.length) is judged by its own body: the default's body was taken for the function's, and an
expression body was typedvoid. delete aa.x(and Pythondel dd[...]) no longer counts as changing a parameter nameda
(ord) in place.- Go and Java JSON dispatchers read each argument of a printing port by its own type when
stdoutis not the last parameter, and keep NaN, infinities and -0 inOption<f64>and
Option<Vec<f64>>results and changed arguments instead of turning them intonull. - A PHP or Ruby parameter whose default is in parentheses (
$opts = array(),width = (4 * 2)) keeps its closing parenthesis, so the generated wrapper parses. - A Gemfile
begin ... endblock or a one-lineif ... then gem "x" endinside agroupno
longer ends the group early or leaves it open, nested on one line too, so dev and runtime
gems are told apart. - Ruby
private :namehides that method from anextend selfmodule's exports until a later
public :name, andpublicends aprivatesection andmodule_functionmode. - The generated PHP wrapper says when PHP refused FFI because of
ffi.enable(the default
preloadallows FFI only in the CLI) and how to turn it on, instead of a bare
FFI\Exception. - PHP
diffreports a recorded function that is no longer exported as missing instead of
stopping with a fatal TypeError. pynum'sNum::maxandNum::minreturnValueErrorfor no values instead of panicking;
ports call them with?.- A Python or Ruby parameter used as
fmt % 3is no longer typed as a number:%with a
number only on the right may format a string. - Java, Kotlin, Go and C#
record,diffandbenchtake a per-crate lock
(.rust-anything/driver.lock), so two runs in one crate no longer delete or rebuild each
other's driver while it runs. benchfor Go, Java, Kotlin, C# and PowerShell no longer reads an earlier run's timings when
the driver wrote none.analyzeloads the project's C# records and classes, asbridgedoes, so a method taking a
record counts as bridgeable.go --agentthat ran out of turns with stubs left now says so and points to--rounds,
instead of asking for--agent.- The C# and PHP wrappers read each changed argument at its place among the port's
&mut
parameters, not by the order of the manifest's list. - Swift
recordanddiffruns use their own work files and driver build, so two runs in one
crate keep their own answers. - A Swift case that answered just before the time limit is kept instead of marked timed out; a
timed-out Swift driver is killed with its whole process group, and gets 30 seconds to start. - PowerShell scripts with their own
param()block or top-level variables ($Mode,
$targets) no longer overwrite the driver's. - A
varin a Kotlin companion object or nested object counts as state, and a nested object's
functions are called on its JVM class (Outer$Inner). - A multipart MIME body without its closing boundary keeps its last part.
--redacthashes quoted object keys in mismatch paths, groups and replay problems, so a key
like an email address no longer shows.- Nested-payload case generation with a count of 0 makes no cases.
- The release job finishes on a re-run: when the GitHub release already exists it uploads the
assets again (--clobber) and updates the notes instead of failing ongh release create. - The website deploy job builds the site before
void deploy, and the head middleware no
longer adds a canonical link, hreflang alternates or JSON-LD to error pages. - The GitHub Action gate loop no longer expands
*in thecratesinput as a glob. - The npm launcher says the Linux binaries need glibc on musl systems (Alpine) and points to
cargo install, instead of failing with a bare spawn error. scripts/check-secrets.shandscripts/rename.pyhandle tracked file names with spaces,
scripts/sponsors.mjsworks from a path with spaces, andscripts/gifs.mjsremoves its
frame folder when rendering fails.evals/score.py --resultsrescores a run that was already scored with--keep, instead of
skipping it as having no kept working folder, and replaces only its own scoring copy.- Integration tests: the cgo, N-API, PyO3, magnus, JNI, PHP, C# and Kotlin effects tests no
longer share the crate namefx-rs. A new test checks that a Go port rebuilt after another
crate gave up its name runs the new library.fixed_portskips ports a wildcard listener
answers on, and locks each port across test processes. CLI runs drop the shell's
RUST_ANYTHING_*settings. Scratch folders are removed when a test fails. The
interrupted-fuzz test signals the whole process group. macOS CI now requires PHP, .NET and
Kotlin. - Go
diffrebuilds its driver every time, so on macOS it no longer runs an older Rust library
than the one just built (a broken port could pass), and on Windows it no longer links another
crate's leftover static library (the go_cgo CI flakes). - The MCP server stops every outside program a cancelled call started (builds, test runs,
record drivers, the Node diff driver,app record,app replayandapp driftcases on
every worker thread), starts no new ones, and stopsfuzzbetween rounds. An outside command
whose descendant keeps its pipes open after it exits is stopped half a second later, not at
its time limit. - The MCP
recordtool puts backfloat_tolerance,ignore_key_orderandpin_clock(and the
pinned.rshelper it wrote) when the recording fails, as the CLI does, both take the
recording lock before they change them, Androiddifftakes it too, and the MCPenabletool takes the recording lock like
the CLI. goholds the recording lock from recording to switch-on, and lets go of it while its agent
runsdiffandgate.fuzz --time --keepkeeps the cases earlier rounds kept when a later round fails, and says
so in the error.- Ruby, PHP, C#, Swift, PowerShell, C-ABI and Android builds date the installed library from
when the build started too, andbenchfor Ruby and PHP no longer reads an earlier run's
timings. --deviceruns hold the per-crate driver lock until the dexed driver is packaged.- The HTTP front door requires reqwest 0.12.4 or newer, the first with
read_timeout. - Generated Go and Java JSON dispatchers pass
cargo clippy -D warningsagain for exports that
print or change arguments, sogateno longer fails them on a needless borrow. - A
--readyrequest that answered a non-2xx status reports that status even when the last
probe timed out. - Tests build ports under
target/tmp/rust-anything-ports(.cargo/config.toml) instead of
the shared cache in your home folder.
-
recordandgatereport coverage for Python units too: the record driver notes the lines
the cases run in the unit's files with the standard library (sys.monitoringon 3.12+,
sys.settracebefore) and counts the lines that hold code from the code objects, so blank
lines, comments and docstrings do not count (#1056, #1107 by @alex00010). -
Python (PyO3) end-to-end tests for
fuzz(withkwargs,--keepandgate) and
record --pin-clock(time.time,datetime.now,date.today,random.random,
random.randint), afuzzandheld-outdedup fix so freshkwargscases sharing positional
arguments are not dropped, andTZ=UTCdocumented inrecord --helpanddocs/how-it-works.md
(#1060, #1061, #1078 by @abiramcodes). -
Go fixed-size array parameters and results (
[4]int,[32]byte) are bridged as lists
(Vec<T>) instead of refused. The generated Go decodes only a list of exactly that length, so
a wrong-length argument or result is refused rather than padded or cut byencoding/json, and
recordsends exactly that many items plus one list too long (#1103 by @Harsh28-raj, #1044). -
C# value tuple parameters and results (
(int Count, int Width) Sizes(string s)) bridge as JSON
arrays ([7,14]), so the port takes or returnsserde_json::Value, instead of being refused
for using a tuple (#1048, #1106 by @XiaoBinGan). -
A Java function that reaches app state through a helper in another unit
(PostDataHelper.createQueryTVreadingLocaleManager.instance) stays in Java with the reason
instead of being bridged as pure, andanalyzecounts the same exports asbridge. The reason
names the call as written (Query.load), not the bare method name (#1042, #1100 by
@XiaoBinGan). -
benchtimes Swift units, running the driver on the original and then through the Rust
library, soreportand the card show a Swift port's speed. Before, it refused every Swift
crate (#1052, #1116 by @XiaoBinGan). -
to_plain_jsonin the generatedjs.rsescapes marker-shaped objects nested inside each
other in linear time: each$objectwrap used to shift everything written after it, so a deep
tree of single-key$map-like objects cost the square of its depth on every call (#1095,
#1102 by @orshih6). -
The commands a message tells you to run quote their paths where a shell would split or change
them:bridge'srecord/build/diffline,profile'sbridgeadvice, and the fixes
gate,diff,record,package,app shadowand the MCP errors suggest no longer break on
a folder with a space when pasted. Windows hints use PowerShell syntax and select POSIX quotes in Git Bash.
Ordinary folders with spaces also work at a Windows command prompt (#1175, #1178 by
@Plastic-time). -
diff,gate,enable,goandlibrary replaynow check custom batch indexes
(port::<Fn>Index) against the crate's recorded cases instead of testing only the per-item
exports. When a crate defines a custom<Fn>Index,rust-anythinggroups the recorded cases by
the fixed parameters, generatestests/rust_anything_batch.rsatomically under a per-crate lock
(.rust-anything/batch.lock), and runs it withcargo testto verifyIndex::run(including
typed recorded errors, Go sentinel errors andknown-diffs.jsonl) and customrankordering.
Valid reports from completed indexes are kept when another index aborts, handwritten tests at
that path are preserved rather than overwritten, and execution errors report the check failure
directly instead of pointing atsrc/port.rs(#1054, #1086 by @wasabihu). -
recordanddiffon a C unit (andgate,benchand the others that rundiff) say on
Windows that the C driver needs Linux or macOS (WSL on Windows), since it runs each case in a
forked process. They used to fail inside the driver withAttributeError: module 'os' has no attribute 'fork', or with onlyexit code: 9009whenpython3was the Store's stand-in;
recordcompiled the original first (#1155 by @Plastic-time). -
The translated C language pages say that recording and replay need Linux or macOS (WSL on
Windows), as the English page does (#1164, #1171 by @Plastic-time). -
A
{"$utf16": [...]}list whose items are not all code units (70000, -1,true, a nested
value) stays a plain dict in a PyO3 port, as the Python driver already read it, instead of
raisingValueError: invalid $utf16 code uniton every case (#1090, #1099 by @ege-arhan). -
build(and the build step ofgateandgo) on a napi unit with a Rust toolchain for
windows-gnuexplains napi-rs'slibnode.dll not found in any search path: such a build links
against a libnode.dll that only MSYS2's Node ships. The error now gives the Build Tools command
doctorprints andrustup default stable-msvc, or a new crate with--kind wasm(#1156 by
@Plastic-time). -
The Python
shadowmodule takesencfrom the driver instead of an old copy, so a port that
returns a wrong path,Decimal, date,UUID,Fractionor other value of a type without a
__dict__is reported as a mismatch. They all used to compare equal by type name (#1093,
#1101 by @m3lonxd). -
app recordon Windows also turns the case's folder into[CWD]where the original prints it
with doubled backslashes, as a JSON string or thepathof Node'sENOENTerror does. The temp
folder, with the user's name and the recording process's id in it, used to stay in the committed
case, so replaying the original from another process failed those cases (#1154 by
@Plastic-time). -
PHP: a public static method of a
finalclass now bridges, records and diffs like a top-level
function when the class's file can be replaced (one declaration, no top-level code), every
public member is a static method and the class holds no static properties. The wrapper replaces
the class with afinal classof the same name, so the original must already be final; a
non-final class keeps its static methods in PHP. A class with public instance methods or a
non-public constructor, static properties, other public members, a method that returns by
reference or a default that names a class constant or an imported constant, uses__LINE__,
__FILE__or__DIR__, or creates an object also keeps all its static methods in PHP, with the
reason. A class with one kept method keeps all its methods, whether the reason is avoid
return or--keep, and the wrapper keeps a default that ends in)(array(),(1)) and a
multiline string default byte for byte (#1046, #1109 by @Ilhan-separ). -
The PHP wrapper names the dispatcher's response variable so no parameter can shadow it: a
by-reference parameter namedanswerused to overwriteret,after,stdoutanderror
on write-back, so a successful call returnednullor threw (#1109 by @Ilhan-separ). -
PHP: two static classes in one unit with a method of the same name (
Str::length,
Arr::length) no longer refuse the unit. Only clashing methods are qualified, asstr_length
andarr_lengthin Rust and--keep Str::length; other exports keep their names (#1170, #1182
by @Lewandox).
Upgrading
app liftnow also refuses while the obligation registry has blockers, so a port made with an
earlier release stops at its next lift. Runrust-anything obligations <repo> --checkfirst (it
reads the source and the recorded cases, nothing is built), then: attest the families the
ledger cannot prove complete in one command (rust-anything obligations attest command flag route env error-path --reason "<why>", the families it names), record a case for each
obligation listed, name the case that exercises one inrust/obligations-bindings.toml
([[bind]]withobligation,casesandreason), or waive what needs no case with
rust-anything obligations waive <id>... --reason "<why>", which takes several ids and patterns
such as'flag:*'. Each decision writes an ADR inrust/DECISIONS.md, and commands that write
decisions take turns throughrust/.rust-anything/obligations.lock.gate'scoveragecheck now fails when an export of the unit, a method included, has no
recorded case, so a unit whose recording never called a method failsgate, and with it
app wire,goandapp lift. Record a case that calls it, bind one, or waive its id from the
repository.- Tests: three HTTP tests take fixed ports from
fixed_port()(#1092, #1097 by @qwist1233-cpu),
an MCP test accepts both of selftest's Go messages (#1126, #1127 by @AyhamJo7), the process
tests check that child processes really exit (#1121, #1147 by @P-r-e-m-i-u-m), and the test
targets build on Windows (#1152 by @Plastic-time).
v5.1.0
2026年11月30日
Highlights
gatechecks more than the recording. A newheld-outcheck runs fresh and perturbed inputs through the original and the port, so a port that only matches the recorded cases fails. Newspawnsandruntimechecks refuse a port that runs the original or another program.rust-anything selftestplants wrong ports and tampered recordings and checks thatdiffandgaterefuse each one.- Recordings can no longer be weakened silently. A missing
recorded-from.json, a changed float tolerance, a shrunk recording or new known differences failgateuntil accepted on purpose (--accept-*,--allow-large-tolerance). - Side effects are recorded. For TS/JS, Python, Ruby, Go, Java, Kotlin, PHP and C#,
recordkeeps the arguments after a call and what it printed, anddiffcompares both. - Sandbox and audit log.
record --sandboxandfuzz --sandboxrun the original with no network and its repository read-only. Every switch, wire, lift and gate is appended torust/audit.jsonl, readable withrust-anything log. - Swift units:
analyze,bridge,record,diffandgatefor top-level functions. - New apps in Rust, spec first:
rust-anything new,spec approveandspec check. - Steadier
--json: a schema, time and port version on every result, saved last results, errors as JSON. recordandfuzzreach inside encoded strings: values inside JSON and base64 JSON arguments are varied.- Faster
analyzeon large repositories (LibreChat 134 s to 7.3 s, about 9,000 Python files 153 s to 16 s). - Tamil translation of the README and the website.
Upgrading: gate is stricter. A port that starts a process needs a // SPAWNS: <why> mark where the original starts one too, a --float-tolerance above 1e-6 needs --allow-large-tolerance, and a recording without recorded-from.json fails unless it is marked "legacy_recording": true.
The full list is in CHANGELOG.md.
Thanks to our contributors
- @AyhamJo7: 58 PRs. Faster
analyzeon monorepos and large Python repos,pathlib.Pathand dataclass arguments for Python, secrets kept out ofcases.jsonl, two Python units in one front door, stricter MCP argument checks, and many fixes acrossbridge,record,shadow,setup,gate,liftand the docs. - @XiaoBinGan: Swift
UInt/UInt64asu64, Java and Kotlin functions that read the clock, the locale or module state kept in the original, a warning when the folder holds another language, faster alias lookup, singular counts, and steadier tests. - @m3lonxd: lone surrogates in Python strings,
setup.pyinstall_requires, Ruby=begincomments,diff,profileandbenchoutput fixes, and the repository folder in therulesandmaphints. - @puretechteam: unit tests for PowerShell, C#, PHP, the harnesses, codegen, HTTP and effects.
- @jay23606:
fuzzrestorescases.jsonlafter an interrupted round,doctorchecks Android build-tools,kwargson TS/JS refused, and clearer MCP and--pin-clockwording. - @aaas72:
cli-help.jsonregenerated,map --jsonsaysc-abi,package --dry-runandbenchwording, and docs fixes. - @OnurrUgur: C#, Python and Ruby dependency readers,
mapmarks never-recorded ports,kwargschecks, andfuzz --keeprefuses secrets. - @Layfate: the TS union-with-arrow fix in
bridge, and unit tests acrossenable, the app, the harnesses, Kotlin and HTTP. - @abiramcodes: the Tamil translation,
disable/enable/rulesfixes, charset decoding for mail, Gemfile brace groups, andapp record/app replayfixes. - @SPD-RYUK: clearer
unsafe,shadow,goand Android messages. - @RubenPanero: unit tests for the card, PHP and Java helpers.
- @MannXo:
fuzz --sandboxand Rubyextend selfmodules. - @Ilhan-separ: mail recorded with
--effects smtpdecodes the common charsets. - @aloneangel45: the JS codec escapes marker-shaped plain objects.
- @brixtonpham: TS/JS unary
~and bitwise assignments flagged as Number semantics. - @tony88pisa: Gemfile
group(:test) doread as a group. - @Harsh28-raj: singular count in
record's coverage line. - @ammar-alfifi: the report behind keeping Java and Kotlin app-state readers in the original (#745).
v5.0.2
2026年11月28日
-
profileon Java keeps the samples of every JVM the workload starts. Each one now writes its own
recording (profile-<pid>.jfr) andprofilereads them all, where they used to share one
profile.jfrand the last JVM to exit replaced the others, so work done in a child JVM (a Gradle
test worker, say) was lost (#743). -
bridge --end-state replace|bindings|scaffoldrecords what the unit's bindings are for once the
port is done:replace(the original is deleted after cut-over),bindings(callers keep
importing it, so the bindings are public API) orscaffold(the bindings are deleted at
cut-over). It is kept asend_stateinrust-anything.json(the MCPbridgetool takes it
too), and crates bridged before it keep working without one. -
The skill reads a short guide for the unit's language before porting (
languages/next to
SKILL.md, one file per language): how errors, null, numbers, strings, collections and classes
map to Rust, and the traps that made recorded cases differ in this repository.setupinstalls
them with the skill, the plugins ship them, and the MCPport_unitprompt takes alanguage
argument that adds the file. The skill now asks the end state beforebridge, and says a port
keeps behavior, bugs included: a fix lands in its own change aftergatepasses. -
evals/measures what the skill and tool add over an agent without them, with
claude plugin evaland a no-plugin baseline: a TypeScript, a Python and a Go module whose
callers must keep working while the functions run in Rust.evals/score.pychecks the callers
are unchanged, replays held-out inputs the agent never saw, and proves each call enters Rust.
No results are published until a full run on stated hardware (docs/evals.md). -
The MCP server serves the workflow skill over MCP's skills extension
(io.modelcontextprotocol/skills, SEP-2640):skills/list,skills/getandresources/read
atskill://rust-anything/, with each file's SHA-256 digest and size. A client that supports the
extension gets the skill fromrust-anything mcpalone, without a plugin. -
gateno longer panics on a Go unit whose source file got shorter afterbridge(the manifest's
line pointed past the end of the file, as when the package is rewritten to call the Rust
binding). -
The README says how the tool decides a port is done, what reports and what migrates, how long a
run takes, how to plan with no model and port with a strong one, and which agents it supports,
plus a line about consulting for Rust migrations. -
docs/install.mdlists every way to give an agent the skill:setup, the Claude Code and Codex
plugins,npx skills add erkamyaman/rust-anything, a copy by hand (with each agent's skills
folder), and the MCP server by hand. -
reportwrites what a reviewer needs intoREPORT.md: the end state, everyknown-diffs.jsonl
entry with its reason ("Intended differences"), and the exports kept in the original language
with theirs. -
gate's behavior line counts theknown-diffs.jsonlentries added since the last passing gate,
so a behavior change that lands in the same change as the port is visible. -
analyzealso flags Python bitwise augmented assignments (&=,|=,^=,>>=) as
Number semantics, alongside&,|,^and>>(and as//=,%=,**=and<<=
already are for division and integer semantics) (#768 by @brixtonpham). -
analyzeunit notes say "1 parse error", "1 npm dependency not in the crate table: check it by
hand" and "1 import uses aliases or virtual modules and was not followed" when the count is one,
instead of the plural (#767 by @brixtonpham). -
record,diffandbenchon a Java unit use theCLASSPATHvariable for classes from outside
the source tree (a Gradle or Maven module's libraries).javacalready read it, but the driver
ran with its own-cp, so every case recordedNoClassDefFoundErrorinstead of a result. When
javacfails on missing packages or symbols, the error now says to setCLASSPATH
(#744, #765 by @Layfate). -
recordon Windows reports how much of a TS/JS original the cases ran, as it does elsewhere.
V8 names filesfile:///C:/...and the unit's files were compared as\\?\C:\..., so no file
matched and the coverage line was missing (#763 by @Layfate). -
The repository checks text files out with
\nline endings on every OS (.gitattributes).
Git for Windows turns oncore.autocrlfby default, which gavedocs/tools.mdand
skills/rust-anything/SKILL.md\r\nendings, sotests/tools.rsandtests/skill.rsfailed
on a fresh Windows clone (#761 by @Layfate). -
mapnames a crate folder whoserust-anything.jsondoes not parse with/between folders
on Windows too (rust/util-rs), as it names every readable port, instead ofrust\util-rs
(#760 by @Layfate). -
profileon a Java workload keeps JFR's "Started recording" banner off stdout
(-Xlog:jfr+startup=error). Every JVM the workload starts inherits the JFR options, so a build
tool that runsjavato read a JDK's version, as Gradle does for its toolchains, failed on the
banner withUnable to determine version for JDKbefore the build began
(#742, #759 by @Layfate). -
profileon a Java workload reads all ofjfr print's output. It kept only the last MiB, so a
recording of more than a second or two failed withjfr output: expected value(#759). -
gosays "captured 1 real call" / "N real calls", "recorded N cases (N threw in the original)",
and "gate: 1 check fails" / "N checks fail" instead of "(s)" and "throw"
(#732, #757 by @Papito084). -
goretry prompt says "1 distinct difference" for one difference and "N distinct differences"
for more, instead of "N distinct difference(s)", and "1 case" instead of "1 case(s)"
(#731, #756 by @Papito084). -
record --from-testssays "Captured 1 call from the tests" for one call and
"Captured N calls from the tests" for more, instead of "Captured N call(s)"
(#733, #755 by @Papito084). -
recordsays "Left out 1 input the original ran too long on" for one timed-out
input and "Left out N inputs ..." for more, instead of "Left out N input(s)"
(#734, #754 by @Papito084). -
fuzz --keepsays "Kept 1 case in ..." for one kept case and "Kept N cases in ..."
for more, instead of "Kept N case(s)" (#735, #753 by @Papito084). -
enable --onlysays "unknown export in ..." for one unknown name and "unknown exports in ..."
for more, instead of "unknown export(s)", and "requested function does not match" for one
failing function and "requested functions do not match" for more (#736, #752 by @Papito084). -
app record --no-freshkeeps thefiles/snapshot when a case that stays reads it through a
folder above it (fs.base = "."), not only through one inside it (#739, #749 by @XiaoBinGan). -
analyze's empty-plan warnings say "1 TypeScript/JavaScript file under ... is excluded" and
"only 1 compiled or packaged file" for one file, instead of "1 ... files ... are"
(#738, #746 by @brixtonpham). -
npx rust-anything@latest setupnow leaves agents that keep working: a copy run from npx's
cache sets each agent to startnpx -y rust-anything@<version> mcp(cmd /c npx ...on
Windows) instead of the cached binary, which npm may delete.doctorreads that entry as
current. -
A GitHub Action runs
rust-anything gatein CI on every push:
uses: erkamyaman/rust-anything@mainwithcrates:listing the crate folders. It installs
rust-anything from npm and fails the job when any crate fails the gate. -
analyzealso countsNumber.parseIntandNumber.parseFloatcalls asNumber semantics,
alongside globalparseIntandparseFloat(#730 by @brixtonpham). -
--db-dumpoutput is recorded with\nline endings: on Windows, Python'sprintandsqlite3
end lines with\r\n, so.effectsmixed both and a recording made there failed replay on Linux
and macOS. Recordings made on Windows with--db-dumpbefore need a freshapp record
(#729 by @Layfate). -
The Android 16 KB page-size check says "1 LOAD segment is not 16 KB aligned" for one
misaligned segment and "2 LOAD segments are not 16 KB aligned" for more, instead of
"LOAD segment(s) are" (#718, #728 by @MannXo). -
app record --freshwrites the files a case removed (<case>.removed) with/between folders
on Windows too, so a recording made on Windows replays on Linux and macOS instead of failing on
stale\old.txt. Recordings made on Windows before need a freshapp record
(#727 by @Layfate). -
gatestarts a failed check's extra detail lines and itsfix:line in the same column as the
first line of its detail, instead of a fixed 12 spaces that no longer lined up after #707
(#713, #725 by @Layfate). -
gate'sportedcheck says "1 place in port.rs" for one stub and "N places" for more,
instead of "1 place(s)" (#712, #724 by @Layfate). -
analyzealso countstoLocaleString,toLocaleDateStringandtoLocaleTimeStringcalls as
Intl and locale-aware strings: they format numbers and dates with the same ICU data as
localeCompare(#714, #722 by @chuenchen309). -
analyzeno longer flagsnew Date(-1)(a negative number literal) asDate parsing
(#715, #721 by @brixtonpham). -
app recordno longer keeps a separator that two runs' random values happen to share: request
idsk2Pq_x9Lm4andZt7w_bR3nVnow record as[..]instead of[..]_[..], so a replay whose id
has no_passes. A separator next to a part both runs agree on stays, soid=[..]keeps its
=. Recordings made before keep their wildcards until the nextapp record
(#680, #692 by @XiaoBinGan). -
analyzeflags three more TS/JS risks:Intl and locale-aware strings(high:Intl.*,
localeCompare,toLocaleLowerCase,normalize("NFC")),Date parsing(high:Date.parse,
new Date(string)) andURL and encoding APIs(medium:new URL,URLSearchParams,
TextEncoder/TextDecoder,atob/btoa), each with guidance on the traps a port must match
(#678, #711 by @antont). -
On Windows, a debug build of the CLI (
cargo run, and every test that runs the binary) no
longer overflows the 1 MB main-thread stack before it parses its arguments: the CLI runs on a
thread with an 8 MB stack on every OS. Release builds were not affected (#710 by @Layfate). -
packagerefuses--binand--originalon a napi, wasm or PyO3 crate, and--fallbackon a
wasm or PyO3 crate, naming the flag and what it is for, before anything is written (also with
--dry-run). They used to be dropped silently (#701, #708 by @Papito084). -
gatestarts every check's detail in the same column, padding names to the longest one, so
error casesandknown diffsline up with the rest (#700, #707 by @Papito084). -
gatesays "the 1 function that fails in the original has a recorded failing case" instead of
"each of the 1 functions that fail" in theerror casescheck (#698, #706 by @Papito084). -
app driftprints "1 case; build: ..." instead of "1 cases" for a one-case recording
(#699, #705 by @Papito084). -
A napi export called without an optional structured argument, such as an array, now gets
Noneon the JSON path that async calls always take, instead of failing with
invalid type: map, expected a sequencebefore the port runs. Aserde_json::Valueparameter
still receives theundefinedmarker (#681, reported by @antont). -
The MCP
app_replaytool refuses abuildorcase, andapp_driftabuild, that is not a
string with`case` must be a string, not 5, instead of dropping it and replaying every case
or the original. A missing ornullvalue still means not given
(#682, #691 by @susheelg1197). -
The MCP
packagetool refuses aname,version,fallbackororiginalthat is not a
string with`version` must be a string, not 2, instead of dropping it and packaging with the
crate's own value. A missing ornullvalue still means not given
(#683, #690 by @susheelg1197). -
The MCP tools refuse an optional path (
out,inputs,module,resolve_from,ndk,
jni_libs) that is not a string with`out` must be a string, not 5, instead of dropping
it and using the default. A missing ornullpath still means not given
(#686, #689 by @susheelg1197). -
Every MCP tool's required path (
root,repoorcrate) that is there but not a string is
refused with`root` must be a string, not 5instead ofmissing `root`. An absent or
nullpath still saysmissing `root`(#685, #688 by @susheelg1197). -
The MCP
bridgeandapp_wiretools refuse aunitthat is not a string with
`unit` must be a string, not 5instead ofmissing `unit`, andbridgerefuses aname
that is not a string instead of writing the bridge under the default name. A missing ornull
unitstill saysmissing `unit`. A wrong-type argument to any MCP tool now gets the
invalid_argumentscode, not retryable, instead offailed(#684, #687 by @susheelg1197). -
docs/whole-apps.mdsays six of the sevenappcommands are MCP tools and thatapp shadowis
CLI only, instead of "All six are MCP tools too" (#672, #674 by @XiaoBinGan). -
The MCP
app_recordtool refuses aready,name,db_resetordb_dumpthat is neither a
string nornull, with`ready` must be a string, not 42, instead of recording as if it had
not been given. Anullstill means not given (#671, #673 by @XiaoBinGan). -
app record --http --inputsrecords every input, including one that repeats an earlier request.
Cases run in name order against one server, so a read after a write is a case of its own; it
used to be dropped as a duplicate, and the read the recording was made for was never recorded.
Examples and generated traps are still deduplicated.app replay, and the replaysapp wire
andapp liftrun, send HTTP cases in that same case-name order: sorting file names put
add-againbeforeadd, so a server with state answered differently than when recorded
(#677 by @antont). -
The generated
src/utf16.rshasslice_units, JSsliceon code units with a cut surrogate
pair kept, andbridge's string-offsets note says to return such a substring through
js::utf16_string(utf16::slice_units(..)).utf16::slice, which the note pointed to before,
turns a lone surrogate into U+FFFD, so a port that followed it faileddiffon the cases the
helpers exist for (head("😀")→{"$utf16":[55357]}in JS) (#676 by @antont). -
A napi port function returning
Option<T>answersNoneasnullwhen its TS export declares
T | null, also through a type alias andPromise<T | null>. A call the binary wire refuses
(such asnullfor an optional array), and every async call, used to getundefined, so
difffailed withexpected {"ok":null}, got {"ok":{"$undefined":true}}; the wire already
answerednull. A declaredundefinedstill answersundefined(#675 by @antont). -
The table of saved settings in
docs/whole-apps.mdnames the flag that clearshttp
(--no-http),http.port(--port 0),http.args(--no-args) andhttp.fresh/fresh
(--no-fresh) instead of saying they cannot be cleared
(#665, #668 by @alvaroalonsoparrondo-a11y). -
The MCP
app_recordtool called withhttp: falseand areadyrequest says
--no-http cannot be combined with --http, --port, --arg, --pace, --ready-timeout or --ready;
the message used to leave out--ready, the one setting the caller had passed
(#666, #667 by @alvaroalonsoparrondo-a11y). -
app record --readyrefuses a value that is not/pathorMETHOD /pathwith an uppercase method,
such ashealth,get /healthorGET /health extra, before the server starts, instead of
failing after the whole--ready-timeout. The MCPapp_recordtool checks it the same way
(#657, #659 by @susheelg1197). -
app record --ready "GET /health"waits, after the server's port opens, until that request
answers 2xx, so a framework that opens its port before its routes work is not recorded answering
503. The request is saved with the cases and used byapp replay,app shadowand the front
door's own start of the original, within--ready-timeout; the MCPapp_recordtool takes it
asready(#332, #656 by @XiaoBinGan). -
gate's literals check no longer counts recorded error text. A port has to reproduce the
original's error messages, and the runtime often writes them (ZeroDivisionError: division by zero),
so they were wrongly flagged as copied answers and failed the demo gate on macOS.
v5.0.1
2026年11月26日
- rust-anything is now dual licensed under MIT OR Apache-2.0, the usual license for Rust projects. You
can keep using it under MIT exactly as before; Apache-2.0 adds an explicit patent grant.LICENSEis
nowLICENSE-MIT, next to a newLICENSE-APACHE, and both ship in the crate, the npm package and
the release archives. mapcounts units, not crates, in its first line: one unit bridged twice (napi and wasm, or a
secondbridge --out) reads1 of 1 unit has a Rust portinstead of2 of 2 units have. The
Ports table still lists every crate (#609 by @Aadithya-kl).fuzz --timegiven a negative or non-finite value says
`--time` must be 0 or more seconds (0 runs one round), not -1instead of
`--time` takes seconds, and--time -1(with a space) gets the same message instead of clap's
unexpected argument '-1' found. The MCPfuzztool'stimesays the same (#612).bridge --as-json Qstops before writing anything when no export declaresQas a type
parameter, with--as-json `Q` is not a type parameter of `src/math.ts` (type parameters: T)
(or "it has none"), instead of ignoring the name and leaving the generic export in TS, as
--keepalready does for unknown exports (#608).
v5.0.0
2026年11月26日
The old program is the judge, now with sharper eyes: every mismatch says where it starts and
which bug it belongs to, live traffic can be shadowed, drift is checked in CI, and gate catches
ports that copy the recording instead of computing it. Ideas from Anthropic's write-up on moving
the Messages API to Rust.
-
bridgeon a crate folder that already has a port names the next step: run
rust-anything refresh <crate>to regenerate the bindings, pass--outor--namefor a new
crate, or remove the folder to start over (#568, #599 by @alvaroalonsoparrondo-a11y). -
bridge --kind napi(orwasm) on a unit that is not TS/JS stops before writing anything, with
--kind napi is for TS/JS units; mathy.py is Python and is bridged with PyO3, instead of writing a
napi crate for a Python unit that only fails atdiff. The--kindhelp says it is for TS/JS units
(#575, #598 by @alvaroalonsoparrondo-a11y). -
--float-tolerance -0.5(with a space) onrecord,diffandapp recordgets the range message
instead of clap'sunexpected argument '-0' found, anddiffchecks the tolerance before it
reads or runs anything (#574, #597 by @alvaroalonsoparrondo-a11y). -
diffnames where each mismatch first differs, asatin the JSON: the channel (return,
throw,return vs throworcall Nfor a class scenario), the JSON path ($.items[2].name),
the kind (value,type,missing key,extra key,length) and, for strings, the character
with a little context around it.app replaydoes the same for each failing field: the line
and column of text output, the JSON path in a JSON body, the status change (200→500). -
diff,app replayandreportgroup the failing cases that differ the same way into
distinct differences, each with a short stable id and a count, so 40 mismatches from one bug
read as one line.rust/app-cases/replay-report.mdgains a "Distinct differences" table before
the failing cases,reporta "Remaining differences" table (anddifferencesin its JSON)
while cases still differ, andgohands the agent each difference once with an example and
where it starts, instead of the first five raw mismatches. -
diff --redactandapp replay --redact(MCPredact: true) print mismatches as shapes only:
where they differ, types, lengths and hashes, never arguments, outputs or request paths. The
replay report is written redacted too, so it can be pasted into an issue or handed to another
agent. -
app shadowchecks a server build on live traffic: a proxy answers every request with the
original, then sends it to the build and compares status, headers and body with the saved
normalizers. The build's outbound HTTP and mail go to local sinks and its--freshfiles to a
copy of its own, so no side effect happens twice. Mismatches are logged to
rust/app-cases/shadow/mismatches.jsonlas redacted shapes (where each field first differs,
never values) and grouped into distinct differences at the end;--keepsaves the requests in
app record --inputsformat.--upstreamuses an original that is already running,
--requestsstops after a count. Servers only, no MCP tool. -
app drift [REPO] [--build CMD](MCPapp_drift) checks that the recording still describes
the original and the port still matches: it replays the original againstrust/app-cases
(cases it no longer matches changed upstream), lists examples in its docs that no case records,
and replays the build (rust/app, built with cargo, by default), marking each case "original
changed, port still old" or "port regression". It writesrust/app-cases/drift-report.md,
leavesreplay-report.mdas it was, and exits 1 on any change.docs/whole-apps.mdhas a
GitHub Actions workflow that runs it on a schedule. -
gatehas a cheat guard.literalsfails when the port writes three or more recorded arguments
or results (strings of 8 or more characters, numbers with 5 or more significant digits) that the
original's source never spells out, or namescases.jsonl,known-diffs.jsonlor
recorded-from.json; one or two are named and pass, and// recorded-literal: <reason>on a line
lets a library constant stay.testsfails when the crate has fewer#[test]s or assertions, or
more#[ignore]s, than at its last passing gate (kept in.rust-anything/tests.json).record
now also saves the number and hash of the recorded lines inrecorded-from.json, andrecording
fails when one of them was edited or removed; appended cases (fuzz --keep) still pass, and older
recordings are not checked until recorded again.go's TASK.md says so. -
ruleskeeps port rules inrust/RULES.md:rust-anything rules <repo>lists them and
--add "<rule>"appends one (an exact duplicate is skipped; a crate folder stands for its
repository).goputs them in TASK.md (and so in every retry prompt), both MCP prompts end with
them, and the MCP server's instructions, therulestool and the skill tell agents to read them
before porting and to add each correction the user makes. -
Docs and tests: translated READMEs link the Types and packaging pages, CONTRIBUTING lists every
test file, the FAQ states the PHP and .NET requirements,buildandrefreshhelp covers every
language, and new unit tests coverc_literal,local_module_version,shell_quoteand the
base64 helpers (#564 by @Lewandox, #578 by @XiaoBinGan, #585 to #596 and #600 to #603 by
@alvaroalonsoparrondo-a11y).
Upgrading
rust/app-cases/replay-report.mdgains a "Distinct differences" section and anatline above
each failing field, so a committed report differs once after upgrading: replay and commit it
again.gatehas newliteralsandtestschecks and an extendedrecordingcheck, which can fail
ports that passed before. A constant the original really takes from a library can stay with
// recorded-literal: <reason>on its line; to accept fewer tests on purpose, delete
<crate>/.rust-anything/tests.jsonand rungateagain to save a new baseline.
v4.2.0
2026年11月26日
- MCP boolean arguments (
force,dry_run,whole_app,ignore_key_order,pin_clock,partial,
traps,http,library,check,skip_gate) given a non-boolean such as"false"or1are
refused with`<key>` must be a boolean, instead of silently falling back to the default
(#563 by @Lewandox). app recordandapp replaywithout a fixed--portpick a port that is free on both127.0.0.1
and[::1], and try another one if something takes it before the server starts, instead of
failing now and then withport <N> is already in use(#562 by @Lewandox).bench --min-ms 0andreport --min-ms 0(and MCPbench/reportwithmin_ms: 0) are refused
with`--min-ms` must be at least 1, likefuzz --cases 0, instead of timing a single pass
(#561 by @ardazeybek).- A failed MCP tool call whose program is missing (
`cargo` not found on PATH) gets the
missing_toolcode withrust-anything doctoras the next step, instead of a genericfailed
(#557 by @Lewandox). record --count 0(and MCPrecordwithcount: 0) without--inputsor--from-testsstops
with an error before touchingcases.jsonlor the manifest, likefuzz --cases 0: it used to
replace the recording with an empty file and exit 0.--count 0 --inputs <file>still records
just the given cases (#539, #546 by @alvaroalonsoparrondo-a11y, with the early check and a test
from #556 by @ardazeybek).enable --partialandenable --only(without--force) on a crate with nocases.jsonlsay
no cases.jsonl in <crate> (run `rust-anything record` first)like plainenable, instead of
the bareNo such file or directory (os error 2)(#540, #545 by @alvaroalonsoparrondo-a11y).- MCP tools refuse a numeric argument of the wrong type, a negative one or one out of range
(count,rounds,cases,seed,min_ms,time,float_tolerance,port,pace,
ready_timeout) instead of silently using the default; aportabove 65535 is an error rather
than no port (#543 by @Lewandox). - The "not found on PATH" check behind
build,gateand the other outside-tool steps looks up a
program the way it is spawned: on Windows only the name and<name>.execount (a bare.cmd
script no longer does), and on Unix a relativePATHentry is resolved from the command's
working directory (#541 by @Lewandox). - MCP
bridgerefuses akindother than"napi"or"wasm",record,buildanddiffrefuse a
non-stringprofile, andfuzzrefuses a non-stringkeep, instead of silently falling back to
the default (#530 by @Lewandox). bridge --name(and MCPbridge'sname) is refused before any folder is written when it is
not a valid Cargo crate name: empty, padded, a path such as../escape, a leading digit, a Rust
keyword or a reserved Windows file name. A unit whose file name starts with a digit or has no
letters gets a valid default name (unit-123-rs,unit-rs) (#529 by @Lewandox).build,gateand the other steps that run an outside tool say`cargo` not found on PATH
withdoctor's install command when the program is missing, instead of the rawNo such file or directory (os error 2);gateno longer tells you to fix a compile error when the build never
started (#498, #525 by @Lewandox).bridge --keeprefuses a name that is not an export or class of the unit, listing the ones it
has, before writing anything: a typo used to bridge the export it meant to keep. A bare
--keep ' add 'is trimmed like--keep "add: reason"already was (#499, #522 by
@alvaroalonsoparrondo-a11y).--batch function:paramwith an unknown function or parameter lists the onessrc/port.rshas
((functions: add),(parameters: a, b)), and an empty side (add:or:a) gets the same
"write it as function:param" error as a spec without a colon (#504, #521 by
@alvaroalonsoparrondo-a11y).enable --only(and--partial) with an unknown name lists the unit's exports after the unknown
ones, so the right spelling is in the error (#500, #520 by @Papito084).package --version(and MCPpackage'sversion) is refused before anything is written,
--dry-runincluded, unless it isMAJOR.MINOR.PATCHwith an optional-prerelease: an empty,
padded or malformed version used to land in the package and fail only at publish time (#502, #519 by
@alvaroalonsoparrondo-a11y).gate'ssizecheck andgo's "no hot function to port" message say1 lineand
1 hot functionfor one, likeanalyze's plan (#503, #516 by @Papito084).- The
port_unitandport_whole_appMCP prompts strip the skill's front matter whenSKILL.md
has CRLF line endings, as on a Windows checkout withcore.autocrlf=true(#501, #515 by @Papito084). - Generated Go, Java, Kotlin and Ruby bridges pass a zero-argument fallible port function straight
torun/guard(run(port::pong)) instead of wrapping it in a closure, so freshly bridged code
passesgate's clippyredundant_closurecheck again (#310, #487 by @Lewandox). app record --no-httpturns a saved server recording back into a CLI,--no-argsand
--no-freshclear the saved--argand--freshlists (removing an unused snapshot), and
--port 0drops a saved fixed port; MCPapp_recordtakeshttp: false,args: [],fresh: []
andport: 0the same way. A new run command re-infers an inferred app name, while one given
with--nameis kept (#330, #486 by @Lewandox).app record --timeout 0andapp replay --timeout 0(and MCPapp_record/app_replaywith
timeout: 0) are refused before anything runs, instead of killing every run at once; a saved
timeout_secsof 0 is refused too, with a hint to pass--timeout(#497, #514 by @aloneangel45).app record --ready-timeout SECS(and MCPapp_record'sready_timeout) sets how long a server
start waits for its port instead of a fixed 60 seconds. It is saved with the cases and used by
replay and the front door; 0 restores the default (#332, #478 by @XiaoBinGan).tests/skill.rsfails when the skill names a command the CLI does not have, andscripts/skill-eval/
compares skill versions on a fixed port task, scored bygate(turns and cost from the agent's JSON).analyzeprefers a matching sibling source file over a directory index for extensionless
TypeScript and JavaScript imports, as TypeScript's bundler resolution does
(#476, #477 by @isnaenihidayat).- Ruby ports turn
Err("Mod::Error: message")into that namespaced exception, and Java, Ruby and
PHP replays load the project's own classes, so a port that returns a project-defined exception
matches the recordederror_type. The Ruby wrapper reopens each receiver withclass << Mod,
so it also loads over a class the original defined (#372, #457 by @SPD-RYUK). app recordspreads CLI and HTTP traps round-robin across every base case, deduplicates traps
before capping at 300, always keeps the HTTP unknown-route probe (GET /rust-anything-missing),
and reports how many traps were dropped (traps_droppedin JSON and CLI output) (#335, #454 by @Lewandox).- HTTP cases support binary request bodies via
body_base64andbody_filein--inputsand case
.tomlfiles,curl --data-binary @filereads raw bytes instead of UTF-8 text, andcurl -F/
--formbuilds deterministicmultipart/form-datauploads (#336, #452 by @Lewandox). app record --effect-response 'METHOD /path=STATUS [BODY|@FILE]'(and MCPapp_record's
effect_response) lets the HTTP effect sink answer matching requests (supporting*wildcards)
with canned statuses and bodies, saved with the cases so replay sees identical replies
(#334, #451 by @Lewandox).bench,reportand the MCPbenchtool leave functions whose recorded cases do not all match
out of the overall speedup and the advice, and name them: a port that still panics was timed at
the cost of catching the panic, which pulled the verdict down (#341, #470 by @AyhamJo7).app recordkeeps the saved effects a run does not name:--effectsreplaces the kinds,
--effect-envadds or replaces one variable, and--db-reset/--db-dumpreplace only
themselves, so re-recording with one flag no longer drops the HTTP sink and its variables
(#331, #468 by @XiaoBinGan).- Java bridges ordered sets (
SortedSet,NavigableSet,TreeSet,LinkedHashSet) as arrays
across the reflection converter and binary wire, and refuses unorderedSetandHashSetwith
"an unordered collection" instead of treating them as project classes (#366, #449 by @Lewandox). docs/types.mdlists, for each language, what each source type becomes inport.rsand the
reason a type keeps a function in its language; a test checks every row against the code
(#373, #456 by @puretechteam).- Docs: the README unit-port caption and the FAQ runtime extras table include PowerShell (#505,
#506), the translated READMEs got a+ add yourslanguage link (#513), the PHP and C# unit
bridges are documented in the Azerbaijani, Uzbek, Turkish, Ukrainian, Simplified Chinese and
Korean READMEs (#479, #480, #481, #482, #483, #484), theport.rscomment is translated in the
Vietnamese, Kazakh, Kyrgyz and Turkmen READMEs (#485), and the Turkish, Ukrainian, Azerbaijani,
Vietnamese, Hindi and Arabic READMEs mention Gradle and Kotlin detection (#507, #508, #509,
#510, #511, #512), by @Papito084; whole-app support for any language (#445), the
rust/app-cases/rust-anything.jsonsettings (#446) and the Japanese Gradle and Kotlin note
(#444) by @Papito084; the Persian, Kazakh, Kyrgyz, Turkmen, Tatar, Uyghur and Uzbek READMEs
mention Gradle and Kotlin detection (#547, #548, #549, #550, #551, #552, #553) and include
PowerShell in the unit-port caption (#559, #560), by @alvaroalonsoparrondo-a11y; the Arabic,
French, Spanish, German, Italian and Portuguese captions (#555 by @Lewandox) and the Turkish and
Azerbaijani ones (#558 by @ardazeybek) do too; the Japanese README says PHP and C# units port
now (#460 by @XiaoBinGan); the Simplified and Traditional Chinese READMEs mention Gradle and
Kotlin detection (#471, #473 by @hkhkkh); a Thai README was added (#475 by @matavanary); and the
plugin directory copy ofSKILL.mdis back in sync (#474 by @AyhamJo7). - Tests: end-to-end Python and Node profile workloads (#447) and a report on a built crate (#459)
by @Papito084; the busy-port and exiting-build messages (#458) and a check that a forked server
is gone after record (#544) by @XiaoBinGan.
v4.1.0
2026年11月25日
-
enable --only <fn>(repeatable) switches on just the named functions of a unit, and--partial
switches on every function whose recorded cases all match, so a unit with many exports can go
over one function at a time. Running it again widens or narrows the marked block in place (#351, #412 by @Lewandox). -
reporttakes--resolve-from <dir>likebenchandfuzz, in the CLI and the MCP tool, for
repositories whosenode_moduleslives elsewhere (#349, #402 by @XiaoBinGan). -
analyze's Start here details name the sibling a unit imports in the same package, which is what
puts it in a later wave (#348, #422 by @XiaoBinGan). -
A Kotlin unit that takes or returns
ByteArray,ShortArrayorFloatArraysays that the Java
wire cannot carry that array type yet, instead of calling it a class (#369, #386 by @XiaoBinGan). -
bridge --batchon a C unit, andrefresh --batchon a C, PHP, C# or PowerShell crate, fail with
"--batchis not available for units yet" instead of saving a batch that generates
nothing (#434, #440 by @SPD-RYUK). -
Java and Kotlin ports turn
Err("Type: message")into the same exception on the JSON, typed, wire
and batch paths, and look injava.timeandjava.util.concurrenttoo, so a typed call no
longer throwsRuntimeExceptionforDateTimeException(#359, #438 by @SPD-RYUK). -
reportsays "Nx slower" for a port slower than the original in the card'saria-labeland in
REPORT.md's speedup rows, instead of "0.0x faster" and0.0x(#433, #437 by @draarivpatel-ui). -
analyzeandmapcount lines of code the waygate's size check does, leaving out comment
lines, so licence headers and JSDoc no longer move a file's Lines, Start here or priority (#342, #435 by @AyhamJo7). -
profileandgoon a Node that refuses--cpu-profinNODE_OPTIONS(22.14) pass it to anode
command as arguments, and stop with a clear message for wrappers such asnpx(#346, #429 by @AyhamJo7). -
profileleaves a script's top level (Python's<module>, Node's line-1 module function) out of
"What to port" and no longer advises porting it with a function it calls in a loop (#344, #428 by @AyhamJo7). -
Java and Kotlin parameters accept covariant wildcards and projections (
List<? extends CharSequence>,
List<out CharSequence>,Map<String, ? extends Integer>,Array<out String>) through both the
reflection converter and the binary wire; return positions,? super Tandin Tstay refused (#367, #439 by @Lewandox). -
app record --effects smtprecords each email as its decodedFrom,To,CcandSubject
and its MIME parts (attachments as name, type, size and SHA-256), so the same mail sent with
different MIME framing matches.--effects smtp-rawkeeps the raw DATA, and cases recorded
before this keep replaying against the raw form until recorded again (#333, #426 by @Lewandox). -
Go ports map matching error messages back to the package's exported sentinel errors, so callers using
errors.Iskeep working (#365, #413 by @Lewandox). -
record --ignore-key-ordersaves the choice with the crate, sogate,enable,reportand
gocompare objects regardless of key order too;--no-ignore-key-orderundoes it (#352, #409 by @XiaoBinGan). -
mapgives each unit without a portanalyze's status and lists the blocked and kept ones
with the reason, so they no longer read as work left to port (#350, #421 by @XiaoBinGan). -
On Windows,
profileandgofind the project's own functions in a Node workload: Node's
file:///C:/...frame URLs kept the slash before the drive letter, so no frame matched the
project root andgostopped withno hot function to port(#407, #408 by @Momentum96). -
app recordandapp replayfail withport <port> is already in usebefore spawning a server
on an occupied port and check whether the child exited before treating the port as ready (#326, #395 by @brixtonpham). -
Err("Outer+Inner: message")in a C# port throws the nested exception the recording names,
likeAcme.Parser+ParseException, instead of falling back toInvalidOperationException(#363, #423 by @draarivpatel-ui). -
Recording again removes the cases the last recording wrote and this one did not (an input that
was removed or renamed, or a case that timed out), for CLIs and inhttp/, so replay no longer
compares against them. Cases added by hand are kept and named in the output, as are the files
a kept case reads throughfs.base; switching between a CLI and--httpremoves nothing (#329, #420 by @puretechteam). -
app record --httpandapp replaystop the whole server when it was started through a wrapper
(npm start,sh -c, a.batfile): every process it started, waiting until all are gone.
Ctrl-C duringapp record --httpstill stops the server too.
The real server used to keep running, so the next run met it on the port and a replay could
pass against it (#325, #419 by @puretechteam). -
record,fuzz,diffandbenchpass--experimental-strip-typesto Node 22.6 to 22.17 (and
23.0 to 23.5), which only strip TypeScript types with that flag, so TS units no longer fail with
ERR_UNKNOWN_FILE_EXTENSIONon Node versionsdoctoraccepts (#340, #418 by @puretechteam). -
app record --httpandapp replayfind a server that listens only on::1(alocalhost
bind can get IPv6 only) and send its requests there, instead of waiting 60 seconds and failing
withdid not listen within 60s(#327, #417 by @puretechteam). -
app record --db-resetand--db-dumprun in the folder a CLI case runs in, as they already did
for servers, so a database the app keeps next to it is the one reset and dumped, and the
repository's own copy is left alone. Scripts they name by a relative path with a script
extension (reset.py,"my scripts/seed.sh",< schema.sql) still come from the repository;
output redirects (> dump.sql, also unspaced) stay in the case's folder, and here-document
bodies and#comments are left as written. Quotes, line continuations and( )blocks are
read as sh and cmd read them (#324, #416 by @puretechteam). -
bridgetypes Gouint64anduintasu64anduintptrasusizeinport.rs, alone or as
slice items. They werei64, so a result abovei64::MAXcould not go back to Go and failed
diff(#357, #414 by @AyhamJo7). -
Docs: the FAQ says how each language reads an error type (#387), the MCP
analyzeandfuzz
descriptions name every language (#392), the risks table lists only whatanalyzedetects
(#424) and how readiness, priority and Start here are scored (#436), by @XiaoBinGan; the
shadow --outhelp gives each language's default (#401) and the Spanish, Italian and German
tables gained Kotlin and PowerShell (#396, #399, #400), by @hkhkkh;enablehelp and docs name
PowerShell (#441) and the Russian and Korean READMEs explain Gradle and Kotlin detection (#442,
#443), by @Papito084; the German, French and Portuguese READMEs got the same (#410 by @lyn1dev,
#415 by @sniwas, #411 by @P-r-e-m-i-u-m); CONTRIBUTING lists the missing-folder tests (#391 by
@NYeswanth08); and the site moved to rust-anything.com with every translated languages table
brought up to date.
v4.0.0
2026年11月24日
- A documentation site at rust-anything.com: the README, the guides
and the real-world ports in 18 languages, with search, falling back to English for pages not
translated yet. The README links it, and the project has a Discord. - Python
bytes,bytearrayandmemoryviewhints becomeVec<u8>in the port, and the PyO3
bridge takes any of the three and returnsbyteswithout going through JSON (#370, #381 by
@Lewandox). - An integer default on a Python
floatparameter (def f(x: float = 1)) types asf64instead
of failing the bridge (#380 by @d0ukan). doctorchecksadb, which Android recording needs (#308 by @XiaoBinGan).analyzerefuses a folder that does not exist (#294 by @AyhamJo7), andanalyze --langfor a
language the folder does not hold is an error that names the language it found and why any
files were left out, instead of an empty plan with exit 0 (#345, #385 by @puretechteam).analyzelists distinct lines as a risk's samples, so several hits on one line no longer hide
the next location (#347, #382 by @puretechteam).mapsays when no unit was found (#296 by @AyhamJo7), refuses a file instead of printing an
empty map (#307 by @XiaoBinGan), and refuses--writewith--jsoninstead of printing JSON
and writing nothing (#343, #383 by @puretechteam).diff,disable,reportandshadowon a missing folder say to runbridgefirst (#306 by
@P-r-e-m-i-u-m, #302 by @Kiddo4993).app recordjoins example commands wrapped with a trailing\, so a curl example split over
lines becomes its request (#328, #384 by @puretechteam).- Parsers: C integer specifiers in any order (#374), Java wildcards named as wildcards and still
refused (#375), Java C-style array parameters keep their dimensions (#378), phpdoc types that
contain a space (#376), and YARD@paramtags in either order (#377), all by @XiaoBinGan. - HTTP recording treats only two hex digits after
%as an escape (#298 by @XiaoBinGan). benchfor Go says how much slower instead of "1.0x slower" (#299 by @XiaoBinGan), the card
never prints a non-zero fallback rate as 0.0% or a partial one as 100.0% (#304 by
@puretechteam), andreportleaves out the Risk guide when no unit has a risk (#320 by
@puretechteam).- The workflow skill's description names Kotlin, PHP, C# and PowerShell, so agents also pick it
for those ports (#280, #313 by @athrvd77). - Docs: an Indonesian README (#295 by @agusmakmun); the PHP and C# unit bridge in Traditional
Chinese (#316 by @XiaoBinGan), Portuguese (#318 by @XiaoBinGan) and Vietnamese (#379 by @tlq5l);
the Russian README brought up to date (#319 by @onlykushalll); the PHP wrapper and the.Rust
namespace explained (#317), PowerShell named in the descriptions (#312) and the plugin directory
listing updated (#315), by @XiaoBinGan; the runtime versionsdoctorchecks andapp replay's
default timeout documented (#321, #322 by @puretechteam).
v3.4.0
2026年11月24日
- PowerShell units (#209).
analyzereads.psm1modules,.ps1scripts and.psd1manifests,
followsImport-Module,using moduleand dot-sourced files, and adds notes on implicit output
and array unrolling, case-insensitive comparison and implicit conversions.bridgetakes the
functions a module exports (Export-ModuleMember, wildcards included) with[string], integer,
[double],[bool]/[switch], array,[hashtable]and untyped parameters, and writes
ps/<crate>.ps1: each function with its originalparam()block, calling the Rust library
through P/Invoke methods that Reflection.Emit declares at load time, so onlypwsh7.4+ is
needed on Windows, macOS and Linux. Filters,begin/processblocks, pipeline input,
[scriptblock],[ref],$PSCmdletand other .NET types stay in PowerShell with the reason.
record,diff,benchandgaterun a generatedpwshdriver; a result is what
$r = f ...holds, andWrite-Host, warnings and non-terminating errors are recorded as
output.enabledot-sources the wrapper after the module's last function, so its own callers
get Rust too;disablerestores the file byte for byte.doctorcheckspwsh, andprofile
says to time onepwshstart first. Each call costs about 0.1 ms of PowerShell-side encoding on
an Apple M4, more with arrays and hashtables: a port pays off only for functions that do more
work than that, and never for the start-up of a shell per command. - Generated JSON dispatchers read
$nummarkers (NaN, the infinities, -0) inside an optional list
of floats (Option<Vec<f64>>), which failed with "invalid type: map, expected f64". doctorchecks that PHP has theFFIextension loaded (php -m), not only PHP 8.0+
(#240). WhenFFIis missing, the PHP line says so with how to enable or install it, and stays
optional so the report does not fail.profilesays when the time goes to child processes, not code (#208). Time under Node's
execSync,execFileSyncandspawnSync, and under Python'ssubprocesscalls and
os.system, is a new "Child processes" section and achild_processesfield in--json
(command, file, line, function, ms, share; left out when empty), with the advice to keep one
long-lived process open, batch the commands, or call the API directly;child_pctgives the
total. A hot function that waits gets its ownchild_pct, and from half its time that advice
instead of "port it";gopasses over such a function, says why when--functionnames it,
and stops when waiting is half the run or more (--functionstill names a function that does
not itself mostly wait). A function'schild_pctcounts only waits known to happen under it:
a helper shared by several callers, or a recursive call, does not pass its waits to every
caller.child_pctfor the run also counts waits that no user function owns (a library's
timer callback); Python waits count only in the interpreter's ownsubprocessandos
modules, not a dependency's file of the same name;golooks past the 25 rows the report
shows; an executable named on its own (execFileSync("/opt/My Tools/worker"), an argv list)
is shown whole.profileandgojudge each hot exported function with the rulesbridgeapplies. A hot
functionbridgekeeps in the source language (one taking a callback, typed in TypeScript or
in a sibling.d.ts; a Python generator) was advised as "port it", andgopicked it and
stopped with "every export ... must stay in TypeScript/JavaScript" (or Python).profilenow
says whybridgekeeps it (a newjs_onlyfield in--json), andgopasses over it to the
next hot function that can cross, or says none can.go --function fnamesbridge's reason for
such a function and, when two hot functions share the name, takes the one that can cross; the
functionsgoleaves in the original keepbridge's own reason inrust-anything.json
instead of "not hot in the profiled run";profilereads and judges each hot file once.- Python ports can raise the original's own exception classes:
Err("sqlparse.exceptions.SQLParseError: msg")
importssqlparse.exceptionsand raisesSQLParseError("msg"), and any built-in exception goes by
its name (Err("FileNotFoundError: msg")), not only the twelve the bindings matched before. A
name that is noExceptionsubclass still givesValueErrorwith the whole message.diff
compares exception classes, so a library with its own error class could not match before;
diffnow keeps the original's packages importable (put first onsys.pathasrecorddoes,
not imported), as they are in the app. bridgeno longer refuses a Java, Kotlin or C# file because of an overloaded method. Every
overload of a name is kept in the original (the bindings name each export by its name
alone), but the duplicate-name check counted each kept overload, so the unit failed with "pad
is defined twice ... rename one of them" whileanalyzelisted it as ready. An overload set
kept in the original is now one name in one file, also when--keepnames it; other kept
functions that share a name still fail the check. C# blocked only the later overloads and
offered the first one for porting; it now keeps them all, as Java and Kotlin do, soanalyze
stops counting it as bridgeable, and it tells overloads apart by class:Json.Parseand
Xml.Parsein one file are no longer called overloads (bridgestill refuses them as one name
defined twice). The same overloaded name in two files of one unit is still refused.- Fixes from new contributors, each with a test:
/*inside a//comment no longer hides the Gradle dependencies after it (#222 by @XiaoBinGan).- The second
<script>block of a.vue,.svelteor.astrofile keeps its line numbers (#259 by @XiaoBinGan). - A huge
RUST_ANYTHING_COMMAND_TIMEOUT,RUST_ANYTHING_CASE_TIMEOUTorfuzz --timeis rejected or ignored
instead of panicking (#254, #278 by @XiaoBinGan). - The coverage line never rounds 999 of 1000 lines up to 100% (#283 by @XiaoBinGan).
- The card and
cleanprint values just under a unit boundary in the next unit, such as1.0 ms, not
1000.0 µs(#221, #253 by @XiaoBinGan). - Plans and
recordsay "1 line", "1 unit", "1 case" and "1 export" (#282 by @XiaoBinGan, #284 by @tridev-tej). - A wasm port switches on through its wrapper (#205 by @XiaoBinGan), and a Python float subclass is recorded as its
float value (#203 by @fullfud).
- Docs: every CLI flag and MCP parameter is described, and
--helpno longer calls the tool TypeScript-only
(#228, #236, #250, #258 by @XiaoBinGan); the FAQ names the two timeout variables (#230 by @Kiranpjk); CONTRIBUTING
lists every test file and what CI installs (#232 by @XiaoBinGan, #244 by @MikeFTV); the Spanish, Italian, French
and German READMEs describe the PHP and C# unit bridges (#234, #235, #251, #252, #276, #277 by @XiaoBinGan). - Thanks to @OnurrUgur (#206, #211, #212, #255), @fullfud (#203, #207), @XiaoBinGan, @tridev-tej, @ege-arhan (#224),
@Kiranpjk and @MikeFTV: 32 contributions from 7 people since 3.3.0.
v3.3.0
2026年11月22日
gokeeps the file's other classes in the original as well as its other functions. It kept
only functions, so portingget_close_matchesfromdifflibalso bridgedHtmlDiff, and
diffandgatecould not pass on stubs the task said to leave alone.- Generated Python bindings allow
clippy::too_many_arguments: a function or method with many
parameters madegatefail on rust-anything's ownlib.rs. gotakes the repository root as its first argument, asprofiledoes
(rust-anything go . -- node bench.mjs);--rootstill works.docs/STATUS.md's table of which command covers which language (XiaoBinGan, #201) has rows
for C++, Swift, Dart, PowerShell, CUDA and Assembly (whole apps only, no adapter yet), from
his audit in #200.- PHP units cross into Rust:
bridgeno longer refuses them. A PHP unit's top-level functions
(namespaced or global) with scalar, string, list and assoc-array parameters get a JSON
dispatcher crate andphp/<crate>.php, which redeclares each function in its namespace with the
original parameters and calls the Rust library throughext-ffi.recordruns the original
under a generateddriver.php(aftervendor/autoload.phpwhen present; omitted middle
arguments are passed by name so their defaults apply),buildputs the library beside the
wrapper, anddiffandbenchcall it through the wrapper. Results are compared as PHP values
(int and float, key order,[]and{}as PHP sees them), exceptions by class, printed output
too. Static methods, classes, object-typed parameters or returns, references, variadics,
callables and generators stay in PHP with the reason;shadowand--batchrefuse PHP units.
A barearrayparameter or return now gives way to its phpdoc type (list<float>is
Vec<f64>), and an undocumented one is aserde_json::Value, since it may be a list or a map. - Real-code run: PEAR
XML_Util1.4.5 behind a facade of seven top-level functions, PHP 8.5.12:
1,838/1,838 recorded cases, gate passes; through the JSON bridge every function is slower than
PHP (0.09x geometric mean on a busy machine), asbenchreports
(demo/real-world/php-xml-util-rs,docs/real-world-languages.md). - C# units can be bridged.
bridgetakes the public static methods of a unit's public classes
and generates a JSON dispatcher over the C ABI (Kind::Ffi) pluscs/<Lib>.cs: the same
classes and signatures (defaults kept) under<namespace>.Rust, each calling Rust through
P/Invoke. Arguments may be scalars, strings, arrays, lists, string-keyed dictionaries, nullable
values, and records or plain classes from the project (public auto-properties, no constructor
arguments), which cross as JSON objects. Generic,ref/out/in,params, overloaded and
async methods, anddecimal,char,ulong,object, delegates, tuples and spans stay in
C# with the reason.record,diffandbenchbuild a console driver withdotnet build
from the owning project's sources and package references, call each method by reflection, and
compare results as typed JSON, exceptions by type andConsole.Outoutput. An input that does
not convert to a parameter type (alongfor anint) is not recorded.buildcopies the
library intocs/.shadowand--batchrefuse C# units with the reason. Verified on
Google.Protobuf 3.29.0'sCodedOutputStream.ComputeSize.cs: 16 methods, 2,941/2,941 with two
lone-surrogate strings listed inknown-diffs.jsonl(a RustStringcannot hold them), gate
passes. Calls cost 0.56-3.3 µs, so these 29-87 ns functions are 0.03x as fast through Rust.