[dep] update dep

This commit is contained in:
2025-03-24 09:55:21 +08:00
parent 8157c63b2e
commit 7a99672317
6 changed files with 152 additions and 28 deletions

View File

@@ -54,6 +54,9 @@ pub fn get_powerplan() -> Result<i32, String> {
#[cfg(target_os = "windows")]
let powerplan = powerplan::get_powerplan()?;
#[cfg(not(target_os = "windows"))]
let powerplan = powerplan::PowerPlanMode::Other.into();
Ok(powerplan)
}

View File

@@ -1,7 +1,8 @@
use std::collections::HashMap;
use std::process::Command;
use std::os::windows::process::CommandExt;
#[cfg(windows)]
use std::os::windows::process::CommandExt;
const CREATE_NO_WINDOW: u32 = 0x08000000;
// const DETACHED_PROCESS: u32 = 0x00000008;