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
```
This commit is contained in:
Kreijstal 2025-05-06 11:17:55 +02:00 committed by GitHub
parent db60951783
commit dc1f06dc5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"] }