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 AsFd and bidirectional conversion to/from OwnedFd #202

Merged
merged 1 commit into from Jun 7, 2023

Conversation

joshtriplett
Copy link
Contributor

In particular, this makes it possible to get a BorrowedFd from an
Inotify, which allows integration with polling mechanisms that don't
use RawFd. This will be needed to work with the next version of
async-io.

@hannobraun
Copy link
Owner

Thank you for the pull request, @joshtriplett! This looks good, but CI fails because our MSRV is too low. I've opened #203.

I'll probably find some time to address this soon, but if anyone's reading this while I still haven't, feel free to jump in with a pull request! This PR is blocked until then.

This will be needed to work with the next version of async-io.

I assume this means you need me to publish a new release, once this is merged?

@hannobraun hannobraun added the status: blocked The issue is currently blocked by something outside this project. label Jun 7, 2023
@joshtriplett
Copy link
Contributor Author

@hannobraun Right, this PR itself will raise the MSRV as well, for AsFd/BorrowedFd/OwnedFd.

In particular, this makes it possible to get a `BorrowedFd` from an
`Inotify`, which allows integration with polling mechanisms that don't
use `RawFd`. This will be needed to work with the next version of
`async-io`.
@joshtriplett
Copy link
Contributor Author

joshtriplett commented Jun 7, 2023

@hannobraun I've updated this to also fix the MSRV and CI. 1.63, which has the I/O Safety types stabilized, will ship in the Debian stable release shipping in a few days.

And yes, I'd really appreciate a release with this change, once merged.

@hannobraun hannobraun removed the status: blocked The issue is currently blocked by something outside this project. label Jun 7, 2023
@hannobraun
Copy link
Owner

Thank you, @joshtriplett! It would have been a bit nicer go have the MSRV bump in a separate pull request, so I don't get confused later when writing the changelog. But this works too!

And yes, I'd really appreciate a release with this change, once merged.

Understood. I'll try to get it out today.

@hannobraun hannobraun merged commit 3d2988d into hannobraun:master Jun 7, 2023
2 checks passed
@hannobraun
Copy link
Owner

New version is out: #204, https://crates.io/crates/inotify/0.10.1

@joshtriplett joshtriplett deleted the io-safety branch June 7, 2023 19:25
@joshtriplett
Copy link
Contributor Author

@hannobraun Thank you!

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.

None yet

2 participants