[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] 2a5949b2b1b1dd8e958bbb95b7564ae20f78edc6 [INFO] checking luojia65/usb-z against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluojia65%2Fusb-z" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/luojia65/usb-z on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", 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-11/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd98c761d414b249c35fd2c9ef8f726cfc8e67464a3cc3dadb4a76a49b402aad [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cd98c761d414b249c35fd2c9ef8f726cfc8e67464a3cc3dadb4a76a49b402aad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd98c761d414b249c35fd2c9ef8f726cfc8e67464a3cc3dadb4a76a49b402aad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd98c761d414b249c35fd2c9ef8f726cfc8e67464a3cc3dadb4a76a49b402aad", kill_on_drop: false }` [INFO] [stdout] cd98c761d414b249c35fd2c9ef8f726cfc8e67464a3cc3dadb4a76a49b402aad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=forbid" "-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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b53a449e19bb8fc1d024951d1d4e59b97ed8e55da7767cb0387a3303e34d2bc6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b53a449e19bb8fc1d024951d1d4e59b97ed8e55da7767cb0387a3303e34d2bc6", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Checking usb-z v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | 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:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | 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:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | 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:16:40 [INFO] [stdout] | [INFO] [stdout] 16 | 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:245:22 [INFO] [stdout] | [INFO] [stdout] 245 | 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:431:22 [INFO] [stdout] | [INFO] [stdout] 431 | 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:470:18 [INFO] [stdout] | [INFO] [stdout] 470 | 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:568:18 [INFO] [stdout] | [INFO] [stdout] 568 | 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:631:18 [INFO] [stdout] | [INFO] [stdout] 631 | 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:710:18 [INFO] [stdout] | [INFO] [stdout] 710 | 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:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | 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/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | 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:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | 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:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | 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:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | 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:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | 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:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | 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:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | 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[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | 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:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | 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:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | 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:16:40 [INFO] [stdout] | [INFO] [stdout] 16 | 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:245:22 [INFO] [stdout] | [INFO] [stdout] 245 | 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:431:22 [INFO] [stdout] | [INFO] [stdout] 431 | 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:470:18 [INFO] [stdout] | [INFO] [stdout] 470 | 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:568:18 [INFO] [stdout] | [INFO] [stdout] 568 | 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:631:18 [INFO] [stdout] | [INFO] [stdout] 631 | 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:710:18 [INFO] [stdout] | [INFO] [stdout] 710 | 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:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | 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/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | 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:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | 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:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | 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:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | 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:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | 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:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | 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:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | 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 `DWORD` in this scope [INFO] [stdout] --> src/main.rs:18:44 [INFO] [stdout] | [INFO] [stdout] 18 | 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:19:45 [INFO] [stdout] | [INFO] [stdout] 19 | 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:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | 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:29:49 [INFO] [stdout] | [INFO] [stdout] 29 | 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:36:45 [INFO] [stdout] | [INFO] [stdout] 36 | 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:62:37 [INFO] [stdout] | [INFO] [stdout] 62 | 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:82:40 [INFO] [stdout] | [INFO] [stdout] 82 | 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:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | 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:93:14 [INFO] [stdout] | [INFO] [stdout] 93 | &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:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | 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:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | 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:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | 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:102:46 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 102 | 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:103:62 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 103 | unsafe { device_info_data.get_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:103:84 [INFO] [stdout] | [INFO] [stdout] 103 | unsafe { device_info_data.get_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:104:51 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 104 | 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:105:67 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 105 | unsafe { device_interface_data.get_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:105:98 [INFO] [stdout] | [INFO] [stdout] 105 | unsafe { device_interface_data.get_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:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | 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:112:14 [INFO] [stdout] | [INFO] [stdout] 112 | ) == 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:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | 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:119:18 [INFO] [stdout] | [INFO] [stdout] 119 | &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:124:23 [INFO] [stdout] | [INFO] [stdout] 124 | 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:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | 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:139:23 [INFO] [stdout] | [INFO] [stdout] 139 | 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:139:41 [INFO] [stdout] | [INFO] [stdout] 139 | 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:139:61 [INFO] [stdout] | [INFO] [stdout] 139 | 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:143:36 [INFO] [stdout] | [INFO] [stdout] 143 | 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:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | 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:148:39 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 148 | 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:153:67 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 153 | 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:153:107 [INFO] [stdout] | [INFO] [stdout] 153 | 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:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | 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:164:23 [INFO] [stdout] | [INFO] [stdout] 164 | 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:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | 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:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | 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:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | 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:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | 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:179:24 [INFO] [stdout] | [INFO] [stdout] 179 | 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:184:18 [INFO] [stdout] | [INFO] [stdout] 184 | 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:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | 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:195:27 [INFO] [stdout] | [INFO] [stdout] 191 | struct DeviceNode { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 195 | device_info_data: Box, [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:210:52 [INFO] [stdout] | [INFO] [stdout] 210 | 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:212:49 [INFO] [stdout] | [INFO] [stdout] 212 | 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:217:49 [INFO] [stdout] | [INFO] [stdout] 217 | 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:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | 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:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | 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:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | 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:226:23 [INFO] [stdout] | [INFO] [stdout] 226 | 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:232:42 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 232 | let mut device_info_data = Box::::new_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:233:66 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 233 | unsafe { device_info_data.get_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:233:88 [INFO] [stdout] | [INFO] [stdout] 233 | unsafe { device_info_data.get_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:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | 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:241:23 [INFO] [stdout] | [INFO] [stdout] 241 | 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:246:36 [INFO] [stdout] | [INFO] [stdout] 246 | let heap_handle = unsafe { GetProcessHeap() }; [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:247:96 [INFO] [stdout] | [INFO] [stdout] 247 | let name_device_desc = get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DEVICEDESC) [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:253:26 [INFO] [stdout] | [INFO] [stdout] 253 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [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:256:91 [INFO] [stdout] | [INFO] [stdout] 256 | let name_driver = get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DRIVER) [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:262:26 [INFO] [stdout] | [INFO] [stdout] 262 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [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:270:55 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 270 | 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:271:71 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 271 | unsafe { device_interface_data.get_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:271:102 [INFO] [stdout] | [INFO] [stdout] 271 | unsafe { device_interface_data.get_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:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | 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:281:23 [INFO] [stdout] | [INFO] [stdout] 281 | 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:287:13 [INFO] [stdout] | [INFO] [stdout] 287 | 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:296:23 [INFO] [stdout] | [INFO] [stdout] 296 | 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:296:41 [INFO] [stdout] | [INFO] [stdout] 296 | 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:296:61 [INFO] [stdout] | [INFO] [stdout] 296 | 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:300:36 [INFO] [stdout] | [INFO] [stdout] 300 | 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:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | 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:305:39 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 305 | 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:310:67 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 310 | 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:310:107 [INFO] [stdout] | [INFO] [stdout] 310 | 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:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | 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:321:23 [INFO] [stdout] | [INFO] [stdout] 321 | 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:330:18 [INFO] [stdout] | [INFO] [stdout] 330 | 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:346:22 [INFO] [stdout] | [INFO] [stdout] 346 | device_info_set: 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:347:23 [INFO] [stdout] | [INFO] [stdout] 347 | device_info_data: PSP_DEVINFO_DATA, [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:348:15 [INFO] [stdout] | [INFO] [stdout] 348 | property: 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:349:23 [INFO] [stdout] | [INFO] [stdout] 345 | fn get_device_property( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 349 | ) -> Option<(*mut u8, DWORD)> { [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/main.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | 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/main.rs:363:19 [INFO] [stdout] | [INFO] [stdout] 363 | 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:363:37 [INFO] [stdout] | [INFO] [stdout] 363 | 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:363:57 [INFO] [stdout] | [INFO] [stdout] 363 | 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:366:32 [INFO] [stdout] | [INFO] [stdout] 366 | 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:368:9 [INFO] [stdout] | [INFO] [stdout] 368 | 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[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyW` in this scope [INFO] [stdout] --> src/main.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | 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/main.rs:387:19 [INFO] [stdout] | [INFO] [stdout] 387 | 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/main.rs:388:77 [INFO] [stdout] | [INFO] [stdout] 388 | println!("SetupDiGetDeviceRegistryPropertyW Error[2]! {}", unsafe { GetLastError() }); [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:396:14 [INFO] [stdout] | [INFO] [stdout] 394 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 395 | driver_name: &std::ffi::OsStr, [INFO] [stdout] 396 | ) -> Option<(HDEVINFO, Box)> { [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:396:28 [INFO] [stdout] | [INFO] [stdout] 394 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 395 | driver_name: &std::ffi::OsStr, [INFO] [stdout] 396 | ) -> Option<(HDEVINFO, Box)> { [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:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | 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:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | 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:402:32 [INFO] [stdout] | [INFO] [stdout] 402 | 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:405:23 [INFO] [stdout] | [INFO] [stdout] 405 | 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:410:42 [INFO] [stdout] | [INFO] [stdout] 394 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 410 | let mut device_info_data = Box::::new_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:411:66 [INFO] [stdout] | [INFO] [stdout] 394 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 411 | unsafe { device_info_data.get_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:411:88 [INFO] [stdout] | [INFO] [stdout] 411 | unsafe { device_info_data.get_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:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | 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:420:23 [INFO] [stdout] | [INFO] [stdout] 420 | 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:424:77 [INFO] [stdout] | [INFO] [stdout] 424 | get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DRIVER) { [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:451:14 [INFO] [stdout] | [INFO] [stdout] 451 | 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:467:18 [INFO] [stdout] | [INFO] [stdout] 467 | 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:468:23 [INFO] [stdout] | [INFO] [stdout] 468 | device_info_data: PSP_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 `GetProcessHeap` in this scope [INFO] [stdout] --> src/main.rs:471:32 [INFO] [stdout] | [INFO] [stdout] 471 | let heap_handle = unsafe { GetProcessHeap() }; [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:472:74 [INFO] [stdout] | [INFO] [stdout] 472 | let device_desc = get_device_property(device_info, device_info_data, SPDRP_DEVICEDESC) [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:478:22 [INFO] [stdout] | [INFO] [stdout] 478 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [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:481:75 [INFO] [stdout] | [INFO] [stdout] 481 | let device_hw_id = get_device_property(device_info, device_info_data, SPDRP_HARDWAREID) [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:487:22 [INFO] [stdout] | [INFO] [stdout] 487 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [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:490:70 [INFO] [stdout] | [INFO] [stdout] 490 | let service = get_device_property(device_info, device_info_data, SPDRP_SERVICE) [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:496:22 [INFO] [stdout] | [INFO] [stdout] 496 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [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:499:75 [INFO] [stdout] | [INFO] [stdout] 499 | let device_class = get_device_property(device_info, device_info_data, SPDRP_CLASS) [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:505:22 [INFO] [stdout] | [INFO] [stdout] 505 | unsafe { HeapFree(heap_handle, 0, property_buffer 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:534:9 [INFO] [stdout] | [INFO] [stdout] 534 | 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:542:19 [INFO] [stdout] | [INFO] [stdout] 542 | 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:542:37 [INFO] [stdout] | [INFO] [stdout] 542 | 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:542:57 [INFO] [stdout] | [INFO] [stdout] 542 | 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:543:71 [INFO] [stdout] | [INFO] [stdout] 543 | 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:546:32 [INFO] [stdout] | [INFO] [stdout] 546 | 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:548:9 [INFO] [stdout] | [INFO] [stdout] 548 | 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:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | 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:565:19 [INFO] [stdout] | [INFO] [stdout] 565 | 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:574:14 [INFO] [stdout] | [INFO] [stdout] 574 | 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:583:40 [INFO] [stdout] | [INFO] [stdout] 583 | 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:585:45 [INFO] [stdout] | [INFO] [stdout] 24 | 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] 585 | 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] 585 | let mut driver_key_name = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 583 | 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:589:9 [INFO] [stdout] | [INFO] [stdout] 589 | 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:593:23 [INFO] [stdout] | [INFO] [stdout] 24 | 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] 593 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 593 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 583 | 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:18:44 [INFO] [stdout] | [INFO] [stdout] 18 | 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:19:45 [INFO] [stdout] | [INFO] [stdout] 19 | 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:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | 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:29:49 [INFO] [stdout] | [INFO] [stdout] 29 | 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:36:45 [INFO] [stdout] | [INFO] [stdout] 36 | 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:62:37 [INFO] [stdout] | [INFO] [stdout] 62 | 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:82:40 [INFO] [stdout] | [INFO] [stdout] 82 | 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:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | 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:93:14 [INFO] [stdout] | [INFO] [stdout] 93 | &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:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | 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:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | 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:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | 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:102:46 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 102 | 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:103:62 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 103 | unsafe { device_info_data.get_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:103:84 [INFO] [stdout] | [INFO] [stdout] 103 | unsafe { device_info_data.get_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:104:51 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 104 | 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:105:67 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 105 | unsafe { device_interface_data.get_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:105:98 [INFO] [stdout] | [INFO] [stdout] 105 | unsafe { device_interface_data.get_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:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | 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:112:14 [INFO] [stdout] | [INFO] [stdout] 112 | ) == 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:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | 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:119:18 [INFO] [stdout] | [INFO] [stdout] 119 | &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:124:23 [INFO] [stdout] | [INFO] [stdout] 124 | 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:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | 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:139:23 [INFO] [stdout] | [INFO] [stdout] 139 | 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:139:41 [INFO] [stdout] | [INFO] [stdout] 139 | 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:139:61 [INFO] [stdout] | [INFO] [stdout] 139 | 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:143:36 [INFO] [stdout] | [INFO] [stdout] 143 | 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:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | 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:148:39 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 148 | 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:153:67 [INFO] [stdout] | [INFO] [stdout] 86 | fn enumerate_host_controllers() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 153 | 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:153:107 [INFO] [stdout] | [INFO] [stdout] 153 | 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:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | 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:164:23 [INFO] [stdout] | [INFO] [stdout] 164 | 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:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | 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:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | 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:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | 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:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | 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:179:24 [INFO] [stdout] | [INFO] [stdout] 179 | 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:184:18 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe { CloseHandle(h_hc_dev) }; [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:593:52 [INFO] [stdout] | [INFO] [stdout] 593 | 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:595:23 [INFO] [stdout] | [INFO] [stdout] 24 | 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] 595 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 595 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 583 | 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:595:52 [INFO] [stdout] | [INFO] [stdout] 595 | 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:600:19 [INFO] [stdout] | [INFO] [stdout] 600 | 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:605:32 [INFO] [stdout] | [INFO] [stdout] 605 | 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:607:9 [INFO] [stdout] | [INFO] [stdout] 607 | 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:610:34 [INFO] [stdout] | [INFO] [stdout] 24 | 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] 610 | driver_key_name_w.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 610 | driver_key_name_w.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 583 | 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:616:9 [INFO] [stdout] | [INFO] [stdout] 616 | 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:627:19 [INFO] [stdout] | [INFO] [stdout] 627 | 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:634:38 [INFO] [stdout] | [INFO] [stdout] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 634 | (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:637:14 [INFO] [stdout] | [INFO] [stdout] 637 | 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:661:32 [INFO] [stdout] | [INFO] [stdout] 661 | 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:662:37 [INFO] [stdout] | [INFO] [stdout] 82 | 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] 662 | let mut root_hub_name_w = Box::::new_uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 662 | let mut root_hub_name_w = Box::::new_uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 661 | 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:666:9 [INFO] [stdout] | [INFO] [stdout] 666 | DeviceIoControl( [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:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | 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:195:27 [INFO] [stdout] | [INFO] [stdout] 191 | struct DeviceNode { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 195 | device_info_data: Box, [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:210:52 [INFO] [stdout] | [INFO] [stdout] 210 | 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:212:49 [INFO] [stdout] | [INFO] [stdout] 212 | 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:217:49 [INFO] [stdout] | [INFO] [stdout] 217 | 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:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | 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:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | 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:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | 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:226:23 [INFO] [stdout] | [INFO] [stdout] 226 | 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:232:42 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 232 | let mut device_info_data = Box::::new_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:233:66 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 233 | unsafe { device_info_data.get_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:233:88 [INFO] [stdout] | [INFO] [stdout] 233 | unsafe { device_info_data.get_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:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | 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:241:23 [INFO] [stdout] | [INFO] [stdout] 241 | 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:246:36 [INFO] [stdout] | [INFO] [stdout] 246 | let heap_handle = unsafe { GetProcessHeap() }; [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:247:96 [INFO] [stdout] | [INFO] [stdout] 247 | let name_device_desc = get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DEVICEDESC) [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:253:26 [INFO] [stdout] | [INFO] [stdout] 253 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [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:256:91 [INFO] [stdout] | [INFO] [stdout] 256 | let name_driver = get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DRIVER) [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:262:26 [INFO] [stdout] | [INFO] [stdout] 262 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [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:270:55 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 270 | 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:271:71 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 271 | unsafe { device_interface_data.get_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:271:102 [INFO] [stdout] | [INFO] [stdout] 271 | unsafe { device_interface_data.get_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:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | 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:281:23 [INFO] [stdout] | [INFO] [stdout] 281 | 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:287:13 [INFO] [stdout] | [INFO] [stdout] 287 | 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:296:23 [INFO] [stdout] | [INFO] [stdout] 296 | 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:296:41 [INFO] [stdout] | [INFO] [stdout] 296 | 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:296:61 [INFO] [stdout] | [INFO] [stdout] 296 | 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:300:36 [INFO] [stdout] | [INFO] [stdout] 300 | 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:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | 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:305:39 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 305 | device_detail_data.cast::() [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:672:23 [INFO] [stdout] | [INFO] [stdout] 82 | 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] 672 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 672 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 661 | 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:672:47 [INFO] [stdout] | [INFO] [stdout] 672 | 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:677:19 [INFO] [stdout] | [INFO] [stdout] 677 | 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:677:37 [INFO] [stdout] | [INFO] [stdout] 677 | 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:677:57 [INFO] [stdout] | [INFO] [stdout] 677 | 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:678:59 [INFO] [stdout] | [INFO] [stdout] 678 | 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:685:32 [INFO] [stdout] | [INFO] [stdout] 685 | 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:687:9 [INFO] [stdout] | [INFO] [stdout] 687 | 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:690:32 [INFO] [stdout] | [INFO] [stdout] 82 | 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] 690 | root_hub_name_w.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 690 | root_hub_name_w.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 661 | 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:696:9 [INFO] [stdout] | [INFO] [stdout] 696 | 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:707:19 [INFO] [stdout] | [INFO] [stdout] 707 | 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:713:39 [INFO] [stdout] | [INFO] [stdout] 661 | 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] 713 | (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:715:14 [INFO] [stdout] | [INFO] [stdout] 715 | 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[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_W` in this scope [INFO] [stdout] --> src/main.rs:310:67 [INFO] [stdout] | [INFO] [stdout] 217 | fn enumerate_all_devices_with_guid(guid: *const GUID) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 310 | 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:310:107 [INFO] [stdout] | [INFO] [stdout] 310 | 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:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | 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:321:23 [INFO] [stdout] | [INFO] [stdout] 321 | 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:330:18 [INFO] [stdout] | [INFO] [stdout] 330 | 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:346:22 [INFO] [stdout] | [INFO] [stdout] 346 | device_info_set: 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:347:23 [INFO] [stdout] | [INFO] [stdout] 347 | device_info_data: PSP_DEVINFO_DATA, [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:348:15 [INFO] [stdout] | [INFO] [stdout] 348 | property: 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:349:23 [INFO] [stdout] | [INFO] [stdout] 345 | fn get_device_property( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 349 | ) -> Option<(*mut u8, DWORD)> { [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/main.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | 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/main.rs:363:19 [INFO] [stdout] | [INFO] [stdout] 363 | 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:363:37 [INFO] [stdout] | [INFO] [stdout] 363 | 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:363:57 [INFO] [stdout] | [INFO] [stdout] 363 | 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:366:32 [INFO] [stdout] | [INFO] [stdout] 366 | 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:368:9 [INFO] [stdout] | [INFO] [stdout] 368 | 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[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyW` in this scope [INFO] [stdout] --> src/main.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | 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/main.rs:387:19 [INFO] [stdout] | [INFO] [stdout] 387 | 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/main.rs:388:77 [INFO] [stdout] | [INFO] [stdout] 388 | println!("SetupDiGetDeviceRegistryPropertyW Error[2]! {}", unsafe { GetLastError() }); [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:396:14 [INFO] [stdout] | [INFO] [stdout] 394 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 395 | driver_name: &std::ffi::OsStr, [INFO] [stdout] 396 | ) -> Option<(HDEVINFO, Box)> { [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:396:28 [INFO] [stdout] | [INFO] [stdout] 394 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 395 | driver_name: &std::ffi::OsStr, [INFO] [stdout] 396 | ) -> Option<(HDEVINFO, Box)> { [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:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | 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:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | 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:402:32 [INFO] [stdout] | [INFO] [stdout] 402 | 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:405:23 [INFO] [stdout] | [INFO] [stdout] 405 | 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:410:42 [INFO] [stdout] | [INFO] [stdout] 394 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 410 | let mut device_info_data = Box::::new_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:411:66 [INFO] [stdout] | [INFO] [stdout] 394 | fn driver_name_to_device_inst( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 411 | unsafe { device_info_data.get_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:411:88 [INFO] [stdout] | [INFO] [stdout] 411 | unsafe { device_info_data.get_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:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | 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:420:23 [INFO] [stdout] | [INFO] [stdout] 420 | 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:424:77 [INFO] [stdout] | [INFO] [stdout] 424 | get_device_property(device_info, device_info_data.as_mut_ptr(), SPDRP_DRIVER) { [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:451:14 [INFO] [stdout] | [INFO] [stdout] 451 | 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:467:18 [INFO] [stdout] | [INFO] [stdout] 467 | 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:468:23 [INFO] [stdout] | [INFO] [stdout] 468 | device_info_data: PSP_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 `GetProcessHeap` in this scope [INFO] [stdout] --> src/main.rs:471:32 [INFO] [stdout] | [INFO] [stdout] 471 | let heap_handle = unsafe { GetProcessHeap() }; [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:472:74 [INFO] [stdout] | [INFO] [stdout] 472 | let device_desc = get_device_property(device_info, device_info_data, SPDRP_DEVICEDESC) [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:478:22 [INFO] [stdout] | [INFO] [stdout] 478 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [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:481:75 [INFO] [stdout] | [INFO] [stdout] 481 | let device_hw_id = get_device_property(device_info, device_info_data, SPDRP_HARDWAREID) [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:487:22 [INFO] [stdout] | [INFO] [stdout] 487 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [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:490:70 [INFO] [stdout] | [INFO] [stdout] 490 | let service = get_device_property(device_info, device_info_data, SPDRP_SERVICE) [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:496:22 [INFO] [stdout] | [INFO] [stdout] 496 | unsafe { HeapFree(heap_handle, 0, property_buffer as *mut _) }; [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:499:75 [INFO] [stdout] | [INFO] [stdout] 499 | let device_class = get_device_property(device_info, device_info_data, SPDRP_CLASS) [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:505:22 [INFO] [stdout] | [INFO] [stdout] 505 | unsafe { HeapFree(heap_handle, 0, property_buffer 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:534:9 [INFO] [stdout] | [INFO] [stdout] 534 | 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:542:19 [INFO] [stdout] | [INFO] [stdout] 542 | 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:542:37 [INFO] [stdout] | [INFO] [stdout] 542 | 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:542:57 [INFO] [stdout] | [INFO] [stdout] 542 | 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:543:71 [INFO] [stdout] | [INFO] [stdout] 543 | 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:546:32 [INFO] [stdout] | [INFO] [stdout] 546 | 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:548:9 [INFO] [stdout] | [INFO] [stdout] 548 | 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:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | 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:565:19 [INFO] [stdout] | [INFO] [stdout] 565 | 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:574:14 [INFO] [stdout] | [INFO] [stdout] 574 | 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:583:40 [INFO] [stdout] | [INFO] [stdout] 583 | 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:585:45 [INFO] [stdout] | [INFO] [stdout] 24 | 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] 585 | 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] 585 | let mut driver_key_name = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 583 | 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:589:9 [INFO] [stdout] | [INFO] [stdout] 589 | 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:593:23 [INFO] [stdout] | [INFO] [stdout] 24 | 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] 593 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 593 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 583 | 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:593:52 [INFO] [stdout] | [INFO] [stdout] 593 | 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:595:23 [INFO] [stdout] | [INFO] [stdout] 24 | 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] 595 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 595 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 583 | 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:595:52 [INFO] [stdout] | [INFO] [stdout] 595 | 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:600:19 [INFO] [stdout] | [INFO] [stdout] 600 | 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:605:32 [INFO] [stdout] | [INFO] [stdout] 605 | 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:607:9 [INFO] [stdout] | [INFO] [stdout] 607 | 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:610:34 [INFO] [stdout] | [INFO] [stdout] 24 | 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] 610 | driver_key_name_w.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 610 | driver_key_name_w.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 583 | 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:616:9 [INFO] [stdout] | [INFO] [stdout] 616 | 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:627:19 [INFO] [stdout] | [INFO] [stdout] 627 | 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:634:38 [INFO] [stdout] | [INFO] [stdout] 583 | fn enumerate_host_controller(h_hc_dev: HANDLE) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 634 | (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:637:14 [INFO] [stdout] | [INFO] [stdout] 637 | 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:661:32 [INFO] [stdout] | [INFO] [stdout] 661 | 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:662:37 [INFO] [stdout] | [INFO] [stdout] 82 | 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] 662 | let mut root_hub_name_w = Box::::new_uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 662 | let mut root_hub_name_w = Box::::new_uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 661 | 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:666:9 [INFO] [stdout] | [INFO] [stdout] 666 | 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:672:23 [INFO] [stdout] | [INFO] [stdout] 82 | 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] 672 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 672 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 661 | 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:672:47 [INFO] [stdout] | [INFO] [stdout] 672 | 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:677:19 [INFO] [stdout] | [INFO] [stdout] 677 | 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:677:37 [INFO] [stdout] | [INFO] [stdout] 677 | 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:677:57 [INFO] [stdout] | [INFO] [stdout] 677 | 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:678:59 [INFO] [stdout] | [INFO] [stdout] 678 | 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:685:32 [INFO] [stdout] | [INFO] [stdout] 685 | 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:687:9 [INFO] [stdout] | [INFO] [stdout] 687 | 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:690:32 [INFO] [stdout] | [INFO] [stdout] 82 | 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] 690 | root_hub_name_w.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 690 | root_hub_name_w.cast::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 661 | 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:696:9 [INFO] [stdout] | [INFO] [stdout] 696 | 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:707:19 [INFO] [stdout] | [INFO] [stdout] 707 | 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:713:39 [INFO] [stdout] | [INFO] [stdout] 661 | 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] 713 | (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:715:14 [INFO] [stdout] | [INFO] [stdout] 715 | 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/main.rs:249:47 [INFO] [stdout] | [INFO] [stdout] 249 | let ans = 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:258:47 [INFO] [stdout] | [INFO] [stdout] 258 | let ans = 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:326:45 [INFO] [stdout] | [INFO] [stdout] 326 | 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:432:46 [INFO] [stdout] | [INFO] [stdout] 432 | let buf_string = 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:474:43 [INFO] [stdout] | [INFO] [stdout] 474 | let ans = 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:483:43 [INFO] [stdout] | [INFO] [stdout] 483 | let ans = 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:43 [INFO] [stdout] | [INFO] [stdout] 492 | let ans = 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:501:43 [INFO] [stdout] | [INFO] [stdout] 501 | let ans = 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:569:41 [INFO] [stdout] | [INFO] [stdout] 569 | 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:632:47 [INFO] [stdout] | [INFO] [stdout] 632 | 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:636:5 [INFO] [stdout] | [INFO] [stdout] 636 | 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: this error originates in a macro (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:711:45 [INFO] [stdout] | [INFO] [stdout] 711 | 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] [stderr] error: could not compile `usb-z` [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:249:47 [INFO] [stdout] | [INFO] [stdout] 249 | let ans = 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] [stderr] [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:258:47 [INFO] [stdout] | [INFO] [stdout] 258 | let ans = 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] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] error: aborting due to 184 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:326:45 [INFO] [stdout] | [INFO] [stdout] 326 | 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:432:46 [INFO] [stdout] | [INFO] [stdout] 432 | let buf_string = 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:474:43 [INFO] [stdout] | [INFO] [stdout] 474 | let ans = 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:483:43 [INFO] [stdout] | [INFO] [stdout] 483 | let ans = 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:43 [INFO] [stdout] | [INFO] [stdout] 492 | let ans = 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:501:43 [INFO] [stdout] | [INFO] [stdout] 501 | let ans = 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:569:41 [INFO] [stdout] | [INFO] [stdout] 569 | 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:632:47 [INFO] [stdout] | [INFO] [stdout] 632 | 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:636:5 [INFO] [stdout] | [INFO] [stdout] 636 | 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: this error originates in a macro (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:711:45 [INFO] [stdout] | [INFO] [stdout] 711 | 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 184 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: build failed [INFO] running `Command { std: "docker" "inspect" "b53a449e19bb8fc1d024951d1d4e59b97ed8e55da7767cb0387a3303e34d2bc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b53a449e19bb8fc1d024951d1d4e59b97ed8e55da7767cb0387a3303e34d2bc6", kill_on_drop: false }` [INFO] [stdout] b53a449e19bb8fc1d024951d1d4e59b97ed8e55da7767cb0387a3303e34d2bc6