[INFO] cloning repository https://github.com/luojia65/usb-z [INFO] running `Command { std: "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", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluojia65%2Fusb-z'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 470eb1c1c0af830aef3e56ece75134a9a25e10d9 [INFO] testing luojia65/usb-z against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluojia65%2Fusb-z" "/workspace/builds/worker-18/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-18/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/luojia65/usb-z on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-18/source/Cargo.toml [INFO] crate git repo https://github.com/luojia65/usb-z already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 35be0d04be073ad698606807020fa6f393f78e0bdeafd7edb68e2407ac44dc89 [INFO] running `Command { std: "docker" "start" "-a" "35be0d04be073ad698606807020fa6f393f78e0bdeafd7edb68e2407ac44dc89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "35be0d04be073ad698606807020fa6f393f78e0bdeafd7edb68e2407ac44dc89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35be0d04be073ad698606807020fa6f393f78e0bdeafd7edb68e2407ac44dc89", kill_on_drop: false }` [INFO] [stdout] 35be0d04be073ad698606807020fa6f393f78e0bdeafd7edb68e2407ac44dc89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d6212d0d320348cb3d25518018f5510ec5e66009b39be393584a63a6a1075082 [INFO] running `Command { std: "docker" "start" "-a" "d6212d0d320348cb3d25518018f5510ec5e66009b39be393584a63a6a1075082", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Compiling usb-z v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/get_device_property.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | shared::{minwindef::*, winerror::*}, [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/get_device_property.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | um::{errhandlingapi::*, setupapi::*}, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/get_device_property.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use std::os::windows::ffi::OsStringExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/host_controller.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | shared::{usbiodef::*, minwindef::*, winerror::*}, [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/host_controller.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/host_controller.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use std::os::windows::ffi::OsStringExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/host_controller.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | use winapi::um::ioapiset::DeviceIoControl; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | shared::{guiddef::GUID, usbiodef::*, minwindef::*, winerror::*}, [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::{shared::minwindef::*, um::winnt::*}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:22:40 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::{shared::minwindef::*, um::winnt::*}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:250:22 [INFO] [stdout] | [INFO] [stdout] 250 | use std::os::windows::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:491:18 [INFO] [stdout] | [INFO] [stdout] 491 | use std::os::windows::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:554:18 [INFO] [stdout] | [INFO] [stdout] 554 | use std::os::windows::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:635:18 [INFO] [stdout] | [INFO] [stdout] 635 | use std::os::windows::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `winapi::STRUCT`, `winapi::ENUM` [INFO] [stdout] --> src/main.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::{STRUCT, ENUM}; [INFO] [stdout] | ^^^^^^ ^^^^ no `ENUM` in the root [INFO] [stdout] | | [INFO] [stdout] | no `STRUCT` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `STRUCT` in `winapi` [INFO] [stdout] --> src/host_controller.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | winapi::STRUCT!{struct USB_HCD_DRIVERKEY_NAME { [INFO] [stdout] | ^^^^^^ could not find `STRUCT` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `STRUCT` in `winapi` [INFO] [stdout] --> src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | winapi::STRUCT!{struct USB_HCD_DRIVERKEY_NAME { [INFO] [stdout] | ^^^^^^ could not find `STRUCT` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `STRUCT` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | STRUCT!{struct USBUSER_POWER_INFO_REQUEST { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `STRUCT` [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | STRUCT!{struct USBUSER_REQUEST_HEADER { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `ENUM` [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | ENUM!{enum USB_USER_ERROR_CODE { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `STRUCT` [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | STRUCT!{struct USB_POWER_INFO { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `ENUM` [INFO] [stdout] --> src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | ENUM!{enum WDMUSB_POWER_STATE { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `STRUCT` [INFO] [stdout] --> src/main.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | STRUCT!{struct USB_ROOT_HUB_NAME { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> src/get_device_property.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | device_info_set: HDEVINFO, // in [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PSP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/get_device_property.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | device_info_data: PSP_DEVINFO_DATA, // in [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/get_device_property.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | property: DWORD, // in [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyW` in this scope [INFO] [stdout] --> src/get_device_property.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | SetupDiGetDeviceRegistryPropertyW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/get_device_property.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/get_device_property.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stdout] --> src/get_device_property.rs:35:57 [INFO] [stdout] | [INFO] [stdout] 35 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/get_device_property.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | if success == FALSE { // unsafe { GetLastError() } == ERROR_INSUFFICIENT_BUFFER [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyW` in this scope [INFO] [stdout] --> src/get_device_property.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | SetupDiGetDeviceRegistryPropertyW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/get_device_property.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/host_controller.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | h_hc_dev: HANDLE, // host controller handle [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stdout] --> src/host_controller.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | as *const SP_DEVICE_INTERFACE_DETAIL_DATA_W; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileW` in this scope [INFO] [stdout] --> src/host_controller.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | CreateFileW( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/host_controller.rs:25:55 [INFO] [stdout] | [INFO] [stdout] 25 | &(&*device_detail_data).DevicePath as LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> src/host_controller.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | GENERIC_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stdout] --> src/host_controller.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | FILE_SHARE_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/host_controller.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/host_controller.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | if h_hc_dev == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 18 | impl HostController { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 37 | let offset = size_of::() / size_of::(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:47:45 [INFO] [stdout] | [INFO] [stdout] 47 | const IOCTL_GET_HCD_DRIVERKEY_NAME: DWORD = 0x220424; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stdout] --> src/host_controller.rs:53:49 [INFO] [stdout] | [INFO] [stdout] 18 | impl HostController { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 53 | let mut driver_key_name = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/host_controller.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/host_controller.rs:60:49 [INFO] [stdout] | [INFO] [stdout] 60 | driver_key_name.as_mut_ptr() as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stdout] --> src/host_controller.rs:61:27 [INFO] [stdout] | [INFO] [stdout] 18 | impl HostController { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 61 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 61 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/host_controller.rs:66:23 [INFO] [stdout] | [INFO] [stdout] 66 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/host_controller.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/host_controller.rs:80:37 [INFO] [stdout] | [INFO] [stdout] 80 | buf.as_mut_ptr() as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/host_controller.rs:86:23 [INFO] [stdout] | [INFO] [stdout] 86 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stdout] --> src/host_controller.rs:92:44 [INFO] [stdout] | [INFO] [stdout] 92 | &(*(buf.as_ptr() as *const USB_HCD_DRIVERKEY_NAME)).DriverKeyName as *const u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stdout] --> src/host_controller.rs:93:37 [INFO] [stdout] | [INFO] [stdout] 18 | impl HostController { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 93 | new_len - size_of::(), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/host_controller.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | unsafe { CloseHandle(self.h_hc_dev) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> src/host_controller.rs:117:22 [INFO] [stdout] | [INFO] [stdout] 117 | device_info_set: HDEVINFO, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 118 | member_index: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsW` in this scope [INFO] [stdout] --> src/host_controller.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | SetupDiGetClassDevsW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GUID_CLASS_USB_HOST_CONTROLLER` in this scope [INFO] [stdout] --> src/host_controller.rs:126:14 [INFO] [stdout] | [INFO] [stdout] 126 | &GUID_CLASS_USB_HOST_CONTROLLER as *const _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stdout] --> src/host_controller.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_DEVICEINTERFACE` in this scope [INFO] [stdout] --> src/host_controller.rs:129:29 [INFO] [stdout] | [INFO] [stdout] 129 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/host_controller.rs:132:27 [INFO] [stdout] | [INFO] [stdout] 132 | if device_info_set == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/host_controller.rs:150:50 [INFO] [stdout] | [INFO] [stdout] 145 | impl Iterator for HostControllers { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 150 | let mut device_info_data = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/host_controller.rs:151:74 [INFO] [stdout] | [INFO] [stdout] 145 | impl Iterator for HostControllers { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 151 | unsafe { device_info_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:151:96 [INFO] [stdout] | [INFO] [stdout] 151 | unsafe { device_info_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stdout] --> src/host_controller.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | SetupDiEnumDeviceInfo( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/host_controller.rs:159:23 [INFO] [stdout] | [INFO] [stdout] 159 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/host_controller.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | if unsafe { GetLastError() } == ERROR_NO_MORE_ITEMS { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_NO_MORE_ITEMS` in this scope [INFO] [stdout] --> src/host_controller.rs:160:45 [INFO] [stdout] | [INFO] [stdout] 160 | if unsafe { GetLastError() } == ERROR_NO_MORE_ITEMS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> src/host_controller.rs:166:55 [INFO] [stdout] | [INFO] [stdout] 145 | impl Iterator for HostControllers { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 166 | let mut device_interface_data = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> src/host_controller.rs:167:79 [INFO] [stdout] | [INFO] [stdout] 145 | impl Iterator for HostControllers { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 167 | unsafe { device_interface_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:167:110 [INFO] [stdout] | [INFO] [stdout] 167 | unsafe { device_interface_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInterfaces` in this scope [INFO] [stdout] --> src/host_controller.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | SetupDiEnumDeviceInterfaces( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GUID_CLASS_USB_HOST_CONTROLLER` in this scope [INFO] [stdout] --> src/host_controller.rs:172:18 [INFO] [stdout] | [INFO] [stdout] 172 | &GUID_CLASS_USB_HOST_CONTROLLER as *const _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/host_controller.rs:177:23 [INFO] [stdout] | [INFO] [stdout] 177 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:181:56 [INFO] [stdout] | [INFO] [stdout] 145 | impl Iterator for HostControllers { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 181 | if self.detail_data_buf.capacity() < size_of::() / size_of::() { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:182:52 [INFO] [stdout] | [INFO] [stdout] 145 | impl Iterator for HostControllers { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 182 | self.detail_data_buf.reserve(size_of::() / size_of::()); // DWORD - len() is enough [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stdout] --> src/host_controller.rs:184:67 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe { &mut *(self.detail_data_buf.as_mut_ptr() as *mut SP_DEVICE_INTERFACE_DETAIL_DATA_W)}.cbSize = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stdout] --> src/host_controller.rs:185:23 [INFO] [stdout] | [INFO] [stdout] 145 | impl Iterator for HostControllers { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 185 | size_of::() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:185:63 [INFO] [stdout] | [INFO] [stdout] 185 | size_of::() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stdout] --> src/host_controller.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:192:73 [INFO] [stdout] | [INFO] [stdout] 192 | (self.detail_data_buf.capacity() * size_of::()) as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/host_controller.rs:197:23 [INFO] [stdout] | [INFO] [stdout] 197 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/host_controller.rs:197:41 [INFO] [stdout] | [INFO] [stdout] 197 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stdout] --> src/host_controller.rs:197:61 [INFO] [stdout] | [INFO] [stdout] 197 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/host_controller.rs:202:23 [INFO] [stdout] | [INFO] [stdout] 202 | if success == FALSE { // && unsafe { GetLastError() } == ERROR_INSUFFICIENT_BUFFER [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stdout] --> src/host_controller.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/host_controller.rs:210:77 [INFO] [stdout] | [INFO] [stdout] 210 | (self.detail_data_buf.capacity() * size_of::()) as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/host_controller.rs:215:27 [INFO] [stdout] | [INFO] [stdout] 215 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiDestroyDeviceInfoList` in this scope [INFO] [stdout] --> src/host_controller.rs:227:18 [INFO] [stdout] | [INFO] [stdout] 227 | unsafe { SetupDiDestroyDeviceInfoList(self.device_info_set) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:24:44 [INFO] [stdout] | [INFO] [stdout] 24 | pub const IOCTL_USB_GET_ROOT_HUB_NAME: DWORD = 0x220408; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:25:45 [INFO] [stdout] | [INFO] [stdout] 25 | pub const IOCTL_GET_HCD_DRIVERKEY_NAME: DWORD = 0x220424; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stdout] --> src/main.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USBUSER_POWER_INFO_REQUEST` in this scope [INFO] [stdout] --> src/main.rs:35:49 [INFO] [stdout] | [INFO] [stdout] 35 | pub type PUSBUSER_POWER_INFO_REQUEST = *mut USBUSER_POWER_INFO_REQUEST; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USBUSER_REQUEST_HEADER` in this scope [INFO] [stdout] --> src/main.rs:42:45 [INFO] [stdout] | [INFO] [stdout] 42 | pub type PUSBUSER_REQUEST_HEADER = *mut USBUSER_REQUEST_HEADER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_POWER_INFO` in this scope [INFO] [stdout] --> src/main.rs:68:37 [INFO] [stdout] | [INFO] [stdout] 68 | pub type PUSB_POWER_INFO = *mut USB_POWER_INFO; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stdout] --> src/main.rs:88:40 [INFO] [stdout] | [INFO] [stdout] 88 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsW` in this scope [INFO] [stdout] --> src/main.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | SetupDiGetClassDevsW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GUID_CLASS_USB_HOST_CONTROLLER` in this scope [INFO] [stdout] --> src/main.rs:99:14 [INFO] [stdout] | [INFO] [stdout] 99 | &GUID_CLASS_USB_HOST_CONTROLLER as *const _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_DEVICEINTERFACE` in this scope [INFO] [stdout] --> src/main.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/main.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | if device_info == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/main.rs:108:46 [INFO] [stdout] | [INFO] [stdout] 92 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 108 | let mut device_info_data = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/main.rs:109:70 [INFO] [stdout] | [INFO] [stdout] 92 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 109 | unsafe { device_info_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:109:92 [INFO] [stdout] | [INFO] [stdout] 109 | unsafe { device_info_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> src/main.rs:110:51 [INFO] [stdout] | [INFO] [stdout] 92 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 110 | let mut device_interface_data = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> src/main.rs:111:75 [INFO] [stdout] | [INFO] [stdout] 92 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 111 | unsafe { device_interface_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:111:106 [INFO] [stdout] | [INFO] [stdout] 111 | unsafe { device_interface_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stdout] --> src/main.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | SetupDiEnumDeviceInfo( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/main.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | ) == TRUE [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInterfaces` in this scope [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | SetupDiEnumDeviceInterfaces( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GUID_CLASS_USB_HOST_CONTROLLER` in this scope [INFO] [stdout] --> src/main.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | &GUID_CLASS_USB_HOST_CONTROLLER as *const _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:130:23 [INFO] [stdout] | [INFO] [stdout] 130 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stdout] --> src/main.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:145:23 [INFO] [stdout] | [INFO] [stdout] 145 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/main.rs:145:41 [INFO] [stdout] | [INFO] [stdout] 145 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stdout] --> src/main.rs:145:61 [INFO] [stdout] | [INFO] [stdout] 145 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stdout] --> src/main.rs:149:36 [INFO] [stdout] | [INFO] [stdout] 149 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stdout] --> src/main.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | HeapAlloc(heap_handle, 0, required_length.assume_init() as usize) as *mut _ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stdout] --> src/main.rs:154:39 [INFO] [stdout] | [INFO] [stdout] 92 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 154 | device_detail_data.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stdout] --> src/main.rs:159:67 [INFO] [stdout] | [INFO] [stdout] 92 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 159 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:159:107 [INFO] [stdout] | [INFO] [stdout] 159 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stdout] --> src/main.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:170:23 [INFO] [stdout] | [INFO] [stdout] 170 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileW` in this scope [INFO] [stdout] --> src/main.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | CreateFileW( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> src/main.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | GENERIC_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stdout] --> src/main.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | FILE_SHARE_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/main.rs:180:17 [INFO] [stdout] | [INFO] [stdout] 180 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/main.rs:185:24 [INFO] [stdout] | [INFO] [stdout] 185 | if h_hc_dev == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/main.rs:190:18 [INFO] [stdout] | [INFO] [stdout] 190 | unsafe { CloseHandle(h_hc_dev) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stdout] --> src/main.rs:191:18 [INFO] [stdout] | [INFO] [stdout] 191 | unsafe { HeapFree(heap_handle, 0, device_detail_data.cast().as_ptr()) }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/main.rs:200:23 [INFO] [stdout] | [INFO] [stdout] 200 | device_info_data: SP_DEVINFO_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GUID_DEVINTERFACE_USB_DEVICE` in this scope [INFO] [stdout] --> src/main.rs:215:52 [INFO] [stdout] | [INFO] [stdout] 215 | let devices = enumerate_all_devices_with_guid(&GUID_DEVINTERFACE_USB_DEVICE as *const _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GUID_DEVINTERFACE_USB_HUB` in this scope [INFO] [stdout] --> src/main.rs:217:49 [INFO] [stdout] | [INFO] [stdout] 217 | let hubs = enumerate_all_devices_with_guid(&GUID_DEVINTERFACE_USB_HUB as *const _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/main.rs:222:49 [INFO] [stdout] | [INFO] [stdout] 222 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsW` in this scope [INFO] [stdout] --> src/main.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | SetupDiGetClassDevsW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stdout] --> src/main.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_DEVICEINTERFACE` in this scope [INFO] [stdout] --> src/main.rs:228:29 [INFO] [stdout] | [INFO] [stdout] 228 | DIGCF_PRESENT | DIGCF_DEVICEINTERFACE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/main.rs:231:23 [INFO] [stdout] | [INFO] [stdout] 231 | if device_info == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/main.rs:237:47 [INFO] [stdout] | [INFO] [stdout] 222 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 237 | let mut device_info_data: MaybeUninit = MaybeUninit::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/main.rs:238:74 [INFO] [stdout] | [INFO] [stdout] 222 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 238 | unsafe { device_info_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:238:96 [INFO] [stdout] | [INFO] [stdout] 238 | unsafe { device_info_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stdout] --> src/main.rs:240:13 [INFO] [stdout] | [INFO] [stdout] 240 | SetupDiEnumDeviceInfo( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:246:23 [INFO] [stdout] | [INFO] [stdout] 246 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_DEVICEDESC` in this scope [INFO] [stdout] --> src/main.rs:263:77 [INFO] [stdout] | [INFO] [stdout] 263 | get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DEVICEDESC, &mut buf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_DRIVER` in this scope [INFO] [stdout] --> src/main.rs:267:77 [INFO] [stdout] | [INFO] [stdout] 267 | get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DRIVER, &mut buf) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> src/main.rs:274:55 [INFO] [stdout] | [INFO] [stdout] 222 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 274 | let mut device_interface_data = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> src/main.rs:275:79 [INFO] [stdout] | [INFO] [stdout] 222 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 275 | unsafe { device_interface_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:275:110 [INFO] [stdout] | [INFO] [stdout] 275 | unsafe { device_interface_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInterfaces` in this scope [INFO] [stdout] --> src/main.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | SetupDiEnumDeviceInterfaces( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:285:23 [INFO] [stdout] | [INFO] [stdout] 285 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stdout] --> src/main.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:300:23 [INFO] [stdout] | [INFO] [stdout] 300 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/main.rs:300:41 [INFO] [stdout] | [INFO] [stdout] 300 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stdout] --> src/main.rs:300:61 [INFO] [stdout] | [INFO] [stdout] 300 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stdout] --> src/main.rs:304:36 [INFO] [stdout] | [INFO] [stdout] 304 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stdout] --> src/main.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | HeapAlloc(heap_handle, 0, required_length.assume_init() as usize) as *mut _ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stdout] --> src/main.rs:309:39 [INFO] [stdout] | [INFO] [stdout] 222 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 309 | device_detail_data.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stdout] --> src/main.rs:314:67 [INFO] [stdout] | [INFO] [stdout] 222 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 314 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:314:107 [INFO] [stdout] | [INFO] [stdout] 314 | unsafe { device_detail_data.as_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailW` in this scope [INFO] [stdout] --> src/main.rs:316:13 [INFO] [stdout] | [INFO] [stdout] 316 | SetupDiGetDeviceInterfaceDetailW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:325:23 [INFO] [stdout] | [INFO] [stdout] 325 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stdout] --> src/main.rs:334:18 [INFO] [stdout] | [INFO] [stdout] 334 | unsafe { HeapFree(heap_handle, 0, device_detail_data.cast().as_ptr())}; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> src/main.rs:351:14 [INFO] [stdout] | [INFO] [stdout] 349 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 350 | driver_name: &std::ffi::OsStr, [INFO] [stdout] 351 | ) -> Option<(HDEVINFO, SP_DEVINFO_DATA)> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/main.rs:351:24 [INFO] [stdout] | [INFO] [stdout] 349 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 350 | driver_name: &std::ffi::OsStr, [INFO] [stdout] 351 | ) -> Option<(HDEVINFO, SP_DEVINFO_DATA)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsW` in this scope [INFO] [stdout] --> src/main.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | SetupDiGetClassDevsW ( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_ALLCLASSES` in this scope [INFO] [stdout] --> src/main.rs:357:13 [INFO] [stdout] | [INFO] [stdout] 357 | DIGCF_ALLCLASSES | DIGCF_PRESENT [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stdout] --> src/main.rs:357:32 [INFO] [stdout] | [INFO] [stdout] 357 | DIGCF_ALLCLASSES | DIGCF_PRESENT [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/main.rs:360:23 [INFO] [stdout] | [INFO] [stdout] 360 | if device_info == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/main.rs:365:47 [INFO] [stdout] | [INFO] [stdout] 349 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 365 | let mut device_info_data: MaybeUninit = MaybeUninit::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/main.rs:366:74 [INFO] [stdout] | [INFO] [stdout] 349 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 366 | unsafe { device_info_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:366:96 [INFO] [stdout] | [INFO] [stdout] 366 | unsafe { device_info_data.assume_init_mut() }.cbSize = size_of::() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stdout] --> src/main.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | SetupDiEnumDeviceInfo( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:375:23 [INFO] [stdout] | [INFO] [stdout] 375 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_DRIVER` in this scope [INFO] [stdout] --> src/main.rs:380:87 [INFO] [stdout] | [INFO] [stdout] 380 | let tmp = get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DRIVER, &mut buf); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiDestroyDeviceInfoList` in this scope [INFO] [stdout] --> src/main.rs:405:14 [INFO] [stdout] | [INFO] [stdout] 405 | unsafe { SetupDiDestroyDeviceInfoList(device_info) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> src/main.rs:421:18 [INFO] [stdout] | [INFO] [stdout] 421 | device_info: HDEVINFO, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PSP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/main.rs:422:23 [INFO] [stdout] | [INFO] [stdout] 422 | device_info_data: PSP_DEVINFO_DATA [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_DEVICEDESC` in this scope [INFO] [stdout] --> src/main.rs:425:74 [INFO] [stdout] | [INFO] [stdout] 425 | let device_desc = get_device_property(device_info, device_info_data, SPDRP_DEVICEDESC, &mut buf).ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_HARDWAREID` in this scope [INFO] [stdout] --> src/main.rs:426:75 [INFO] [stdout] | [INFO] [stdout] 426 | let device_hw_id = get_device_property(device_info, device_info_data, SPDRP_HARDWAREID, &mut buf).ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_SERVICE` in this scope [INFO] [stdout] --> src/main.rs:427:70 [INFO] [stdout] | [INFO] [stdout] 427 | let service = get_device_property(device_info, device_info_data, SPDRP_SERVICE, &mut buf).ok(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_CLASS` in this scope [INFO] [stdout] --> src/main.rs:428:75 [INFO] [stdout] | [INFO] [stdout] 428 | let device_class = get_device_property(device_info, device_info_data, SPDRP_CLASS, &mut buf).ok(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInstanceIdW` in this scope [INFO] [stdout] --> src/main.rs:457:9 [INFO] [stdout] | [INFO] [stdout] 457 | SetupDiGetDeviceInstanceIdW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:465:19 [INFO] [stdout] | [INFO] [stdout] 465 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/main.rs:465:37 [INFO] [stdout] | [INFO] [stdout] 465 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stdout] --> src/main.rs:465:57 [INFO] [stdout] | [INFO] [stdout] 465 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/main.rs:466:71 [INFO] [stdout] | [INFO] [stdout] 466 | println!("SetupDiGetDeviceInstanceIdW Error[1]! {}", unsafe { GetLastError() }); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stdout] --> src/main.rs:469:32 [INFO] [stdout] | [INFO] [stdout] 469 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stdout] --> src/main.rs:471:9 [INFO] [stdout] | [INFO] [stdout] 471 | HeapAlloc(heap_handle, 0, len as usize) as *mut _ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInstanceIdW` in this scope [INFO] [stdout] --> src/main.rs:480:9 [INFO] [stdout] | [INFO] [stdout] 480 | SetupDiGetDeviceInstanceIdW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:488:19 [INFO] [stdout] | [INFO] [stdout] 488 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stdout] --> src/main.rs:497:14 [INFO] [stdout] | [INFO] [stdout] 497 | unsafe { HeapFree(heap_handle, 0, device_id_buf.cast().as_ptr()) }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:506:40 [INFO] [stdout] | [INFO] [stdout] 506 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stdout] --> src/main.rs:508:45 [INFO] [stdout] | [INFO] [stdout] 30 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stdout] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stdout] ... [INFO] [stdout] 508 | let mut driver_key_name = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 508 | let mut driver_key_name = MaybeUninit::::uninit(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 506 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/main.rs:512:9 [INFO] [stdout] | [INFO] [stdout] 512 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stdout] --> src/main.rs:516:23 [INFO] [stdout] | [INFO] [stdout] 30 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stdout] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stdout] ... [INFO] [stdout] 516 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 516 | size_of::() as DWORD, [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 506 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:516:52 [INFO] [stdout] | [INFO] [stdout] 516 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stdout] --> src/main.rs:518:23 [INFO] [stdout] | [INFO] [stdout] 30 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stdout] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stdout] ... [INFO] [stdout] 518 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 518 | size_of::() as DWORD, [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 506 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:518:52 [INFO] [stdout] | [INFO] [stdout] 518 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:523:19 [INFO] [stdout] | [INFO] [stdout] 523 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stdout] --> src/main.rs:528:32 [INFO] [stdout] | [INFO] [stdout] 528 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stdout] --> src/main.rs:530:9 [INFO] [stdout] | [INFO] [stdout] 530 | HeapAlloc(heap_handle, 0, nbytes as usize) as *mut _ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_HCD_DRIVERKEY_NAME` in this scope [INFO] [stdout] --> src/main.rs:533:34 [INFO] [stdout] | [INFO] [stdout] 30 | pub type PUSB_HCD_DRIVERKEY_NAME = *mut USB_HCD_DRIVERKEY_NAME; [INFO] [stdout] | --------------------------------------------------------------- similarly named type alias `PUSB_HCD_DRIVERKEY_NAME` defined here [INFO] [stdout] ... [INFO] [stdout] 533 | driver_key_name_w.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 533 | driver_key_name_w.cast::() [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 506 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/main.rs:539:9 [INFO] [stdout] | [INFO] [stdout] 539 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:550:19 [INFO] [stdout] | [INFO] [stdout] 550 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stdout] --> src/main.rs:557:38 [INFO] [stdout] | [INFO] [stdout] 506 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 557 | (nbytes as usize - size_of::()) / 2 - 2 [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stdout] --> src/main.rs:560:14 [INFO] [stdout] | [INFO] [stdout] 560 | unsafe { HeapFree(heap_handle, 0, driver_key_name_w.cast().as_ptr()) }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:586:32 [INFO] [stdout] | [INFO] [stdout] 586 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stdout] --> src/main.rs:587:42 [INFO] [stdout] | [INFO] [stdout] 88 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stdout] | ----------------------------------------------------- similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stdout] ... [INFO] [stdout] 587 | let mut root_hub_name_w: MaybeUninit = MaybeUninit::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 587 | let mut root_hub_name_w: MaybeUninit = MaybeUninit::uninit(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 586 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/main.rs:591:9 [INFO] [stdout] | [INFO] [stdout] 591 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stdout] --> src/main.rs:597:23 [INFO] [stdout] | [INFO] [stdout] 88 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stdout] | ----------------------------------------------------- similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stdout] ... [INFO] [stdout] 597 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 597 | size_of::() as DWORD, [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 586 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:597:47 [INFO] [stdout] | [INFO] [stdout] 597 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:602:19 [INFO] [stdout] | [INFO] [stdout] 602 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/main.rs:602:37 [INFO] [stdout] | [INFO] [stdout] 602 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stdout] --> src/main.rs:602:57 [INFO] [stdout] | [INFO] [stdout] 602 | if success == FALSE && unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/main.rs:603:59 [INFO] [stdout] | [INFO] [stdout] 603 | println!("DeviceIoControl Error[1]! {}", unsafe { GetLastError() }); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stdout] --> src/main.rs:610:32 [INFO] [stdout] | [INFO] [stdout] 610 | let heap_handle = unsafe { GetProcessHeap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stdout] --> src/main.rs:612:9 [INFO] [stdout] | [INFO] [stdout] 612 | HeapAlloc(heap_handle, 0, n_bytes as usize) as *mut _ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USB_ROOT_HUB_NAME` in this scope [INFO] [stdout] --> src/main.rs:615:32 [INFO] [stdout] | [INFO] [stdout] 88 | pub type PUSB_ROOT_HUB_NAME = *mut USB_ROOT_HUB_NAME; [INFO] [stdout] | ----------------------------------------------------- similarly named type alias `PUSB_ROOT_HUB_NAME` defined here [INFO] [stdout] ... [INFO] [stdout] 615 | root_hub_name_w.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 615 | root_hub_name_w.cast::() [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 586 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/main.rs:621:9 [INFO] [stdout] | [INFO] [stdout] 621 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:632:19 [INFO] [stdout] | [INFO] [stdout] 632 | if success == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:638:39 [INFO] [stdout] | [INFO] [stdout] 586 | fn get_root_hub_name(h_hc_dev: HANDLE) -> std::ffi::OsString { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 638 | (n_bytes as usize - size_of::()) / 2 - 1 [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope [INFO] [stdout] --> src/main.rs:640:14 [INFO] [stdout] | [INFO] [stdout] 640 | unsafe { HeapFree(heap_handle, 0, root_hub_name_w.cast().as_ptr()) }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/get_device_property.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | Ok(OsString::from_wide(buf)) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/host_controller.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | let path = OsString::from_wide(&detail_data_buf[offset..tail]); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/host_controller.rs:97:29 [INFO] [stdout] | [INFO] [stdout] 97 | name: OsString::from_wide(string) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:330:45 [INFO] [stdout] | [INFO] [stdout] 330 | let name_path = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:492:41 [INFO] [stdout] | [INFO] [stdout] 492 | let device_id = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:555:47 [INFO] [stdout] | [INFO] [stdout] 555 | let driver_key_name = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:559:47 [INFO] [stdout] | [INFO] [stdout] 559 | println!("│ (HCD Driver Key Name: {:?})", driver_key_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `OsStr`, the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] = note: required because it appears within the type `OsStr` [INFO] [stdout] note: required by a bound in `ArgumentV1::<'a>::new_debug` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:636:45 [INFO] [stdout] | [INFO] [stdout] 636 | let root_hub_name = std::ffi::OsString::from_wide(unsafe { core::slice::from_raw_parts( [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 232 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `usb-z` due to 233 previous errors [INFO] running `Command { std: "docker" "inspect" "d6212d0d320348cb3d25518018f5510ec5e66009b39be393584a63a6a1075082", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6212d0d320348cb3d25518018f5510ec5e66009b39be393584a63a6a1075082", kill_on_drop: false }` [INFO] [stdout] d6212d0d320348cb3d25518018f5510ec5e66009b39be393584a63a6a1075082