Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update to windows-sys 0.42.0 #1624

Merged
merged 1 commit into from Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Expand Up @@ -49,11 +49,11 @@ log = "0.4.8"
libc = "0.2.121"

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.36"
version = "0.42"
features = [
"Win32_Storage_FileSystem", # Enables NtCreateFile
"Win32_Foundation", # Basic types eg HANDLE
"Win32_Networking_WinSock", # winsock2 types/functions
"Win32_Storage_FileSystem", # Enables NtCreateFile
"Win32_System_IO", # IO types like OVERLAPPED etc
"Win32_System_WindowsProgramming", # General future used for various types/funcs
]
Expand Down
6 changes: 3 additions & 3 deletions tests/util/mod.rs
Expand Up @@ -264,10 +264,10 @@ pub fn set_linger_zero(socket: &TcpStream) {
pub fn set_linger_zero(socket: &TcpStream) {
use std::os::windows::io::AsRawSocket;
use windows_sys::Win32::Networking::WinSock::{
linger, setsockopt, SOCKET_ERROR, SOL_SOCKET, SO_LINGER,
setsockopt, LINGER, SOCKET_ERROR, SOL_SOCKET, SO_LINGER,
};

let mut val = linger {
let mut val = LINGER {
l_onoff: 1,
l_linger: 0,
};
Expand All @@ -278,7 +278,7 @@ pub fn set_linger_zero(socket: &TcpStream) {
SOL_SOCKET as i32,
SO_LINGER as i32,
&mut val as *mut _ as *mut _,
size_of::<linger>() as _,
size_of::<LINGER>() as _,
)
};
assert!(
Expand Down