[INFO] cloning repository https://github.com/luojia65/usb-z [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/luojia65/usb-z" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluojia65%2Fusb-z"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluojia65%2Fusb-z'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 2a5949b2b1b1dd8e958bbb95b7564ae20f78edc6 [INFO] checking luojia65/usb-z against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluojia65%2Fusb-z" "/workspace/builds/worker-8/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/luojia65/usb-z on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/luojia65/usb-z [INFO] finished tweaking git repo https://github.com/luojia65/usb-z [INFO] tweaked toml for git repo https://github.com/luojia65/usb-z written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/luojia65/usb-z already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] cef4116f4d867839cb2b897597f37fc6bc06f8854bb3c6229f2894b4f5b51f2d [INFO] running `"docker" "start" "-a" "cef4116f4d867839cb2b897597f37fc6bc06f8854bb3c6229f2894b4f5b51f2d"` [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Checking usb-z v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | shared::{guiddef::GUID, usbiodef::*, minwindef::*, winerror::*}, [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | um::{ [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:16:18 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::{shared::minwindef::*, um::winnt::*}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:16:40 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::{shared::minwindef::*, um::winnt::*}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:245:22 [INFO] [stderr] | [INFO] [stderr] 245 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:431:22 [INFO] [stderr] | [INFO] [stderr] 431 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:470:18 [INFO] [stderr] | [INFO] [stderr] 470 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:568:18 [INFO] [stderr] | [INFO] [stderr] 568 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:631:18 [INFO] [stderr] | [INFO] [stderr] 631 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:710:18 [INFO] [stderr] | [INFO] [stderr] 710 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `winapi::STRUCT`, `winapi::ENUM` [INFO] [stderr] --> src/main.rs:17:18 [INFO] [stderr] | [INFO] [stderr] 17 | use winapi::{STRUCT, ENUM}; [INFO] [stderr] | ^^^^^^ ^^^^ no `ENUM` in the root [INFO] [stderr] | | [INFO] [stderr] | no `STRUCT` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `STRUCT` in `winapi` [INFO] [stderr] --> src/main.rs:20:13 [INFO] [stderr] | [INFO] [stderr] 20 | winapi::STRUCT!{struct USB_HCD_DRIVERKEY_NAME { [INFO] [stderr] | ^^^^^^ could not find `STRUCT` in `winapi` [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | STRUCT!{struct USBUSER_POWER_INFO_REQUEST { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | STRUCT!{struct USBUSER_REQUEST_HEADER { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `ENUM` [INFO] [stderr] --> src/main.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | ENUM!{enum USB_USER_ERROR_CODE { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | STRUCT!{struct USB_POWER_INFO { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `ENUM` [INFO] [stderr] --> src/main.rs:63:5 [INFO] [stderr] | [INFO] [stderr] 63 | ENUM!{enum WDMUSB_POWER_STATE { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | STRUCT!{struct USB_ROOT_HUB_NAME { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | shared::{guiddef::GUID, usbiodef::*, minwindef::*, winerror::*}, [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | um::{ [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:16:18 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::{shared::minwindef::*, um::winnt::*}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:16:40 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::{shared::minwindef::*, um::winnt::*}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:245:22 [INFO] [stderr] | [INFO] [stderr] 245 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:431:22 [INFO] [stderr] | [INFO] [stderr] 431 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:470:18 [INFO] [stderr] | [INFO] [stderr] 470 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:568:18 [INFO] [stderr] | [INFO] [stderr] 568 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:631:18 [INFO] [stderr] | [INFO] [stderr] 631 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/main.rs:710:18 [INFO] [stderr] | [INFO] [stderr] 710 | use std::os::windows::prelude::*; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `winapi::STRUCT`, `winapi::ENUM` [INFO] [stderr] --> src/main.rs:17:18 [INFO] [stderr] | [INFO] [stderr] 17 | use winapi::{STRUCT, ENUM}; [INFO] [stderr] | ^^^^^^ ^^^^ no `ENUM` in the root [INFO] [stderr] | | [INFO] [stderr] | no `STRUCT` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `STRUCT` in `winapi` [INFO] [stderr] --> src/main.rs:20:13 [INFO] [stderr] | [INFO] [stderr] 20 | winapi::STRUCT!{struct USB_HCD_DRIVERKEY_NAME { [INFO] [stderr] | ^^^^^^ could not find `STRUCT` in `winapi` [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | STRUCT!{struct USBUSER_POWER_INFO_REQUEST { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | STRUCT!{struct USBUSER_REQUEST_HEADER { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `ENUM` [INFO] [stderr] --> src/main.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | ENUM!{enum USB_USER_ERROR_CODE { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | STRUCT!{struct USB_POWER_INFO { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `ENUM` [INFO] [stderr] --> src/main.rs:63:5 [INFO] [stderr] | [INFO] [stderr] 63 | ENUM!{enum WDMUSB_POWER_STATE { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | STRUCT!{struct USB_ROOT_HUB_NAME { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:18:44 [INFO] [stderr] | [INFO] [stderr] 18 | pub const IOCTL_USB_GET_ROOT_HUB_NAME: DWORD = 0x220408; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:19:45 [INFO] [stderr] | [INFO] [stderr] 19 | pub const IOCTL_GET_HCD_DRIVERKEY_NAME: DWORD = 0x220424; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stderr] --> src/main.rs:24:45 [INFO] [stderr] | [INFO] [stderr] 24 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stderr] | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | help: a type alias with a similar name exists: `PUSB_HCD_DRIVERKEY_NAME` [INFO] [stderr] | similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USBUSER_POWER_INFO_REQUEST` in this scope [INFO] [stderr] --> src/main.rs:29:49 [INFO] [stderr] | [INFO] [stderr] 29 | pub type PUSBUSER_POWER_INFO_REQUEST = *mut USBUSER_POWER_INFO_REQUEST; [INFO] [stderr] | --------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | help: a type alias with a similar name exists: `PUSBUSER_POWER_INFO_REQUEST` [INFO] [stderr] | similarly named type alias `PUSBUSER_POWER_INFO_REQUEST` defined here [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USBUSER_REQUEST_HEADER` in this scope [INFO] [stderr] --> src/main.rs:36:45 [INFO] [stderr] | [INFO] [stderr] 36 | pub type PUSBUSER_REQUEST_HEADER = *mut USBUSER_REQUEST_HEADER; [INFO] [stderr] | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | help: a type alias with a similar name exists: `PUSBUSER_REQUEST_HEADER` [INFO] [stderr] | similarly named type alias `PUSBUSER_REQUEST_HEADER` defined here [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_POWER_INFO` in this scope [INFO] [stderr] --> src/main.rs:62:37 [INFO] [stderr] | [INFO] [stderr] 62 | pub type PUSB_POWER_INFO = *mut USB_POWER_INFO; [INFO] [stderr] | --------------------------------^^^^^^^^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | help: a type alias with a similar name exists: `PUSB_POWER_INFO` [INFO] [stderr] | similarly named type alias `PUSB_POWER_INFO` defined here [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stderr] --> src/main.rs:82:40 [INFO] [stderr] | [INFO] [stderr] 82 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stderr] | -----------------------------------^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | help: a type alias with a similar name exists: `PUSB_ROOT_HUB_NAME` [INFO] [stderr] | similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsW` in this scope [INFO] [stderr] --> src/main.rs:92:9 [INFO] [stderr] | [INFO] [stderr] 92 | SetupDiGetClassDevsW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GUID_CLASS_USB_HOST_CONTROLLER` in this scope [INFO] [stderr] --> src/main.rs:93:14 [INFO] [stderr] | [INFO] [stderr] 93 | &GUID_CLASS_USB_HOST_CONTROLLER as *const _, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stderr] --> src/main.rs:96:13 [INFO] [stderr] | [INFO] [stderr] 96 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_DEVICEINTERFACE` in this scope [INFO] [stderr] --> src/main.rs:96:29 [INFO] [stderr] | [INFO] [stderr] 96 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/main.rs:99:23 [INFO] [stderr] | [INFO] [stderr] 99 | if device_info == INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:102:46 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 102 | let mut device_info_data = MaybeUninit::::uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:103:62 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 103 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:103:84 [INFO] [stderr] | [INFO] [stderr] 103 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stderr] --> src/main.rs:104:51 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 104 | let mut device_interface_data = MaybeUninit::::uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stderr] --> src/main.rs:105:67 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 105 | unsafe { device_interface_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:105:98 [INFO] [stderr] | [INFO] [stderr] 105 | unsafe { device_interface_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stderr] --> src/main.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | SetupDiEnumDeviceInfo( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:112:14 [INFO] [stderr] | [INFO] [stderr] 112 | ) == TRUE [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInterfaces` in this scope [INFO] [stderr] --> src/main.rs:116:13 [INFO] [stderr] | [INFO] [stderr] 116 | SetupDiEnumDeviceInterfaces( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GUID_CLASS_USB_HOST_CONTROLLER` in this scope [INFO] [stderr] --> src/main.rs:119:18 [INFO] [stderr] | [INFO] [stderr] 119 | &GUID_CLASS_USB_HOST_CONTROLLER as *const _, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:124:23 [INFO] [stderr] | [INFO] [stderr] 124 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stderr] --> src/main.rs:130:13 [INFO] [stderr] | [INFO] [stderr] 130 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:139:23 [INFO] [stderr] | [INFO] [stderr] 139 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:139:41 [INFO] [stderr] | [INFO] [stderr] 139 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stderr] --> src/main.rs:139:61 [INFO] [stderr] | [INFO] [stderr] 139 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:143:36 [INFO] [stderr] | [INFO] [stderr] 143 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:145:13 [INFO] [stderr] | [INFO] [stderr] 145 | HeapAlloc(heap_handle, 0, required_length.assume_init() as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stderr] --> src/main.rs:148:39 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 148 | device_detail_data.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stderr] --> src/main.rs:153:67 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 153 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:153:107 [INFO] [stderr] | [INFO] [stderr] 153 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stderr] --> src/main.rs:155:13 [INFO] [stderr] | [INFO] [stderr] 155 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:164:23 [INFO] [stderr] | [INFO] [stderr] 164 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileW` in this scope [INFO] [stderr] --> src/main.rs:169:13 [INFO] [stderr] | [INFO] [stderr] 169 | CreateFileW( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stderr] --> src/main.rs:171:17 [INFO] [stderr] | [INFO] [stderr] 171 | GENERIC_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stderr] --> src/main.rs:172:17 [INFO] [stderr] | [INFO] [stderr] 172 | FILE_SHARE_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stderr] --> src/main.rs:174:17 [INFO] [stderr] | [INFO] [stderr] 174 | OPEN_EXISTING, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/main.rs:179:24 [INFO] [stderr] | [INFO] [stderr] 179 | if h_hc_dev == INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stderr] --> src/main.rs:184:18 [INFO] [stderr] | [INFO] [stderr] 184 | unsafe { CloseHandle(h_hc_dev) }; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:185:18 [INFO] [stderr] | [INFO] [stderr] 185 | unsafe { HeapFree(heap_handle, 0, device_detail_data.cast().as_ptr()) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:195:27 [INFO] [stderr] | [INFO] [stderr] 191 | struct DeviceNode { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 195 | device_info_data: Box, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GUID_DEVINTERFACE_USB_DEVICE` in this scope [INFO] [stderr] --> src/main.rs:210:52 [INFO] [stderr] | [INFO] [stderr] 210 | let devices = enumerate_all_devices_with_guid(&GUID_DEVINTERFACE_USB_DEVICE as *const _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GUID_DEVINTERFACE_USB_HUB` in this scope [INFO] [stderr] --> src/main.rs:212:49 [INFO] [stderr] | [INFO] [stderr] 212 | let hubs = enumerate_all_devices_with_guid(&GUID_DEVINTERFACE_USB_HUB as *const _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GUID` in this scope [INFO] [stderr] --> src/main.rs:217:49 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsW` in this scope [INFO] [stderr] --> src/main.rs:219:9 [INFO] [stderr] | [INFO] [stderr] 219 | SetupDiGetClassDevsW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stderr] --> src/main.rs:223:13 [INFO] [stderr] | [INFO] [stderr] 223 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_DEVICEINTERFACE` in this scope [INFO] [stderr] --> src/main.rs:223:29 [INFO] [stderr] | [INFO] [stderr] 223 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/main.rs:226:23 [INFO] [stderr] | [INFO] [stderr] 226 | if device_info == INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:232:42 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 232 | let mut device_info_data = Box::::new_uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:233:66 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 233 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:233:88 [INFO] [stderr] | [INFO] [stderr] 233 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stderr] --> src/main.rs:235:13 [INFO] [stderr] | [INFO] [stderr] 235 | SetupDiEnumDeviceInfo( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:241:23 [INFO] [stderr] | [INFO] [stderr] 241 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:246:36 [INFO] [stderr] | [INFO] [stderr] 246 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_DEVICEDESC` in this scope [INFO] [stderr] --> src/main.rs:247:96 [INFO] [stderr] | [INFO] [stderr] 247 | let name_device_desc = get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DEVICEDESC) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:253:26 [INFO] [stderr] | [INFO] [stderr] 253 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_DRIVER` in this scope [INFO] [stderr] --> src/main.rs:256:91 [INFO] [stderr] | [INFO] [stderr] 256 | let name_driver = get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DRIVER) [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:262:26 [INFO] [stderr] | [INFO] [stderr] 262 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stderr] --> src/main.rs:270:55 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 270 | let mut device_interface_data = MaybeUninit::::uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stderr] --> src/main.rs:271:71 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 271 | unsafe { device_interface_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:271:102 [INFO] [stderr] | [INFO] [stderr] 271 | unsafe { device_interface_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInterfaces` in this scope [INFO] [stderr] --> src/main.rs:273:13 [INFO] [stderr] | [INFO] [stderr] 273 | SetupDiEnumDeviceInterfaces( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:281:23 [INFO] [stderr] | [INFO] [stderr] 281 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stderr] --> src/main.rs:287:13 [INFO] [stderr] | [INFO] [stderr] 287 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:296:23 [INFO] [stderr] | [INFO] [stderr] 296 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:296:41 [INFO] [stderr] | [INFO] [stderr] 296 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stderr] --> src/main.rs:296:61 [INFO] [stderr] | [INFO] [stderr] 296 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:300:36 [INFO] [stderr] | [INFO] [stderr] 300 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:302:13 [INFO] [stderr] | [INFO] [stderr] 302 | HeapAlloc(heap_handle, 0, required_length.assume_init() as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stderr] --> src/main.rs:305:39 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 305 | device_detail_data.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stderr] --> src/main.rs:310:67 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 310 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:310:107 [INFO] [stderr] | [INFO] [stderr] 310 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stderr] --> src/main.rs:312:13 [INFO] [stderr] | [INFO] [stderr] 312 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:321:23 [INFO] [stderr] | [INFO] [stderr] 321 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:330:18 [INFO] [stderr] | [INFO] [stderr] 330 | unsafe { HeapFree(heap_handle, 0, device_detail_data.cast().as_ptr())}; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stderr] --> src/main.rs:346:22 [INFO] [stderr] | [INFO] [stderr] 346 | device_info_set: HDEVINFO, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PSP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:347:23 [INFO] [stderr] | [INFO] [stderr] 347 | device_info_data: PSP_DEVINFO_DATA, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:348:15 [INFO] [stderr] | [INFO] [stderr] 348 | property: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:349:23 [INFO] [stderr] | [INFO] [stderr] 345 | fn get_device_property( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 349 | ) -> Option<(*mut u8, DWORD)> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyW` in this scope [INFO] [stderr] --> src/main.rs:353:9 [INFO] [stderr] | [INFO] [stderr] 353 | SetupDiGetDeviceRegistryPropertyW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:363:19 [INFO] [stderr] | [INFO] [stderr] 363 | if success != FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:363:37 [INFO] [stderr] | [INFO] [stderr] 363 | if success != FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stderr] --> src/main.rs:363:57 [INFO] [stderr] | [INFO] [stderr] 363 | if success != FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:18:44 [INFO] [stderr] | [INFO] [stderr] 18 | pub const IOCTL_USB_GET_ROOT_HUB_NAME: DWORD = 0x220408; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:19:45 [INFO] [stderr] | [INFO] [stderr] 19 | pub const IOCTL_GET_HCD_DRIVERKEY_NAME: DWORD = 0x220424; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stderr] --> src/main.rs:24:45 [INFO] [stderr] | [INFO] [stderr] 24 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stderr] | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | help: a type alias with a similar name exists: `PUSB_HCD_DRIVERKEY_NAME` [INFO] [stderr] | similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USBUSER_POWER_INFO_REQUEST` in this scope [INFO] [stderr] --> src/main.rs:29:49 [INFO] [stderr] | [INFO] [stderr] 29 | pub type PUSBUSER_POWER_INFO_REQUEST = *mut USBUSER_POWER_INFO_REQUEST; [INFO] [stderr] | --------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | help: a type alias with a similar name exists: `PUSBUSER_POWER_INFO_REQUEST` [INFO] [stderr] | similarly named type alias `PUSBUSER_POWER_INFO_REQUEST` defined here [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USBUSER_REQUEST_HEADER` in this scope [INFO] [stderr] --> src/main.rs:36:45 [INFO] [stderr] | [INFO] [stderr] 36 | pub type PUSBUSER_REQUEST_HEADER = *mut USBUSER_REQUEST_HEADER; [INFO] [stderr] | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | help: a type alias with a similar name exists: `PUSBUSER_REQUEST_HEADER` [INFO] [stderr] | similarly named type alias `PUSBUSER_REQUEST_HEADER` defined here [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_POWER_INFO` in this scope [INFO] [stderr] --> src/main.rs:62:37 [INFO] [stderr] | [INFO] [stderr] 62 | pub type PUSB_POWER_INFO = *mut USB_POWER_INFO; [INFO] [stderr] | --------------------------------^^^^^^^^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | help: a type alias with a similar name exists: `PUSB_POWER_INFO` [INFO] [stderr] | similarly named type alias `PUSB_POWER_INFO` defined here [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stderr] --> src/main.rs:82:40 [INFO] [stderr] | [INFO] [stderr] 82 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stderr] | -----------------------------------^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | help: a type alias with a similar name exists: `PUSB_ROOT_HUB_NAME` [INFO] [stderr] | similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsW` in this scope [INFO] [stderr] --> src/main.rs:92:9 [INFO] [stderr] | [INFO] [stderr] 92 | SetupDiGetClassDevsW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GUID_CLASS_USB_HOST_CONTROLLER` in this scope [INFO] [stderr] --> src/main.rs:93:14 [INFO] [stderr] | [INFO] [stderr] 93 | &GUID_CLASS_USB_HOST_CONTROLLER as *const _, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stderr] --> src/main.rs:96:13 [INFO] [stderr] | [INFO] [stderr] 96 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_DEVICEINTERFACE` in this scope [INFO] [stderr] --> src/main.rs:96:29 [INFO] [stderr] | [INFO] [stderr] 96 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/main.rs:99:23 [INFO] [stderr] | [INFO] [stderr] 99 | if device_info == INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:102:46 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 102 | let mut device_info_data = MaybeUninit::::uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:103:62 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 103 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:103:84 [INFO] [stderr] | [INFO] [stderr] 103 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stderr] --> src/main.rs:104:51 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 104 | let mut device_interface_data = MaybeUninit::::uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stderr] --> src/main.rs:105:67 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 105 | unsafe { device_interface_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:105:98 [INFO] [stderr] | [INFO] [stderr] 105 | unsafe { device_interface_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stderr] --> src/main.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | SetupDiEnumDeviceInfo( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:112:14 [INFO] [stderr] | [INFO] [stderr] 112 | ) == TRUE [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInterfaces` in this scope [INFO] [stderr] --> src/main.rs:116:13 [INFO] [stderr] | [INFO] [stderr] 116 | SetupDiEnumDeviceInterfaces( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GUID_CLASS_USB_HOST_CONTROLLER` in this scope [INFO] [stderr] --> src/main.rs:119:18 [INFO] [stderr] | [INFO] [stderr] 119 | &GUID_CLASS_USB_HOST_CONTROLLER as *const _, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:124:23 [INFO] [stderr] | [INFO] [stderr] 124 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stderr] --> src/main.rs:130:13 [INFO] [stderr] | [INFO] [stderr] 130 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:139:23 [INFO] [stderr] | [INFO] [stderr] 139 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:366:32 [INFO] [stderr] | [INFO] [stderr] 366 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:368:9 [INFO] [stderr] | [INFO] [stderr] 368 | HeapAlloc(heap_handle, 0, required_length.assume_init() as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyW` in this scope [INFO] [stderr] --> src/main.rs:377:9 [INFO] [stderr] | [INFO] [stderr] 377 | SetupDiGetDeviceRegistryPropertyW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:387:19 [INFO] [stderr] | [INFO] [stderr] 387 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:388:77 [INFO] [stderr] | [INFO] [stderr] 388 | println!("SetupDiGetDeviceRegistryPropertyW Error[2]! {}", unsafe { GetLastError() }); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stderr] --> src/main.rs:396:14 [INFO] [stderr] | [INFO] [stderr] 394 | fn driver_name_to_device_inst( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 395 | driver_name: &std::ffi::OsStr, [INFO] [stderr] 396 | ) -> Option<(HDEVINFO, Box)> { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:396:28 [INFO] [stderr] | [INFO] [stderr] 394 | fn driver_name_to_device_inst( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 395 | driver_name: &std::ffi::OsStr, [INFO] [stderr] 396 | ) -> Option<(HDEVINFO, Box)> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsW` in this scope [INFO] [stderr] --> src/main.rs:398:9 [INFO] [stderr] | [INFO] [stderr] 398 | SetupDiGetClassDevsW ( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_ALLCLASSES` in this scope [INFO] [stderr] --> src/main.rs:402:13 [INFO] [stderr] | [INFO] [stderr] 402 | DIGCF_ALLCLASSES | DIGCF_PRESENT [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stderr] --> src/main.rs:402:32 [INFO] [stderr] | [INFO] [stderr] 402 | DIGCF_ALLCLASSES | DIGCF_PRESENT [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/main.rs:405:23 [INFO] [stderr] | [INFO] [stderr] 405 | if device_info == INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:410:42 [INFO] [stderr] | [INFO] [stderr] 394 | fn driver_name_to_device_inst( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 410 | let mut device_info_data = Box::::new_uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:411:66 [INFO] [stderr] | [INFO] [stderr] 394 | fn driver_name_to_device_inst( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 411 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:411:88 [INFO] [stderr] | [INFO] [stderr] 411 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stderr] --> src/main.rs:413:13 [INFO] [stderr] | [INFO] [stderr] 413 | SetupDiEnumDeviceInfo( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:420:23 [INFO] [stderr] | [INFO] [stderr] 420 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_DRIVER` in this scope [INFO] [stderr] --> src/main.rs:424:77 [INFO] [stderr] | [INFO] [stderr] 424 | get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DRIVER) { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiDestroyDeviceInfoList` in this scope [INFO] [stderr] --> src/main.rs:451:14 [INFO] [stderr] | [INFO] [stderr] 451 | unsafe { SetupDiDestroyDeviceInfoList(device_info) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:139:41 [INFO] [stderr] | [INFO] [stderr] 139 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stderr] --> src/main.rs:467:18 [INFO] [stderr] | [INFO] [stderr] 467 | device_info: HDEVINFO, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PSP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:468:23 [INFO] [stderr] | [INFO] [stderr] 468 | device_info_data: PSP_DEVINFO_DATA [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:471:32 [INFO] [stderr] | [INFO] [stderr] 471 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stderr] --> src/main.rs:139:61 [INFO] [stderr] | [INFO] [stderr] 139 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_DEVICEDESC` in this scope [INFO] [stderr] --> src/main.rs:472:74 [INFO] [stderr] | [INFO] [stderr] 472 | let device_desc = get_device_property(device_info, device_info_data, SPDRP_DEVICEDESC) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:478:22 [INFO] [stderr] | [INFO] [stderr] 478 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_HARDWAREID` in this scope [INFO] [stderr] --> src/main.rs:481:75 [INFO] [stderr] | [INFO] [stderr] 481 | let device_hw_id = get_device_property(device_info, device_info_data, SPDRP_HARDWAREID) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:143:36 [INFO] [stderr] | [INFO] [stderr] 143 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:487:22 [INFO] [stderr] | [INFO] [stderr] 487 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_SERVICE` in this scope [INFO] [stderr] --> src/main.rs:490:70 [INFO] [stderr] | [INFO] [stderr] 490 | let service = get_device_property(device_info, device_info_data, SPDRP_SERVICE) [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:145:13 [INFO] [stderr] | [INFO] [stderr] 145 | HeapAlloc(heap_handle, 0, required_length.assume_init() as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stderr] --> src/main.rs:148:39 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 148 | device_detail_data.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:496:22 [INFO] [stderr] | [INFO] [stderr] 496 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_CLASS` in this scope [INFO] [stderr] --> src/main.rs:499:75 [INFO] [stderr] | [INFO] [stderr] 499 | let device_class = get_device_property(device_info, device_info_data, SPDRP_CLASS) [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stderr] --> src/main.rs:153:67 [INFO] [stderr] | [INFO] [stderr] 86 | fn enumerate_host_controllers() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 153 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:505:22 [INFO] [stderr] | [INFO] [stderr] 505 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInstanceIdW` in this scope [INFO] [stderr] --> src/main.rs:534:9 [INFO] [stderr] | [INFO] [stderr] 534 | SetupDiGetDeviceInstanceIdW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:153:107 [INFO] [stderr] | [INFO] [stderr] 153 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:542:19 [INFO] [stderr] | [INFO] [stderr] 542 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:542:37 [INFO] [stderr] | [INFO] [stderr] 542 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stderr] --> src/main.rs:155:13 [INFO] [stderr] | [INFO] [stderr] 155 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stderr] --> src/main.rs:542:57 [INFO] [stderr] | [INFO] [stderr] 542 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:543:71 [INFO] [stderr] | [INFO] [stderr] 543 | println!("SetupDiGetDeviceInstanceIdW Error[1]! {}", unsafe { GetLastError() }); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:164:23 [INFO] [stderr] | [INFO] [stderr] 164 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:546:32 [INFO] [stderr] | [INFO] [stderr] 546 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:548:9 [INFO] [stderr] | [INFO] [stderr] 548 | HeapAlloc(heap_handle, 0, len as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInstanceIdW` in this scope [INFO] [stderr] --> src/main.rs:557:9 [INFO] [stderr] | [INFO] [stderr] 557 | SetupDiGetDeviceInstanceIdW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:565:19 [INFO] [stderr] | [INFO] [stderr] 565 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileW` in this scope [INFO] [stderr] --> src/main.rs:169:13 [INFO] [stderr] | [INFO] [stderr] 169 | CreateFileW( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:574:14 [INFO] [stderr] | [INFO] [stderr] 574 | unsafe { HeapFree(heap_handle, 0, device_id_buf.cast().as_ptr()) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:583:40 [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stderr] --> src/main.rs:171:17 [INFO] [stderr] | [INFO] [stderr] 171 | GENERIC_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stderr] --> src/main.rs:585:45 [INFO] [stderr] | [INFO] [stderr] 24 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stderr] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 585 | let mut driver_key_name = MaybeUninit::::uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 585 | let mut driver_key_name = MaybeUninit::::uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stderr] --> src/main.rs:589:9 [INFO] [stderr] | [INFO] [stderr] 589 | DeviceIoControl( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stderr] --> src/main.rs:172:17 [INFO] [stderr] | [INFO] [stderr] 172 | FILE_SHARE_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stderr] --> src/main.rs:593:23 [INFO] [stderr] | [INFO] [stderr] 24 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stderr] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 593 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 593 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:593:52 [INFO] [stderr] | [INFO] [stderr] 593 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stderr] --> src/main.rs:174:17 [INFO] [stderr] | [INFO] [stderr] 174 | OPEN_EXISTING, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stderr] --> src/main.rs:595:23 [INFO] [stderr] | [INFO] [stderr] 24 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stderr] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 595 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 595 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/main.rs:179:24 [INFO] [stderr] | [INFO] [stderr] 179 | if h_hc_dev == INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:595:52 [INFO] [stderr] | [INFO] [stderr] 595 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:600:19 [INFO] [stderr] | [INFO] [stderr] 600 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:605:32 [INFO] [stderr] | [INFO] [stderr] 605 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stderr] --> src/main.rs:184:18 [INFO] [stderr] | [INFO] [stderr] 184 | unsafe { CloseHandle(h_hc_dev) }; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:607:9 [INFO] [stderr] | [INFO] [stderr] 607 | HeapAlloc(heap_handle, 0, nbytes as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:185:18 [INFO] [stderr] | [INFO] [stderr] 185 | unsafe { HeapFree(heap_handle, 0, device_detail_data.cast().as_ptr()) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stderr] --> src/main.rs:610:34 [INFO] [stderr] | [INFO] [stderr] 24 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stderr] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 610 | driver_key_name_w.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 610 | driver_key_name_w.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stderr] --> src/main.rs:616:9 [INFO] [stderr] | [INFO] [stderr] 616 | DeviceIoControl( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:627:19 [INFO] [stderr] | [INFO] [stderr] 627 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stderr] --> src/main.rs:634:38 [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 634 | (nbytes as usize - size_of::()) / 2 - 2 [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:195:27 [INFO] [stderr] | [INFO] [stderr] 191 | struct DeviceNode { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 195 | device_info_data: Box, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:637:14 [INFO] [stderr] | [INFO] [stderr] 637 | unsafe { HeapFree(heap_handle, 0, driver_key_name_w.cast().as_ptr()) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GUID_DEVINTERFACE_USB_DEVICE` in this scope [INFO] [stderr] --> src/main.rs:210:52 [INFO] [stderr] | [INFO] [stderr] 210 | let devices = enumerate_all_devices_with_guid(&GUID_DEVINTERFACE_USB_DEVICE as *const _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:661:32 [INFO] [stderr] | [INFO] [stderr] 661 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GUID_DEVINTERFACE_USB_HUB` in this scope [INFO] [stderr] --> src/main.rs:212:49 [INFO] [stderr] | [INFO] [stderr] 212 | let hubs = enumerate_all_devices_with_guid(&GUID_DEVINTERFACE_USB_HUB as *const _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GUID` in this scope [INFO] [stderr] --> src/main.rs:217:49 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsW` in this scope [INFO] [stderr] --> src/main.rs:219:9 [INFO] [stderr] | [INFO] [stderr] 219 | SetupDiGetClassDevsW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stderr] --> src/main.rs:223:13 [INFO] [stderr] | [INFO] [stderr] 223 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_DEVICEINTERFACE` in this scope [INFO] [stderr] --> src/main.rs:223:29 [INFO] [stderr] | [INFO] [stderr] 223 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/main.rs:226:23 [INFO] [stderr] | [INFO] [stderr] 226 | if device_info == INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:232:42 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 232 | let mut device_info_data = Box::::new_uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stderr] --> src/main.rs:662:37 [INFO] [stderr] | [INFO] [stderr] 82 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stderr] | ----------------------------------------------------- similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 662 | let mut root_hub_name_w = Box::::new_uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 662 | let mut root_hub_name_w = Box::::new_uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 661 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stderr] --> src/main.rs:666:9 [INFO] [stderr] | [INFO] [stderr] 666 | DeviceIoControl( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:233:66 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 233 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stderr] --> src/main.rs:672:23 [INFO] [stderr] | [INFO] [stderr] 82 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stderr] | ----------------------------------------------------- similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 672 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 672 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 661 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:672:47 [INFO] [stderr] | [INFO] [stderr] 672 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:677:19 [INFO] [stderr] | [INFO] [stderr] 677 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:233:88 [INFO] [stderr] | [INFO] [stderr] 233 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:677:37 [INFO] [stderr] | [INFO] [stderr] 677 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stderr] --> src/main.rs:677:57 [INFO] [stderr] | [INFO] [stderr] 677 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stderr] --> src/main.rs:235:13 [INFO] [stderr] | [INFO] [stderr] 235 | SetupDiEnumDeviceInfo( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:678:59 [INFO] [stderr] | [INFO] [stderr] 678 | println!("DeviceIoControl Error[1]! {}", unsafe { GetLastError() }); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:685:32 [INFO] [stderr] | [INFO] [stderr] 685 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:687:9 [INFO] [stderr] | [INFO] [stderr] 687 | HeapAlloc(heap_handle, 0, n_bytes as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:241:23 [INFO] [stderr] | [INFO] [stderr] 241 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stderr] --> src/main.rs:690:32 [INFO] [stderr] | [INFO] [stderr] 82 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stderr] | ----------------------------------------------------- similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 690 | root_hub_name_w.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 690 | root_hub_name_w.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 661 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:246:36 [INFO] [stderr] | [INFO] [stderr] 246 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stderr] --> src/main.rs:696:9 [INFO] [stderr] | [INFO] [stderr] 696 | DeviceIoControl( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:707:19 [INFO] [stderr] | [INFO] [stderr] 707 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:713:39 [INFO] [stderr] | [INFO] [stderr] 661 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 713 | (n_bytes as usize - size_of::()) / 2 - 1 [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_DEVICEDESC` in this scope [INFO] [stderr] --> src/main.rs:247:96 [INFO] [stderr] | [INFO] [stderr] 247 | let name_device_desc = get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DEVICEDESC) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:715:14 [INFO] [stderr] | [INFO] [stderr] 715 | unsafe { HeapFree(heap_handle, 0, root_hub_name_w.cast().as_ptr()) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:253:26 [INFO] [stderr] | [INFO] [stderr] 253 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_DRIVER` in this scope [INFO] [stderr] --> src/main.rs:256:91 [INFO] [stderr] | [INFO] [stderr] 256 | let name_driver = get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DRIVER) [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:262:26 [INFO] [stderr] | [INFO] [stderr] 262 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stderr] --> src/main.rs:270:55 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 270 | let mut device_interface_data = MaybeUninit::::uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stderr] --> src/main.rs:271:71 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 271 | unsafe { device_interface_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:271:102 [INFO] [stderr] | [INFO] [stderr] 271 | unsafe { device_interface_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInterfaces` in this scope [INFO] [stderr] --> src/main.rs:273:13 [INFO] [stderr] | [INFO] [stderr] 273 | SetupDiEnumDeviceInterfaces( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:281:23 [INFO] [stderr] | [INFO] [stderr] 281 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stderr] --> src/main.rs:287:13 [INFO] [stderr] | [INFO] [stderr] 287 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:296:23 [INFO] [stderr] | [INFO] [stderr] 296 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:296:41 [INFO] [stderr] | [INFO] [stderr] 296 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stderr] --> src/main.rs:296:61 [INFO] [stderr] | [INFO] [stderr] 296 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:300:36 [INFO] [stderr] | [INFO] [stderr] 300 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:302:13 [INFO] [stderr] | [INFO] [stderr] 302 | HeapAlloc(heap_handle, 0, required_length.assume_init() as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stderr] --> src/main.rs:305:39 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 305 | device_detail_data.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stderr] --> src/main.rs:310:67 [INFO] [stderr] | [INFO] [stderr] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 310 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:310:107 [INFO] [stderr] | [INFO] [stderr] 310 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stderr] --> src/main.rs:312:13 [INFO] [stderr] | [INFO] [stderr] 312 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:321:23 [INFO] [stderr] | [INFO] [stderr] 321 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:330:18 [INFO] [stderr] | [INFO] [stderr] 330 | unsafe { HeapFree(heap_handle, 0, device_detail_data.cast().as_ptr())}; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stderr] --> src/main.rs:346:22 [INFO] [stderr] | [INFO] [stderr] 346 | device_info_set: HDEVINFO, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PSP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:347:23 [INFO] [stderr] | [INFO] [stderr] 347 | device_info_data: PSP_DEVINFO_DATA, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:348:15 [INFO] [stderr] | [INFO] [stderr] 348 | property: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:349:23 [INFO] [stderr] | [INFO] [stderr] 345 | fn get_device_property( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 349 | ) -> Option<(*mut u8, DWORD)> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyW` in this scope [INFO] [stderr] --> src/main.rs:353:9 [INFO] [stderr] | [INFO] [stderr] 353 | SetupDiGetDeviceRegistryPropertyW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:363:19 [INFO] [stderr] | [INFO] [stderr] 363 | if success != FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:363:37 [INFO] [stderr] | [INFO] [stderr] 363 | if success != FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stderr] --> src/main.rs:363:57 [INFO] [stderr] | [INFO] [stderr] 363 | if success != FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:366:32 [INFO] [stderr] | [INFO] [stderr] 366 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:368:9 [INFO] [stderr] | [INFO] [stderr] 368 | HeapAlloc(heap_handle, 0, required_length.assume_init() as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyW` in this scope [INFO] [stderr] --> src/main.rs:377:9 [INFO] [stderr] | [INFO] [stderr] 377 | SetupDiGetDeviceRegistryPropertyW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:387:19 [INFO] [stderr] | [INFO] [stderr] 387 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:388:77 [INFO] [stderr] | [INFO] [stderr] 388 | println!("SetupDiGetDeviceRegistryPropertyW Error[2]! {}", unsafe { GetLastError() }); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stderr] --> src/main.rs:396:14 [INFO] [stderr] | [INFO] [stderr] 394 | fn driver_name_to_device_inst( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 395 | driver_name: &std::ffi::OsStr, [INFO] [stderr] 396 | ) -> Option<(HDEVINFO, Box)> { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:396:28 [INFO] [stderr] | [INFO] [stderr] 394 | fn driver_name_to_device_inst( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 395 | driver_name: &std::ffi::OsStr, [INFO] [stderr] 396 | ) -> Option<(HDEVINFO, Box)> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsW` in this scope [INFO] [stderr] --> src/main.rs:398:9 [INFO] [stderr] | [INFO] [stderr] 398 | SetupDiGetClassDevsW ( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_ALLCLASSES` in this scope [INFO] [stderr] --> src/main.rs:402:13 [INFO] [stderr] | [INFO] [stderr] 402 | DIGCF_ALLCLASSES | DIGCF_PRESENT [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stderr] --> src/main.rs:402:32 [INFO] [stderr] | [INFO] [stderr] 402 | DIGCF_ALLCLASSES | DIGCF_PRESENT [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/main.rs:405:23 [INFO] [stderr] | [INFO] [stderr] 405 | if device_info == INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:410:42 [INFO] [stderr] | [INFO] [stderr] 394 | fn driver_name_to_device_inst( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 410 | let mut device_info_data = Box::::new_uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:411:66 [INFO] [stderr] | [INFO] [stderr] 394 | fn driver_name_to_device_inst( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 411 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:411:88 [INFO] [stderr] | [INFO] [stderr] 411 | unsafe { device_info_data.get_mut() }.cbSize = size_of::() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stderr] --> src/main.rs:413:13 [INFO] [stderr] | [INFO] [stderr] 413 | SetupDiEnumDeviceInfo( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:420:23 [INFO] [stderr] | [INFO] [stderr] 420 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_DRIVER` in this scope [INFO] [stderr] --> src/main.rs:424:77 [INFO] [stderr] | [INFO] [stderr] 424 | get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DRIVER) { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiDestroyDeviceInfoList` in this scope [INFO] [stderr] --> src/main.rs:451:14 [INFO] [stderr] | [INFO] [stderr] 451 | unsafe { SetupDiDestroyDeviceInfoList(device_info) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stderr] --> src/main.rs:467:18 [INFO] [stderr] | [INFO] [stderr] 467 | device_info: HDEVINFO, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PSP_DEVINFO_DATA` in this scope [INFO] [stderr] --> src/main.rs:468:23 [INFO] [stderr] | [INFO] [stderr] 468 | device_info_data: PSP_DEVINFO_DATA [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:471:32 [INFO] [stderr] | [INFO] [stderr] 471 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_DEVICEDESC` in this scope [INFO] [stderr] --> src/main.rs:472:74 [INFO] [stderr] | [INFO] [stderr] 472 | let device_desc = get_device_property(device_info, device_info_data, SPDRP_DEVICEDESC) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:478:22 [INFO] [stderr] | [INFO] [stderr] 478 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_HARDWAREID` in this scope [INFO] [stderr] --> src/main.rs:481:75 [INFO] [stderr] | [INFO] [stderr] 481 | let device_hw_id = get_device_property(device_info, device_info_data, SPDRP_HARDWAREID) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:487:22 [INFO] [stderr] | [INFO] [stderr] 487 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_SERVICE` in this scope [INFO] [stderr] --> src/main.rs:490:70 [INFO] [stderr] | [INFO] [stderr] 490 | let service = get_device_property(device_info, device_info_data, SPDRP_SERVICE) [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:496:22 [INFO] [stderr] | [INFO] [stderr] 496 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SPDRP_CLASS` in this scope [INFO] [stderr] --> src/main.rs:499:75 [INFO] [stderr] | [INFO] [stderr] 499 | let device_class = get_device_property(device_info, device_info_data, SPDRP_CLASS) [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:505:22 [INFO] [stderr] | [INFO] [stderr] 505 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInstanceIdW` in this scope [INFO] [stderr] --> src/main.rs:534:9 [INFO] [stderr] | [INFO] [stderr] 534 | SetupDiGetDeviceInstanceIdW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:542:19 [INFO] [stderr] | [INFO] [stderr] 542 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:542:37 [INFO] [stderr] | [INFO] [stderr] 542 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stderr] --> src/main.rs:542:57 [INFO] [stderr] | [INFO] [stderr] 542 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:543:71 [INFO] [stderr] | [INFO] [stderr] 543 | println!("SetupDiGetDeviceInstanceIdW Error[1]! {}", unsafe { GetLastError() }); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:546:32 [INFO] [stderr] | [INFO] [stderr] 546 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:548:9 [INFO] [stderr] | [INFO] [stderr] 548 | HeapAlloc(heap_handle, 0, len as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInstanceIdW` in this scope [INFO] [stderr] --> src/main.rs:557:9 [INFO] [stderr] | [INFO] [stderr] 557 | SetupDiGetDeviceInstanceIdW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:565:19 [INFO] [stderr] | [INFO] [stderr] 565 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:574:14 [INFO] [stderr] | [INFO] [stderr] 574 | unsafe { HeapFree(heap_handle, 0, device_id_buf.cast().as_ptr()) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:583:40 [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stderr] --> src/main.rs:585:45 [INFO] [stderr] | [INFO] [stderr] 24 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stderr] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 585 | let mut driver_key_name = MaybeUninit::::uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 585 | let mut driver_key_name = MaybeUninit::::uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stderr] --> src/main.rs:589:9 [INFO] [stderr] | [INFO] [stderr] 589 | DeviceIoControl( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stderr] --> src/main.rs:593:23 [INFO] [stderr] | [INFO] [stderr] 24 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stderr] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 593 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 593 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:593:52 [INFO] [stderr] | [INFO] [stderr] 593 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stderr] --> src/main.rs:595:23 [INFO] [stderr] | [INFO] [stderr] 24 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stderr] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 595 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 595 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:595:52 [INFO] [stderr] | [INFO] [stderr] 595 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:600:19 [INFO] [stderr] | [INFO] [stderr] 600 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:605:32 [INFO] [stderr] | [INFO] [stderr] 605 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:607:9 [INFO] [stderr] | [INFO] [stderr] 607 | HeapAlloc(heap_handle, 0, nbytes as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stderr] --> src/main.rs:610:34 [INFO] [stderr] | [INFO] [stderr] 24 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stderr] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 610 | driver_key_name_w.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 610 | driver_key_name_w.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stderr] --> src/main.rs:616:9 [INFO] [stderr] | [INFO] [stderr] 616 | DeviceIoControl( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:627:19 [INFO] [stderr] | [INFO] [stderr] 627 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stderr] --> src/main.rs:634:38 [INFO] [stderr] | [INFO] [stderr] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 634 | (nbytes as usize - size_of::()) / 2 - 2 [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:637:14 [INFO] [stderr] | [INFO] [stderr] 637 | unsafe { HeapFree(heap_handle, 0, driver_key_name_w.cast().as_ptr()) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:661:32 [INFO] [stderr] | [INFO] [stderr] 661 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stderr] --> src/main.rs:662:37 [INFO] [stderr] | [INFO] [stderr] 82 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stderr] | ----------------------------------------------------- similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 662 | let mut root_hub_name_w = Box::::new_uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 662 | let mut root_hub_name_w = Box::::new_uninit(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 661 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stderr] --> src/main.rs:666:9 [INFO] [stderr] | [INFO] [stderr] 666 | DeviceIoControl( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stderr] --> src/main.rs:672:23 [INFO] [stderr] | [INFO] [stderr] 82 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stderr] | ----------------------------------------------------- similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 672 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 672 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 661 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:672:47 [INFO] [stderr] | [INFO] [stderr] 672 | size_of::() as DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:677:19 [INFO] [stderr] | [INFO] [stderr] 677 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:677:37 [INFO] [stderr] | [INFO] [stderr] 677 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stderr] --> src/main.rs:677:57 [INFO] [stderr] | [INFO] [stderr] 677 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:678:59 [INFO] [stderr] | [INFO] [stderr] 678 | println!("DeviceIoControl Error[1]! {}", unsafe { GetLastError() }); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stderr] --> src/main.rs:685:32 [INFO] [stderr] | [INFO] [stderr] 685 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stderr] --> src/main.rs:687:9 [INFO] [stderr] | [INFO] [stderr] 687 | HeapAlloc(heap_handle, 0, n_bytes as usize) as *mut _ [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stderr] --> src/main.rs:690:32 [INFO] [stderr] | [INFO] [stderr] 82 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stderr] | ----------------------------------------------------- similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stderr] ... [INFO] [stderr] 690 | root_hub_name_w.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a type alias with a similar name exists [INFO] [stderr] | [INFO] [stderr] 690 | root_hub_name_w.cast::() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 661 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stderr] --> src/main.rs:696:9 [INFO] [stderr] | [INFO] [stderr] 696 | DeviceIoControl( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:707:19 [INFO] [stderr] | [INFO] [stderr] 707 | if success == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:713:39 [INFO] [stderr] | [INFO] [stderr] 661 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 713 | (n_bytes as usize - size_of::()) / 2 - 1 [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stderr] --> src/main.rs:715:14 [INFO] [stderr] | [INFO] [stderr] 715 | unsafe { HeapFree(heap_handle, 0, root_hub_name_w.cast().as_ptr()) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:249:47 [INFO] [stderr] | [INFO] [stderr] 249 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:258:47 [INFO] [stderr] | [INFO] [stderr] 258 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:326:45 [INFO] [stderr] | [INFO] [stderr] 326 | let name_path = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:432:46 [INFO] [stderr] | [INFO] [stderr] 432 | let buf_string = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:474:43 [INFO] [stderr] | [INFO] [stderr] 474 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:483:43 [INFO] [stderr] | [INFO] [stderr] 483 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:492:43 [INFO] [stderr] | [INFO] [stderr] 492 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:249:47 [INFO] [stderr] | [INFO] [stderr] 249 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:501:43 [INFO] [stderr] | [INFO] [stderr] 501 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:258:47 [INFO] [stderr] | [INFO] [stderr] 258 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:326:45 [INFO] [stderr] | [INFO] [stderr] 326 | let name_path = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:569:41 [INFO] [stderr] | [INFO] [stderr] 569 | let device_id = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:632:47 [INFO] [stderr] | [INFO] [stderr] 632 | let driver_key_name = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stderr] --> src/main.rs:636:5 [INFO] [stderr] | [INFO] [stderr] 636 | println!("│ HCD Driver Key Name: {:?}", driver_key_name); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: within `std::ffi::OsStr`, the trait `std::marker::Sized` is not implemented for `[u8]` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: required because it appears within the type `std::ffi::OsStr` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:711:45 [INFO] [stderr] | [INFO] [stderr] 711 | let root_hub_name = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:432:46 [INFO] [stderr] | [INFO] [stderr] 432 | let buf_string = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:474:43 [INFO] [stderr] | [INFO] [stderr] 474 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:483:43 [INFO] [stderr] | [INFO] [stderr] 483 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error: aborting due to 184 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0412, E0425, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:492:43 [INFO] [stderr] | [INFO] [stderr] 492 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:501:43 [INFO] [stderr] | [INFO] [stderr] 501 | let ans = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:569:41 [INFO] [stderr] | [INFO] [stderr] 569 | let device_id = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:632:47 [INFO] [stderr] | [INFO] [stderr] 632 | let driver_key_name = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error: could not compile `usb-z`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stderr] --> src/main.rs:636:5 [INFO] [stderr] | [INFO] [stderr] 636 | println!("│ HCD Driver Key Name: {:?}", driver_key_name); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: within `std::ffi::OsStr`, the trait `std::marker::Sized` is not implemented for `[u8]` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: required because it appears within the type `std::ffi::OsStr` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/main.rs:711:45 [INFO] [stderr] | [INFO] [stderr] 711 | let root_hub_name = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error: aborting due to 184 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0412, E0425, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: could not compile `usb-z`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "cef4116f4d867839cb2b897597f37fc6bc06f8854bb3c6229f2894b4f5b51f2d"` [INFO] running `"docker" "rm" "-f" "cef4116f4d867839cb2b897597f37fc6bc06f8854bb3c6229f2894b4f5b51f2d"` [INFO] [stdout] cef4116f4d867839cb2b897597f37fc6bc06f8854bb3c6229f2894b4f5b51f2d