Skip to content

Conversation

@justus-camp-microsoft
Copy link
Contributor

Part of #1061, migrates support/term off of winapi

Copilot AI review requested due to automatic review settings February 10, 2026 20:43
@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 support/term crate’s Windows console interaction from the legacy winapi crate to windows-sys, aligning with the repo’s effort in #1061 to consolidate Windows API dependencies.

Changes:

  • Replaced winapi Win32 console calls with windows-sys equivalents in enable_vt_and_utf8().
  • Updated support/term’s Windows-only dependency from winapi to windows-sys with the required feature set.
  • Reflected the dependency swap in Cargo.lock.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
support/term/src/lib.rs Switches Win32 console API imports/calls from winapi to windows-sys.
support/term/Cargo.toml Removes winapi dependency and adds windows-sys with Win32_Globalization and Win32_System_Console features.
Cargo.lock Updates resolved deps for term from winapi to windows-sys.

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.

1 participant