Skip to content

Commit

Permalink
replace winapi with windows-sys
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Aug 1, 2024
1 parent 07ff855 commit c124bc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ edition = "2021"
libc = "0.2.42"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.5", features = ["synchapi", "winbase", "winerror", "winnt"] }
windows-sys = { version = "0.59.0", features = ["Win32_Foundation", "Win32_System_Threading"] }
6 changes: 2 additions & 4 deletions src/sys/windows.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
use std::io;
use std::os::windows::io::{AsRawHandle, RawHandle};
use std::process::Child;
use winapi::shared::winerror::WAIT_TIMEOUT;
use winapi::um::synchapi::WaitForSingleObject;
use winapi::um::winbase::{INFINITE, WAIT_OBJECT_0};
use winapi::um::winnt::HANDLE;
use windows_sys::Win32::Foundation::{HANDLE, WAIT_OBJECT_0, WAIT_TIMEOUT};
use windows_sys::Win32::System::Threading::{WaitForSingleObject, INFINITE};

pub struct Handle(RawHandle);

Expand Down

0 comments on commit c124bc2

Please sign in to comment.