Skip to content

fix: add Win32_Security feature to windows-sys dependency#2627

Merged
sylvestre merged 1 commit intomozilla:mainfrom
JulienCote:fix/windows-sys-security-feature
Mar 5, 2026
Merged

fix: add Win32_Security feature to windows-sys dependency#2627
sylvestre merged 1 commit intomozilla:mainfrom
JulienCote:fix/windows-sys-security-feature

Conversation

@JulienCote
Copy link

CreateProcessW requires the Win32_Security feature because its signature includes SECURITY_ATTRIBUTES. Without this feature, cargo install sccache fails on Windows with:

error[E0432]: unresolved import windows_sys::Win32::System::Threading::CreateProcessW

Fixes #2484
Fixes #2508

@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.40%. Comparing base (0efe890) to head (c43a832).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2627      +/-   ##
==========================================
- Coverage   73.40%   73.40%   -0.01%     
==========================================
  Files          68       68              
  Lines       37219    37219              
==========================================
- Hits        27320    27319       -1     
- Misses       9899     9900       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JulienCote JulienCote force-pushed the fix/windows-sys-security-feature branch from a26246a to 4c7a5e3 Compare March 4, 2026 16:11
CreateProcessW requires the Win32_Security feature because its
signature includes SECURITY_ATTRIBUTES. Without this feature,
`cargo install sccache` fails on Windows with:

  error[E0432]: unresolved import `windows_sys::Win32::System::Threading::CreateProcessW`

Fixes mozilla#2484
Fixes mozilla#2508
@sylvestre sylvestre force-pushed the fix/windows-sys-security-feature branch from 4c7a5e3 to c43a832 Compare March 5, 2026 21:55
@sylvestre sylvestre merged commit 67e1118 into mozilla:main Mar 5, 2026
50 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

3 participants