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

Fix issues with new version of zerocopy #113

Merged
merged 4 commits into from
Aug 28, 2023
Merged

Conversation

jinankjain
Copy link
Collaborator

@jinankjain jinankjain commented Aug 28, 2023

Summary of the PR

With new version of zerocopy there are multiple breaking changes that would need fixing on mshv-bindings side.

This PR is a super set of #112

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR are signed (with git commit -s), and the commit
    message has max 60 characters for the summary and max 75 characters for each
    description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

dependabot bot and others added 4 commits August 28, 2023 03:31
Updates the requirements on [zerocopy](https://github.com/google/zerocopy) to permit the latest version.
- [Commits](google/zerocopy@v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: zerocopy
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Update the bindings using the latest MSHV header files.

Signed-off-by: Jinank Jain <[email protected]>
Starting zerocopy version v0.7 it is necessary to explicity include
feature derive otherwise derive FromBytes and AsBytes are not visible.

While doing that there was another breaking change in zerocopy which
requires explicit deriving of FromZeroes on deriving FromBytes.t

Signed-off-by: Jinank Jain <[email protected]>
With recent rust version clippy got strict and founding errors in the
code generated by bindgen. So we need to another filter in the allowlist
to make clippy happy.

Signed-off-by: Jinank Jain <[email protected]>
@liuw liuw merged commit c5a6050 into rust-vmm:main Aug 28, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants