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

Consider using rustix instead of libc #224

Open
notgull opened this issue Jul 21, 2024 · 1 comment
Open

Consider using rustix instead of libc #224

notgull opened this issue Jul 21, 2024 · 1 comment

Comments

@notgull
Copy link

notgull commented Jul 21, 2024

rustix is a library that aims to provide a safe system interface over the POSIX API, similar to what this crate accomplishes. However, rustix excels by using Linux's raw system call interface rather than libc, which provides a decent code size and performance benefit. It uses libc on non-Linux platforms and can be optionally configured to swap to a libc-based backend if desired.

I see two options here:

  • Rewrite vmm-sys-util to use rustix instead of libc. This would be a breaking change in this crate, as some parts export libc in their public API.
  • Rewrite higher level crates to use rustix instead of vmm-sys-util.

Which option would be preferred by rust-vmm?

@roypat
Copy link
Collaborator

roypat commented Jul 26, 2024

Hi!
I think either option would have wide-ranging implication for both the rust-vmm ecosystem, as well as everyone who depends on one of our crates, so this is not really a decision any one maintainer can make. Maybe you could send your proposal to the rust-vmm mailing list to reach a wider audience, or bring it up at one of the community sync meetings? [1]

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

No branches or pull requests

2 participants