-
Notifications
You must be signed in to change notification settings - Fork 41
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
Should we bump the MSRV for OwnedFd? #750
Comments
I updated #538 for this. It now lists OwnedFd as a useful feature for Rust 1.63. I have another "Con" to add: I would no longer be able to build x11rb locally.
Sorry, but I do not buy this argument at the present time. Yes, eventually we'd want to stop using RawFd, but for now it is Rust 1.63 that causes a split. All of the ecosystem right now uses For nix specifically: They are at 1.46 currently. I doubt that they would do such a large jump immediately. I did not find any issue/PR about Edit: Now that issue talks about bumping nix to 1.56. Also, in that issue, I found rust-lang/libs-team#72 which talks about an MSRV policy for libc. That seems to be "bleeding edge" enough to also influence us. |
Looks like https://packages.debian.org/bookworm/rustc has 1.63 now. But it's also possible to use the
|
Oh, wow. I like that idea and went ahead and implemented it. However.... thanks to I pushed my work to https://github.com/psychon/x11rb/tree/owned-fd. |
I've been trying to get |
Closed by #815 |
Rust 1.63.0 was just released, and the
OwnedFd
struct is now stable. Given that it essentially replaces theRawFdContainer
type that we currently use, is it worth it to bump the MSRV to 1.63.0 in order to use it?Pros:
nix
) evolves, it will likely usedBorrowedFd
andOwnedFd
instead ofRawFd
. We don't want an ecosystem splitRawFdContainer
, since it will be on the standard library's back.OwnedFd
is niched, meaning that the layout ofOwnedFd
is optimized.Cons:
RawFd
to anOwnedFd
requiresunsafe
, meaning that, unlessnix
also returnsOwnedFd
from its ancillary message function, we'd have to introduceunsafe
code.x11rb
would not build with the version ofrustc
currently in the Ubuntu package repository.The text was updated successfully, but these errors were encountered: