Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 4afd54a

Browse files
build: expand windows version range to include 0.59
1 parent f6ccb41 commit 4afd54a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static_assertions = { version = "1.1", default-features = false }
2727

2828
[target.'cfg(windows)'.dependencies]
2929
# Don't increase beyond what Firefox is currently using: https://searchfox.org/mozilla-central/source/Cargo.lock
30-
windows = { version = "0.58", features = [
30+
windows = { version = ">=0.58,<0.60", features = [
3131
"Win32_Foundation",
3232
"Win32_NetworkManagement_IpHelper",
3333
"Win32_NetworkManagement_Ndis",

src/windows.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ use std::{
1111
ptr, slice,
1212
};
1313

14-
use crate::default_err;
15-
16-
use windows::{
17-
Win32::Foundation::NO_ERROR,
18-
Win32::NetworkManagement::{
14+
use windows::Win32::{
15+
Foundation::NO_ERROR,
16+
NetworkManagement::{
1917
IpHelper::{
2018
if_indextoname, FreeMibTable, GetBestInterfaceEx, GetIpInterfaceTable,
2119
MIB_IPINTERFACE_ROW, MIB_IPINTERFACE_TABLE,
2220
},
2321
Ndis::IF_MAX_STRING_SIZE,
2422
},
25-
Win32::Networking::WinSock::{
23+
Networking::WinSock::{
2624
AF_INET, AF_INET6, IN6_ADDR, IN6_ADDR_0, IN_ADDR, IN_ADDR_0, SOCKADDR, SOCKADDR_IN,
2725
SOCKADDR_IN6, SOCKADDR_INET,
2826
},
2927
};
3028

29+
use crate::default_err;
30+
3131
struct MibTablePtr(*mut MIB_IPINTERFACE_TABLE);
3232

3333
impl MibTablePtr {

0 commit comments

Comments
 (0)