Closed notgull closed 10 months ago
It should be possible without a breaking change. Basically:
self.as_raw_fd()
.BorrowedFd::borrow_raw(my_fd)
.BorrowedFd
into the rustix function (it implements AsFd
).I'd like to consider reworking the extension trait anyways, but that's a larger change.
So yes, I'd be interested if you can make it a non-breaking change. Otherwise, I'll still consider it, but I'd probably want to take the chance to make other braking changes at the same time.
rustix
is a safe wrapper around raw system calls on Linux andlibc
on other platforms. It supports I/O safety out of the box, and using raw system calls makes it faster thanlibc
in many cases. It would be nice if this crate could userustix
.I can write a PR for this; however since this crate uses
AsRawFd
instead ofAsFd
it would be a breaking change. Let me know if this is desired/