- 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.