From dc1f06dc5d2fab008b5a7e45400344f53d781b13 Mon Sep 17 00:00:00 2001 From: Kreijstal Date: Tue, 6 May 2025 11:17:55 +0200 Subject: [PATCH] compiling yazi-cli for windows ``` error[E0432]: unresolved import `windows_sys::Win32::Storage::FileSystem::CreateFileW` --> yazi-term\src\tty\handle.rs:134:139 | 134 | ... Storage::FileSystem::{CreateFileW, FILE_SHARE_READ, FILE_SHARE_WRITE, OPEN_EXISTING}, System::Console::Get... | ^^^^^^^^^^^ no `CreateFileW` in `Win32::Storage::FileSystem` For more information about this error, try `rustc --explain E0432`. error: could not compile `yazi-term` (lib) due to 1 previous error ``` --- yazi-term/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yazi-term/Cargo.toml b/yazi-term/Cargo.toml index 69c080ec..7fb7fb63 100644 --- a/yazi-term/Cargo.toml +++ b/yazi-term/Cargo.toml @@ -27,4 +27,4 @@ libc = { workspace = true } 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" ] } +windows-sys = { version = "0.59.0", features = [ "Win32_Globalization", "Win32_Storage_FileSystem", "Win32_System_IO", "Win32_System_Console", "Win32_System_Threading","Win32_Foundation", "Win32_Security"] }