From 533856c0ccba261b84ac6a26388e43fb01c36b56 Mon Sep 17 00:00:00 2001 From: Dilawar Singh Date: Mon, 8 Jul 2024 11:30:18 +0530 Subject: [PATCH] chore: use windows-sys --- Cargo.toml | 2 +- src/windows.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e5ff3fa..872894f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ strict = [] crossbeam = "0.8" num_enum = "0.7.2" [target.'cfg(target_os = "windows")'.dependencies] -windows = { version = "0.58", features = ["Win32_Devices_DeviceAndDriverInstallation", "Win32_Foundation"] } +windows-sys = { version = "0.52", features = ["Win32_Devices_DeviceAndDriverInstallation", "Win32_Foundation"] } [target.'cfg(target_os = "linux")'.dependencies] udev = "0.8" [target.'cfg(target_os = "macos")'.dependencies] diff --git a/src/windows.rs b/src/windows.rs index a131e8e..71f5316 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -4,7 +4,7 @@ use std::{ mem::{size_of, zeroed}, ptr::{null, null_mut}, }; -use windows::{ +use windows_sys::{ w, Win32::Devices::DeviceAndDriverInstallation::{ SetupDiDestroyDeviceInfoList, SetupDiEnumDeviceInfo, SetupDiGetClassDevsW,