-
Notifications
You must be signed in to change notification settings - Fork 51
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
Use rustix instead of nix #147
Comments
With bytecodealliance/rustix#848 and Smithay/wayland-rs#658, we should be able to eliminate nix in the Wayland backend and its dependencies. But yeah, there's still SYSV shm. Such an annoying API... |
It may be possible to rewrite the X backend to use POSIX shared memory as well as |
Yeah. That's an extension added by Xorg that may not be available everywhere, but I'm not sure it's likely to be an issue anywhere softbuffer would be used. This doesn't apply with network transparency anyway, and you're not likely to be running anything other than Xorg otherwise, or an extremely old version of Xorg. |
Actually Though like Smithay, the kms backend here uses |
Partly addresses #147, though it would still be desirable to have a good safe API for SYSV shm in Rustix. But using `libc` directly for now is no worse than using the `nix::libc` re-export, so we don't lose anything.
Partly addresses #147, though it would still be desirable to have a good safe API for SYSV shm in Rustix. But using `libc` directly for now is no worse than using the `nix::libc` re-export, so we don't lose anything.
I think this can be considered resolved now. |
This would allow us to use safer, direct system calls instead of
libc
.Blocked on bytecodealliance/rustix#797
The text was updated successfully, but these errors were encountered: