-
Notifications
You must be signed in to change notification settings - Fork 13
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
Derive zerocopy::{AsBytes, FromBytes} for all structs #65
Comments
@smmalis37 I've gone through |
This looks interesting rust-lang/rust-bindgen#2059 but there is no CLI option exposed in bindgen. |
There's also rust-lang/rust-bindgen#2168 |
For generating bindings we need to have the support to derive these fields. We can not manually do it every time. |
It looks like the issue on bindgen's side is progressing. I'm going to leave this issue open for now. |
It would be very helpful, and allow us to reduce the amount of unsafe code we have, if more structs could derive AsBytes and FromBytes, specifically those in https://github.com/rust-vmm/mshv/blob/main/mshv-bindings/src/bindings.rs and https://github.com/rust-vmm/mshv/blob/main/mshv-bindings/src/regs.rs.
The text was updated successfully, but these errors were encountered: