`uv run -` should pipe input
See: https://github.com/astral-sh/uv/pull/6481#discussion_r1728931167
Is this performance? I'm not sure. Memory usage at least.
Yeah makes sense, thanks.
I think we can't do this if we want to support tool.uv settings in scripts from stdin... Which we probably should? Since, in that case, we need to extract the settings before we run it.
I think we'd just need to read until we finish the scripts block then stream the rest via a pipe — which is a bit more complicated but seems pretty reasonable. I don't think this is high priority until someone encounters a problem with storing the entire file in memory.
The scripts block can be anywhere in the file, so we'd have to read the whole thing in the negative case :joy:
It can!? What the heck, spec.