Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement I/O safety traits #25

Merged
merged 1 commit into from
Aug 21, 2022
Merged

Implement I/O safety traits #25

merged 1 commit into from
Aug 21, 2022

Conversation

notgull
Copy link
Contributor

@notgull notgull commented Aug 17, 2022

This pull request adds a new feature: io_safety. When this feature is enabled, AsFd/Handle, From<OwnedFd/Handle> and Into<OwnedFd/Handle> are implemented for PipeReader and PipeWriter. Note that enabling this feature bumps the MSRV to 1.63.

See also: sunfishcode/io-lifetimes#38

@oconnor663
Copy link
Owner

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?

@oconnor663 oconnor663 merged commit 5fd66fa into oconnor663:master Aug 21, 2022
@notgull
Copy link
Contributor Author

notgull commented Aug 21, 2022

No real rush, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants