Skip to content

Conversation

@roypat
Copy link
Member

@roypat roypat commented Jul 31, 2025

Summary of the PR

Some of the rust-vmm crates (such as vmm-sys-util and vm-memory) have
somewhat rudimentary support for MacOS and Windows. While our CI does
not have the means to test these platforms (the rust-vmm CI runners are
linux-only), it can at least do some simple compile testing using cargo check (as long as we do not have any build dependencies that try to
compile native libraries). For this, install the required cargo targets
into the docker container, such that crates that wish to do such compile
testing can specify such additional tests in their custom tests
pipelines.

While we're here, also revert #135, because we ended up not needing the utility.

Requirements

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

  • All commits in this PR have Signed-Off-By trailers (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.

This reverts commit 260df6e.

The test in vmm-sys-util that wished to use this ended up not needing
it, so remove it again to keep the docker container tidy.

Signed-off-by: Patrick Roy <[email protected]>
Some of the rust-vmm crates (such as vmm-sys-util and vm-memory) have
somewhat rudimentary support for MacOS and Windows. While our CI does
not have the means to test these platforms (the rust-vmm CI runners are
linux-only), it can at least do some simple compile testing using `cargo
check` (as long as we do not have any build dependencies that try to
compile native libraries). For this, install the required cargo targets
into the docker container, such that crates that wish to do such compile
testing can specify such additional tests in their custom tests
pipelines.

Signed-off-by: Patrick Roy <[email protected]>
@roypat roypat force-pushed the additional-targets branch from a049046 to 0c7b147 Compare July 31, 2025 09:03
@stefano-garzarella stefano-garzarella enabled auto-merge (rebase) July 31, 2025 09:04
@stefano-garzarella stefano-garzarella merged commit 7bb1c2f into rust-vmm:main Aug 5, 2025
3 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