Skip to content

Conversation

@justus-camp-microsoft
Copy link
Contributor

Part of #1061, removes winapi deps from test_igvm_agent_rpc_server

@justus-camp-microsoft justus-camp-microsoft requested a review from a team as a code owner February 10, 2026 20:23
Copilot AI review requested due to automatic review settings February 10, 2026 20:23
@justus-camp-microsoft justus-camp-microsoft requested a review from a team as a code owner February 10, 2026 20:23
@github-actions github-actions bot added the unsafe Related to unsafe code label Feb 10, 2026
@github-actions
Copy link

⚠️ Unsafe Code Detected

This PR modifies files containing unsafe Rust code. Extra scrutiny is required during review.

For more on why we check whole files, instead of just diffs, check out the Rustonomicon

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the test_igvm_agent_rpc_server Windows FFI surface away from the legacy winapi crate to windows-sys, aligning with the repo-wide effort in #1061 to unify Windows API dependencies.

Changes:

  • Replaced winapi-sourced Win32 constants/types (e.g., HRESULT, E_*) with windows-sys equivalents.
  • Removed the winapi dependency from test_igvm_agent_rpc_server.
  • Updated Cargo.lock accordingly.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
vm/devices/get/test_igvm_agent_rpc_server/src/rpc/server.rs Removes winapi BOOL import and replaces with a windows-sys BOOL import (currently from windows_sys::core).
vm/devices/get/test_igvm_agent_rpc_server/src/rpc/handlers.rs Migrates HRESULT/E_* constants from winapi to windows-sys.
vm/devices/get/test_igvm_agent_rpc_server/Cargo.toml Drops winapi dependency; relies on windows-sys features.
Cargo.lock Removes winapi from this crate’s dependency list.

@justus-camp-microsoft justus-camp-microsoft force-pushed the winapi_test_igvm_migration branch 2 times, most recently from 4ae85cb to b3c13ad Compare February 10, 2026 20:42
@github-actions
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

unsafe Related to unsafe code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants