Closed notgull closed 2 years ago
Awesome, thank you. It's nice to see that this is all safe code. Eventually (once we feel happy bumping the MSRV to 1.63) it'll probably make sense to switch PipeReader
and PipeWriter
from containing a File
to containing an OwnedFd
.
Would you like to get this released to crates.io sooner rather than later, or no rush?
No real rush, thanks!
This pull request adds a new feature:
io_safety
. When this feature is enabled,AsFd/Handle
,From<OwnedFd/Handle>
andInto<OwnedFd/Handle>
are implemented forPipeReader
andPipeWriter
. Note that enabling this feature bumps the MSRV to 1.63.See also: sunfishcode/io-lifetimes#38