Skip to content

Commit

Permalink
Merge pull request #290 from mrobinson/switch-from-winapi-to-windows
Browse files Browse the repository at this point in the history
Switch from `winapi` to `windows_sys`
  • Loading branch information
Manishearth committed Jun 17, 2024
2 parents 02c4a78 + 96b2759 commit f02a10d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ libc = "0.2"

[target."cfg(windows)".dependencies]
miow = "0.5"
winapi = { version = "0.3", features = ["winerror"] }
windows-sys = { version = "0.52", features = ["Win32"] }

[features]
tmp = ["tempfile"]
Expand Down
5 changes: 3 additions & 2 deletions src/read2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ mod imp {
#[cfg(windows)]
mod imp {
extern crate miow;
extern crate winapi;
extern crate windows_sys;

use std::io;
use std::os::windows::prelude::*;
Expand All @@ -116,7 +116,8 @@ mod imp {
use self::miow::iocp::{CompletionPort, CompletionStatus};
use self::miow::pipe::NamedPipe;
use self::miow::Overlapped;
use self::winapi::shared::winerror::ERROR_BROKEN_PIPE;

use self::windows_sys::Win32::Foundation::ERROR_BROKEN_PIPE;

struct Pipe<'a> {
dst: &'a mut Vec<u8>,
Expand Down

0 comments on commit f02a10d

Please sign in to comment.