std reader type for Nikaia callers of a @stream entryOpen and answer this issue on GitHub.
note · opened 2026-11-08 · updated 2026-11-08 · 0 comments
Recorded from #1428 (Q1, option B, left for later). ADR-grammar-2 §6 lists it as open.
For now, a reader is the Rust side’s: parse_<rule>_reader over std::io::Read (D7, as amended 2026-11-08). A Nikaia entry takes String or Bytes. A Nikaia program that wants to stream a large file therefore reads it whole first.
When a Nikaia caller needs that (a tool reading a large file, or std::fs gaining a streaming read), this becomes a decision issue: the reader type in std, how a grammar entry takes it, and how it maps onto the Rust form.