rust-vmm / vmm-sys-util

Helpers and utilities used by multiple rust-vmm components and VMMs
BSD 3-Clause "New" or "Revised" License
78 stars 64 forks source link

Consider using rustix instead of libc #224

Open notgull opened 1 month ago

notgull commented 1 month ago

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:

Which option would be preferred by rust-vmm?

roypat commented 1 month ago

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]