From 89d596cbe21daa27b4e39485ebf2391923f5a619 Mon Sep 17 00:00:00 2001 From: Luke Curley <432854+kixelated@users.noreply.github.com> Date: Sat, 7 Nov 2026 18:55:18 -0800 Subject: [PATCH] quest: smallvec maps into rust2-ts's runtime; fix rust2 links rust2 decided on 2026-11-07 to map smallvec into rust2-ts's runtime under its unsafe policy, so the model subset quest no longer drops it. Point the links at rust2's deleted ts-unsafe epic and ts.md at their replacements. Co-Authored-By: Claude Opus 5.5 --- quest/m5/rs2ts-model-subset.md | 10 +++++++--- quest/m5/rs2ts-wasm2js.md | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/quest/m5/rs2ts-model-subset.md b/quest/m5/rs2ts-model-subset.md index bb21aa98834..f5caadd99cd 100644 --- a/quest/m5/rs2ts-model-subset.md +++ b/quest/m5/rs2ts-model-subset.md @@ -22,11 +22,15 @@ reaches the model; none of these changes behavior. - The internal `unsafe`: `model/group.rs`'s `MaybeUninit` frame ring, `NonNull` in `track.rs` and `track/demand/ranges.rs`, `frame.rs`'s `Segment`, and kio's lock-free `log`. Each is either rewritten in safe Rust for both builds, at measured native cost, or - left for rust2-ts's [unsafe epic](https://github.com/moq-dev/rust2/blob/main/quest/m3/ts-unsafe/README.md) - to translate as is. + left for rust2-ts to translate as is where its + [unsafe policy](https://github.com/moq-dev/rust2/blob/main/quest/m3/README.md) allows, + which refuses any `unsafe` needing a new pointer form. - `group.rs`'s `dyn Expiry` becomes an enum of its two implementations. -- Drop `hashlink`, `slab`, and `smallvec` from the model's path where a std type does the +- Drop `hashlink` and `slab` from the model's path where a std type does the job at measured cost, or bind them to hand-written TS through rust2-ts's config. + `smallvec` stays: rust2-ts maps it into its runtime instead + ([rust2's smallvec quest](https://github.com/moq-dev/rust2/blob/main/quest/m2/ts-model/smallvec.md), + decided with the rust2 maintainer on 2026-11-07). Decided with the rust2 maintainer on 2026-11-07, in [rust2's model epic](https://github.com/moq-dev/rust2/blob/main/quest/m2/ts-model/README.md), diff --git a/quest/m5/rs2ts-wasm2js.md b/quest/m5/rs2ts-wasm2js.md index c61dde4fa87..0f67fe2acf6 100644 --- a/quest/m5/rs2ts-wasm2js.md +++ b/quest/m5/rs2ts-wasm2js.md @@ -56,7 +56,7 @@ Split independently landable prerequisites into quests. Decided with the maintainer on 2026-10-23: an own rustc-driver translator is developed as a parallel research track in [moq-dev/rust2](https://github.com/moq-dev/rust2), starting with moq-net's -codec ([its quest](https://github.com/moq-dev/rust2/blob/main/quest/m2/ts.md)). +codec ([its model epic](https://github.com/moq-dev/rust2/blob/main/quest/m2/ts-model/README.md)). It does not replace wasm2js as the first route here. Once it translates reachable moq-net code, compare it as the source-translator row below; moq consumes it as a pinned flake input, never by vendoring.