From 78a40a3dc5d701915e7e82835f6586cee88da220 Mon Sep 17 00:00:00 2001 From: Luke Curley <432854+kixelated@users.noreply.github.com> Date: Tue, 27 Oct 2026 14:47:03 -0700 Subject: [PATCH] chore(quest): wait on tsrs to type-check in process Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01HRfpGSuhrqBv8bAxEvpXi3 --- quest/m3/README.md | 1 + quest/m3/ts-tsrs.md | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 quest/m3/ts-tsrs.md diff --git a/quest/m3/README.md b/quest/m3/README.md index 55fd3c390..5a8e4f81c 100644 --- a/quest/m3/README.md +++ b/quest/m3/README.md @@ -18,3 +18,4 @@ generic std gap is planned here even when moq never calls it. - [Unsafe code the translator can model](/quest/m3/ts-unsafe.md) - a dependency using only `unsafe` the translator can model translates from source - [The rest of Duration](/quest/m3/ts-duration.md) - compound assignment, float conversions, and `Sum` on a `Duration` translate - [The rest of format specs](/quest/m3/ts-fmt-specs.md) - precision, argument widths, `+`, and the other radixes format as `core::fmt` does +- [Waiting: type-check in process with tsrs](/quest/m3/ts-tsrs.md) - rust2-ts checks bindings through tsrs instead of `tsc` once it is a stable library diff --git a/quest/m3/ts-tsrs.md b/quest/m3/ts-tsrs.md new file mode 100644 index 000000000..4576fb951 --- /dev/null +++ b/quest/m3/ts-tsrs.md @@ -0,0 +1,20 @@ +# [S] Waiting: type-check in process with tsrs + +## Goal + +Condition: [tsrs](https://blog.cloudflare.com/typescript-rust-port/), the Rust port of +TypeScript, publishes a stable release usable as a Rust library. Then rust2-ts +type-checks bindings in process through it, with no `tsc` on `PATH`, failing at the +Rust item's span as today, and measures the translation's time against running `tsc`. +Check: tsrs's releases, and whether it ships a crate (it is moving into Oxc). + +## Plan + +Decided with the maintainer on 2026-10-27, on +[the bindings PR](https://github.com/kixelated/rust2/pull/127): translation runs the +flake's `tsc` 7 for now. tsrs was experimental then, and its reported speed over +TypeScript 7 is the vendor's own. + +- Its checks must agree with `tsc`'s on every fixture, or the switch waits. + +Public API: none, unless the translator drops its `tsc` requirement.