A redditor just pointed out to me that Rust’s stdio primivites are buffering internally and there seem to be no way around it.
I have wrote some tools made to pass a lot of data through stdio, and now I see that they are not zero-copy, because I’ve overlooked
Stdin. I’d like to correct that, but if I go with
from_raw_fd, then I’m going to loose portability.
- Is anyone aware of crates that implement unbuffered io for Rust across all supported platforms.
- Would it make sense add unbuffered
RawStdout,… to stdlib?