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 #13

Merged
merged 1 commit into from
Aug 17, 2022
Merged

Implement I/O safety traits #13

merged 1 commit into from
Aug 17, 2022

Conversation

notgull
Copy link
Member

@notgull notgull commented Aug 17, 2022

This PR adds I/O safety traits introduced in Rust 1.63 using the autocfg system. I added AsFd/Handle and From<OwnedFd/Handle> traits mirroring the existing AsRawFd/Handle and FromRawFd/Handle traits.

See also: sunfishcode/io-lifetimes#38

Copy link
Collaborator

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@taiki-e taiki-e merged commit edccb4d into smol-rs:master Aug 17, 2022
@taiki-e
Copy link
Collaborator

taiki-e commented Aug 17, 2022

Published in 1.6.0.

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

Successfully merging this pull request may close these issues.

2 participants