mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
deps: upgrade windows-sys from 0.52 to 0.59 (#7117)
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ httpdate = "1.0"
|
|||||||
once_cell = "1.5.2"
|
once_cell = "1.5.2"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dev-dependencies.windows-sys]
|
[target.'cfg(windows)'.dev-dependencies.windows-sys]
|
||||||
version = "0.52"
|
version = "0.59"
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "chat"
|
name = "chat"
|
||||||
|
|||||||
+2
-2
@@ -123,11 +123,11 @@ libc = { version = "0.2.168" }
|
|||||||
nix = { version = "0.29.0", default-features = false, features = ["aio", "fs", "socket"] }
|
nix = { version = "0.29.0", default-features = false, features = ["aio", "fs", "socket"] }
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies.windows-sys]
|
[target.'cfg(windows)'.dependencies.windows-sys]
|
||||||
version = "0.52"
|
version = "0.59"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
[target.'cfg(windows)'.dev-dependencies.windows-sys]
|
[target.'cfg(windows)'.dev-dependencies.windows-sys]
|
||||||
version = "0.52"
|
version = "0.59"
|
||||||
features = [
|
features = [
|
||||||
"Win32_Foundation",
|
"Win32_Foundation",
|
||||||
"Win32_Security_Authorization",
|
"Win32_Security_Authorization",
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ use std::ffi::OsStr;
|
|||||||
use std::io::{self, Read, Write};
|
use std::io::{self, Read, Write};
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
use std::ptr::null_mut;
|
||||||
use std::task::{Context, Poll};
|
use std::task::{Context, Poll};
|
||||||
|
|
||||||
use crate::io::{AsyncRead, AsyncWrite, Interest, PollEvented, ReadBuf, Ready};
|
use crate::io::{AsyncRead, AsyncWrite, Interest, PollEvented, ReadBuf, Ready};
|
||||||
@@ -2556,7 +2557,7 @@ impl ClientOptions {
|
|||||||
attrs as *mut _,
|
attrs as *mut _,
|
||||||
windows_sys::OPEN_EXISTING,
|
windows_sys::OPEN_EXISTING,
|
||||||
self.get_flags(),
|
self.get_flags(),
|
||||||
0,
|
null_mut(),
|
||||||
);
|
);
|
||||||
|
|
||||||
if h == windows_sys::INVALID_HANDLE_VALUE {
|
if h == windows_sys::INVALID_HANDLE_VALUE {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ use std::os::windows::prelude::{AsRawHandle, IntoRawHandle, OwnedHandle, RawHand
|
|||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
use std::process::Stdio;
|
use std::process::Stdio;
|
||||||
use std::process::{Child as StdChild, ExitStatus};
|
use std::process::{Child as StdChild, ExitStatus};
|
||||||
|
use std::ptr::null_mut;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::task::{Context, Poll};
|
use std::task::{Context, Poll};
|
||||||
|
|
||||||
@@ -119,7 +120,7 @@ impl Future for Child {
|
|||||||
}
|
}
|
||||||
let (tx, rx) = oneshot::channel();
|
let (tx, rx) = oneshot::channel();
|
||||||
let ptr = Box::into_raw(Box::new(Some(tx)));
|
let ptr = Box::into_raw(Box::new(Some(tx)));
|
||||||
let mut wait_object = 0;
|
let mut wait_object = null_mut();
|
||||||
let rc = unsafe {
|
let rc = unsafe {
|
||||||
RegisterWaitForSingleObject(
|
RegisterWaitForSingleObject(
|
||||||
&mut wait_object,
|
&mut wait_object,
|
||||||
|
|||||||
Reference in New Issue
Block a user