github erkamyaman/rust-anything v5.1.0

27 minutes ago

Highlights

  • gate checks more than the recording. A new held-out check runs fresh and perturbed inputs through the original and the port, so a port that only matches the recorded cases fails. New spawns and runtime checks refuse a port that runs the original or another program.
  • rust-anything selftest plants wrong ports and tampered recordings and checks that diff and gate refuse 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 fail gate until accepted on purpose (--accept-*, --allow-large-tolerance).
  • Side effects are recorded. For TS/JS, Python, Ruby, Go, Java, Kotlin, PHP and C#, record keeps the arguments after a call and what it printed, and diff compares both.
  • Sandbox and audit log. record --sandbox and fuzz --sandbox run the original with no network and its repository read-only. Every switch, wire, lift and gate is appended to rust/audit.jsonl, readable with rust-anything log.
  • Swift units: analyze, bridge, record, diff and gate for top-level functions.
  • New apps in Rust, spec first: rust-anything new, spec approve and spec check.
  • Steadier --json: a schema, time and port version on every result, saved last results, errors as JSON.
  • record and fuzz reach inside encoded strings: values inside JSON and base64 JSON arguments are varied.
  • Faster analyze on 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 analyze on monorepos and large Python repos, pathlib.Path and dataclass arguments for Python, secrets kept out of cases.jsonl, two Python units in one front door, stricter MCP argument checks, and many fixes across bridge, record, shadow, setup, gate, lift and the docs.
  • @XiaoBinGan: Swift UInt/UInt64 as u64, 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.py install_requires, Ruby =begin comments, diff, profile and bench output fixes, and the repository folder in the rules and map hints.
  • @puretechteam: unit tests for PowerShell, C#, PHP, the harnesses, codegen, HTTP and effects.
  • @jay23606: fuzz restores cases.jsonl after an interrupted round, doctor checks Android build-tools, kwargs on TS/JS refused, and clearer MCP and --pin-clock wording.
  • @aaas72: cli-help.json regenerated, map --json says c-abi, package --dry-run and bench wording, and docs fixes.
  • @OnurrUgur: C#, Python and Ruby dependency readers, map marks never-recorded ports, kwargs checks, and fuzz --keep refuses secrets.
  • @Layfate: the TS union-with-arrow fix in bridge, and unit tests across enable, the app, the harnesses, Kotlin and HTTP.
  • @abiramcodes: the Tamil translation, disable/enable/rules fixes, charset decoding for mail, Gemfile brace groups, and app record/app replay fixes.
  • @SPD-RYUK: clearer unsafe, shadow, go and Android messages.
  • @RubenPanero: unit tests for the card, PHP and Java helpers.
  • @MannXo: fuzz --sandbox and Ruby extend self modules.
  • @Ilhan-separ: mail recorded with --effects smtp decodes 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) do read 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).

Don't miss a new rust-anything release

NewReleases is sending notifications on new releases.