From e28123d91c3d3112ba07e1920fd5caaace35a13d Mon Sep 17 00:00:00 2001 From: sxyazi Date: Wed, 30 Apr 2025 23:15:15 +0800 Subject: [PATCH] .. --- Cargo.lock | 1 + yazi-plugin/Cargo.toml | 2 +- yazi-shared/Cargo.toml | 2 +- yazi-term/Cargo.toml | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 858deb54..8a1510de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3579,6 +3579,7 @@ dependencies = [ "libc", "parking_lot", "tracing", + "windows-sys 0.59.0", "yazi-macro", "yazi-shared", ] diff --git a/yazi-plugin/Cargo.toml b/yazi-plugin/Cargo.toml index e655c98d..d4ba8f26 100644 --- a/yazi-plugin/Cargo.toml +++ b/yazi-plugin/Cargo.toml @@ -52,7 +52,7 @@ uzers = { workspace = true } [target."cfg(windows)".dependencies] clipboard-win = "5.4.0" -windows-sys = { version = "0.59.0", features = [ "Win32_Security", "Win32_System_JobObjects", "Win32_System_Threading" ] } +windows-sys = { version = "0.59.0", features = [ "Win32_System_JobObjects" ] } [target.'cfg(target_os = "macos")'.dependencies] crossterm = { workspace = true, features = [ "use-dev-tty", "libc" ] } diff --git a/yazi-shared/Cargo.toml b/yazi-shared/Cargo.toml index 453609e2..18d9aa24 100644 --- a/yazi-shared/Cargo.toml +++ b/yazi-shared/Cargo.toml @@ -29,7 +29,7 @@ libc = { workspace = true } uzers = { workspace = true } [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.59.0", features = [ "Win32_Globalization", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Console", "Win32_System_IO", "Win32_System_Threading", "Win32_UI_Shell" ] } +windows-sys = { version = "0.59.0", features = [ "Win32_UI_Shell" ] } [target.'cfg(target_os = "macos")'.dependencies] crossterm = { workspace = true, features = [ "use-dev-tty", "libc" ] } diff --git a/yazi-term/Cargo.toml b/yazi-term/Cargo.toml index 1f2eb148..69c080ec 100644 --- a/yazi-term/Cargo.toml +++ b/yazi-term/Cargo.toml @@ -25,3 +25,6 @@ libc = { workspace = true } [target.'cfg(target_os = "macos")'.dependencies] crossterm = { workspace = true, features = [ "use-dev-tty", "libc" ] } + +[target.'cfg(windows)'.dependencies] +windows-sys = { version = "0.59.0", features = [ "Win32_Globalization", "Win32_Storage_FileSystem", "Win32_System_IO", "Win32_System_Console", "Win32_System_Threading" ] }