From ee7ecd34bd43a6a53ff02b4b3db6a997c010adcf Mon Sep 17 00:00:00 2001 From: spearzificial <342299391+spearzificial@users.noreply.github.com> Date: Tue, 20 Oct 2026 18:06:03 +0530 Subject: [PATCH] fix(windows): add the Win32_System_Power feature the crate needs config.rs reads AC line status through GetSystemPowerStatus, but the windows crate feature list never enabled Win32_System_Power, so the Windows target failed to compile with E0432 on that import. The Windows build has been broken this whole time and nothing caught it: GitHub Actions only ran on tag pushes, and the local machine is Linux. The new CI workflow builds both targets on every push, which surfaced it on the first run. Verified by checking the crate's windows:: import paths against the x86_64-pc-windows-gnu target directly. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index a768033..25ba454 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,5 +54,6 @@ windows = { version = "0.58.0", features = [ "Win32_System_Threading", "Win32_System_LibraryLoader", "Win32_System_Console", + "Win32_System_Power", "Win32_UI_Shell", ] }