Repository navigation
v1.2.0
Numeric code, already compiled code, and the edges of what a recording proves, after the first
round of feedback. rust-anything is now on crates.io: cargo install rust-anything.
- Float tolerance for numeric code:
record --float-tolerance 1e-9(andapp record) lets floats
match when they differ by at most that share of the larger value (absolute below 1);diff,
gate,app replayand the lift use it. Integers, text, structure and formatting (3against
3.0) still match exactly.diff --float-tolerancetries one for a single run. - Noise is sorted by kind: when the original's two runs disagree,
app recordreportsvalues
(now[..]),order(the same lines in another order: replay now compares them in any order
instead of wildcarding them, so a port must still produce exactly those lines) andlines(a
...that matches anything), by case and field. The lift's trycmd test skipsordercases and
says to runapp replayin CI for them. - Regex traps: functions in files that use regexes get extra string inputs where engines
disagree (Turkish i, Kelvin sign, long s, joiners, non-ASCII digits and spaces, line separators,
final sigma), in all six languages. Every string trap now also includes a dotlessı, a
zero-width-joiner emoji and a non-breaking space. - C: recording runs the library in the "C" locale, as a C program has unless it calls
setlocale. It ran in the user's locale (Python sets it at startup), soisspaceand friends
could record a different answer per machine; the new non-breaking-space trap caught it. - The pitch says what passing means: the Rust matches the original's recorded behavior. The
README has a "What it can't catch" section. - Already compiled code:
profileandanalyzeflag Python functions compiled by numba
(@njit,@jit,@vectorize, ...), Cython or JAX, and the hot functions that call them, since
a Rust port gains little speed there. - Go: crates no longer build a static library. Go 1.26.11 and 1.27.4 refuse to link archives
that carry LLVM bitcode, which every Rust static library does; cgo links the shared library
anyway. Runrust-anything refresh <crate>on a Go crate bridged by an earlier version.