[INFO] cloning repository https://github.com/nacardin/win-hid-info [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nacardin/win-hid-info" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnacardin%2Fwin-hid-info", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnacardin%2Fwin-hid-info'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6da951bef31aeedd338ccdd68a82a26074c8be8c [INFO] checking nacardin/win-hid-info against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnacardin%2Fwin-hid-info" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nacardin/win-hid-info on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nacardin/win-hid-info [INFO] finished tweaking git repo https://github.com/nacardin/win-hid-info [INFO] tweaked toml for git repo https://github.com/nacardin/win-hid-info written to /workspace/builds/worker-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 35d02c636f486114c8cbd89dd268a941a02fb7623c8d00619363c0b1b8ba584a [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" "35d02c636f486114c8cbd89dd268a941a02fb7623c8d00619363c0b1b8ba584a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "35d02c636f486114c8cbd89dd268a941a02fb7623c8d00619363c0b1b8ba584a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35d02c636f486114c8cbd89dd268a941a02fb7623c8d00619363c0b1b8ba584a", kill_on_drop: false }` [INFO] [stdout] 35d02c636f486114c8cbd89dd268a941a02fb7623c8d00619363c0b1b8ba584a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 65f1e0303716e8768e47f580f81e3d96fc8245482886952aee562f6f3862f4ff [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" "65f1e0303716e8768e47f580f81e3d96fc8245482886952aee562f6f3862f4ff", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking win_hid_info v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/hidsdi.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::windows::raw::HANDLE as StdHandle; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hidsdi.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::hidsdi::HIDD_ATTRIBUTES; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hidsdi.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::hidsdi::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hidsdi.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hidsdi.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::ntdef::FALSE; [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/hidsdi.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/hidsdi.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::winnt::{HANDLE, PVOID, WCHAR}; [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/setupapi.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::hidclass::GUID_DEVINTERFACE_HID; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/setupapi.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::minwindef::{DWORD, FALSE}; [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/setupapi.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/setupapi.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/setupapi.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::setupapi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/setupapi.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::setupapi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/setupapi.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::winnt::WCHAR; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winbase::FormatMessageW; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winbase::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::winnt::LPWSTR; [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/lib.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::windows::fs::OpenOptionsExt; [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/lib.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use std::os::windows::io::AsRawHandle; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::setupapi::HDEVINFO; [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/hidsdi.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::windows::raw::HANDLE as StdHandle; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hidsdi.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::hidsdi::HIDD_ATTRIBUTES; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hidsdi.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::hidsdi::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hidsdi.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hidsdi.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::ntdef::FALSE; [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/hidsdi.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/hidsdi.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::winnt::{HANDLE, PVOID, WCHAR}; [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/setupapi.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::hidclass::GUID_DEVINTERFACE_HID; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/setupapi.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::minwindef::{DWORD, FALSE}; [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/setupapi.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/setupapi.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/setupapi.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::setupapi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/setupapi.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::setupapi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/setupapi.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::winnt::WCHAR; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winbase::FormatMessageW; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winbase::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::winnt::LPWSTR; [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/lib.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::windows::fs::OpenOptionsExt; [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/lib.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use std::os::windows::io::AsRawHandle; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::setupapi::HDEVINFO; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdHandle` in this scope [INFO] [stdout] --> src/hidsdi.rs:16:38 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_attributes(device_handle: StdHandle) -> HIDD_ATTRIBUTES { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDD_ATTRIBUTES` in this scope [INFO] [stdout] --> src/hidsdi.rs:16:52 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_attributes(device_handle: StdHandle) -> HIDD_ATTRIBUTES { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDD_ATTRIBUTES` in this scope [INFO] [stdout] --> src/hidsdi.rs:17:40 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_attributes(device_handle: StdHandle) -> HIDD_ATTRIBUTES { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 17 | let mut attributes = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetAttributes` in this scope [INFO] [stdout] --> src/hidsdi.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | HidD_GetAttributes(device_handle as HANDLE, attributes.as_mut_ptr()) == FALSE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/hidsdi.rs:21:49 [INFO] [stdout] | [INFO] [stdout] 21 | HidD_GetAttributes(device_handle as HANDLE, attributes.as_mut_ptr()) == FALSE; [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/hidsdi.rs:21:85 [INFO] [stdout] | [INFO] [stdout] 21 | HidD_GetAttributes(device_handle as HANDLE, attributes.as_mut_ptr()) == 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/hidsdi.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | let error_code = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stdout] --> src/hidsdi.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | type StringBuffer = [WCHAR; 127]; // character limit set at 126 in docs for HidD_GetManufacturerString, HidD_GetProductString, and HidD_G... [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdHandle` in this scope [INFO] [stdout] --> src/hidsdi.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_manufacturer(device_handle: StdHandle) -> Option { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetManufacturerString` in this scope [INFO] [stdout] --> src/hidsdi.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | let has_error = HidD_GetManufacturerString( [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/hidsdi.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | device_handle as HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/hidsdi.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | manufacturer_string.as_mut_ptr() as PVOID, [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/hidsdi.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | STRING_BUFFER_SIZE 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/hidsdi.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | ) == 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/hidsdi.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | let error_code = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdHandle` in this scope [INFO] [stdout] --> src/hidsdi.rs:67:35 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_product(device_handle: StdHandle) -> Option { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetProductString` in this scope [INFO] [stdout] --> src/hidsdi.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | let has_error = HidD_GetProductString( [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/hidsdi.rs:71:30 [INFO] [stdout] | [INFO] [stdout] 71 | device_handle as HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/hidsdi.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | product.as_mut_ptr() as PVOID, [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/hidsdi.rs:73:35 [INFO] [stdout] | [INFO] [stdout] 73 | STRING_BUFFER_SIZE 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/hidsdi.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | ) == 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/hidsdi.rs:77:30 [INFO] [stdout] | [INFO] [stdout] 77 | let error_code = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdHandle` in this scope [INFO] [stdout] --> src/hidsdi.rs:91:41 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn get_serial_number(device_handle: StdHandle) -> Option { [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/hidsdi.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | const ERROR_INVALID_PARAMETER: DWORD = 87; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetSerialNumberString` in this scope [INFO] [stdout] --> src/hidsdi.rs:96:25 [INFO] [stdout] | [INFO] [stdout] 96 | let has_error = HidD_GetSerialNumberString( [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/hidsdi.rs:97:30 [INFO] [stdout] | [INFO] [stdout] 97 | device_handle as HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/hidsdi.rs:98:43 [INFO] [stdout] | [INFO] [stdout] 98 | serial_number.as_mut_ptr() as PVOID, [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/hidsdi.rs:99:35 [INFO] [stdout] | [INFO] [stdout] 99 | STRING_BUFFER_SIZE 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/hidsdi.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | ) == 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/hidsdi.rs:102:30 [INFO] [stdout] | [INFO] [stdout] 102 | let error_code = 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/setupapi.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn get_device_info_set() -> HDEVINFO { [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/setupapi.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | let handle = SetupDiGetClassDevsW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GUID_DEVINTERFACE_HID` in this scope [INFO] [stdout] --> src/setupapi.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | &GUID_DEVINTERFACE_HID, [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/setupapi.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | 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/setupapi.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | 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/setupapi.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | if handle == 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 `GetLastError` in this scope [INFO] [stdout] --> src/setupapi.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | let error_code = 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/setupapi.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | device_info_set: HDEVINFO, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/setupapi.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | device_index: 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/setupapi.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_device_interface( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 47 | ) -> Option { [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/setupapi.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | const ERROR_NO_MORE_ITEMS: DWORD = 259; [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/setupapi.rs:50:51 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_device_interface( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 50 | let mut device_interface_data = MaybeUninit::::zeroed(); [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/setupapi.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_device_interface( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 54 | 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/setupapi.rs:54:54 [INFO] [stdout] | [INFO] [stdout] 54 | 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/setupapi.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | let has_error = SetupDiEnumDeviceInterfaces( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GUID_DEVINTERFACE_HID` in this scope [INFO] [stdout] --> src/setupapi.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | &GUID_DEVINTERFACE_HID, [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/setupapi.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | ) == 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/setupapi.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | let error_code = 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/setupapi.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 81 | device_info_set: HDEVINFO, [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/setupapi.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | device_info_data: &mut SP_DEVINFO_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stdout] --> src/setupapi.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 85 | type StringBuffer = [WCHAR; 1024]; // guess buffer size [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/setupapi.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | let mut reg_data_type: DWORD = 0; [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/setupapi.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | let has_error = SetupDiGetDeviceRegistryPropertyW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_PHYSICAL_DEVICE_OBJECT_NAME` in this scope [INFO] [stdout] --> src/setupapi.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | SPDRP_PHYSICAL_DEVICE_OBJECT_NAME, [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/setupapi.rs:99:35 [INFO] [stdout] | [INFO] [stdout] 99 | STRING_BUFFER_SIZE 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/setupapi.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | ) == 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/setupapi.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | let error_code = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stdout] --> src/setupapi.rs:120:19 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct DeviceInterfaceDetail { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 120 | pub path: Vec, [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/setupapi.rs:121:22 [INFO] [stdout] | [INFO] [stdout] 121 | pub device_info: SP_DEVINFO_DATA, [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/setupapi.rs:125:22 [INFO] [stdout] | [INFO] [stdout] 125 | device_info_set: HDEVINFO, [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/setupapi.rs:126:33 [INFO] [stdout] | [INFO] [stdout] 126 | device_interface_data: &mut SP_DEVICE_INTERFACE_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/setupapi.rs:128:38 [INFO] [stdout] | [INFO] [stdout] 128 | const ERROR_INSUFFICIENT_BUFFER: DWORD = 122; [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/setupapi.rs:130:28 [INFO] [stdout] | [INFO] [stdout] 130 | let mut required_size: DWORD = 0; [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/setupapi.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | let has_error = 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/setupapi.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 141 | ) == 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/setupapi.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 146 | let error_code = GetLastError(); [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/setupapi.rs:163:30 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_device_interface_detail( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 163 | std::mem::align_of::(), [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/setupapi.rs:170:44 [INFO] [stdout] | [INFO] [stdout] 170 | let device_interface_detail_data: &mut SP_DEVICE_INTERFACE_DETAIL_DATA_W = [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/setupapi.rs:173:53 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_device_interface_detail( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 173 | device_interface_detail_data.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/setupapi.rs:173:93 [INFO] [stdout] | [INFO] [stdout] 173 | device_interface_detail_data.cbSize = size_of::() as DWORD; [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/setupapi.rs:175:46 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_device_interface_detail( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 175 | let mut device_info_data = MaybeUninit::::zeroed(); [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/setupapi.rs:178:61 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_device_interface_detail( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 178 | (*device_info_data.as_mut_ptr()).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/setupapi.rs:178:83 [INFO] [stdout] | [INFO] [stdout] 178 | (*device_info_data.as_mut_ptr()).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/setupapi.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | let has_error = 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/setupapi.rs:187:14 [INFO] [stdout] | [INFO] [stdout] 187 | ) == 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/setupapi.rs:190:30 [INFO] [stdout] | [INFO] [stdout] 190 | let error_code = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/util.rs:12:44 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn format_winapi_error(error_code: u32) -> String { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 12 | let mut message_buffer = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FormatMessageW` in this scope [INFO] [stdout] --> src/util.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | let has_error = FormatMessageW( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FORMAT_MESSAGE_ALLOCATE_BUFFER` in this scope [INFO] [stdout] --> src/util.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | FORMAT_MESSAGE_ALLOCATE_BUFFER [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FORMAT_MESSAGE_FROM_SYSTEM` in this scope [INFO] [stdout] --> src/util.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | | FORMAT_MESSAGE_FROM_SYSTEM [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FORMAT_MESSAGE_IGNORE_INSERTS` in this scope [INFO] [stdout] --> src/util.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | | FORMAT_MESSAGE_IGNORE_INSERTS, [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/util.rs:28:34 [INFO] [stdout] | [INFO] [stdout] 28 | let new_error_code = 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/lib.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | device_info_set: HDEVINFO, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdHandle` in this scope [INFO] [stdout] --> src/hidsdi.rs:16:38 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_attributes(device_handle: StdHandle) -> HIDD_ATTRIBUTES { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDD_ATTRIBUTES` in this scope [INFO] [stdout] --> src/hidsdi.rs:16:52 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_attributes(device_handle: StdHandle) -> HIDD_ATTRIBUTES { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDD_ATTRIBUTES` in this scope [INFO] [stdout] --> src/hidsdi.rs:17:40 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_attributes(device_handle: StdHandle) -> HIDD_ATTRIBUTES { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 17 | let mut attributes = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetAttributes` in this scope [INFO] [stdout] --> src/hidsdi.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | HidD_GetAttributes(device_handle as HANDLE, attributes.as_mut_ptr()) == FALSE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/hidsdi.rs:21:49 [INFO] [stdout] | [INFO] [stdout] 21 | HidD_GetAttributes(device_handle as HANDLE, attributes.as_mut_ptr()) == FALSE; [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/hidsdi.rs:21:85 [INFO] [stdout] | [INFO] [stdout] 21 | HidD_GetAttributes(device_handle as HANDLE, attributes.as_mut_ptr()) == 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/hidsdi.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | let error_code = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stdout] --> src/hidsdi.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | type StringBuffer = [WCHAR; 127]; // character limit set at 126 in docs for HidD_GetManufacturerString, HidD_GetProductString, and HidD_G... [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdHandle` in this scope [INFO] [stdout] --> src/hidsdi.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_manufacturer(device_handle: StdHandle) -> Option { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetManufacturerString` in this scope [INFO] [stdout] --> src/hidsdi.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | let has_error = HidD_GetManufacturerString( [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/hidsdi.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | device_handle as HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/hidsdi.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | manufacturer_string.as_mut_ptr() as PVOID, [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/hidsdi.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | STRING_BUFFER_SIZE 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/hidsdi.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | ) == 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/hidsdi.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | let error_code = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdHandle` in this scope [INFO] [stdout] --> src/hidsdi.rs:67:35 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_product(device_handle: StdHandle) -> Option { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetProductString` in this scope [INFO] [stdout] --> src/hidsdi.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | let has_error = HidD_GetProductString( [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/hidsdi.rs:71:30 [INFO] [stdout] | [INFO] [stdout] 71 | device_handle as HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/hidsdi.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | product.as_mut_ptr() as PVOID, [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/hidsdi.rs:73:35 [INFO] [stdout] | [INFO] [stdout] 73 | STRING_BUFFER_SIZE 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/hidsdi.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | ) == 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/hidsdi.rs:77:30 [INFO] [stdout] | [INFO] [stdout] 77 | let error_code = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdHandle` in this scope [INFO] [stdout] --> src/hidsdi.rs:91:41 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn get_serial_number(device_handle: StdHandle) -> Option { [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/hidsdi.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | const ERROR_INVALID_PARAMETER: DWORD = 87; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetSerialNumberString` in this scope [INFO] [stdout] --> src/hidsdi.rs:96:25 [INFO] [stdout] | [INFO] [stdout] 96 | let has_error = HidD_GetSerialNumberString( [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/hidsdi.rs:97:30 [INFO] [stdout] | [INFO] [stdout] 97 | device_handle as HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/hidsdi.rs:98:43 [INFO] [stdout] | [INFO] [stdout] 98 | serial_number.as_mut_ptr() as PVOID, [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/hidsdi.rs:99:35 [INFO] [stdout] | [INFO] [stdout] 99 | STRING_BUFFER_SIZE 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/hidsdi.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | ) == 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/hidsdi.rs:102:30 [INFO] [stdout] | [INFO] [stdout] 102 | let error_code = 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/setupapi.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn get_device_info_set() -> HDEVINFO { [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/setupapi.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | let handle = SetupDiGetClassDevsW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GUID_DEVINTERFACE_HID` in this scope [INFO] [stdout] --> src/setupapi.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | &GUID_DEVINTERFACE_HID, [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/setupapi.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | 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/setupapi.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | 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/setupapi.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | if handle == 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 `GetLastError` in this scope [INFO] [stdout] --> src/setupapi.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | let error_code = 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/setupapi.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | device_info_set: HDEVINFO, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/setupapi.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | device_index: 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/setupapi.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_device_interface( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 47 | ) -> Option { [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/setupapi.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | const ERROR_NO_MORE_ITEMS: DWORD = 259; [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/setupapi.rs:50:51 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_device_interface( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 50 | let mut device_interface_data = MaybeUninit::::zeroed(); [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/setupapi.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_device_interface( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 54 | 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/setupapi.rs:54:54 [INFO] [stdout] | [INFO] [stdout] 54 | 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/setupapi.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | let has_error = SetupDiEnumDeviceInterfaces( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GUID_DEVINTERFACE_HID` in this scope [INFO] [stdout] --> src/setupapi.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | &GUID_DEVINTERFACE_HID, [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/setupapi.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | ) == 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/setupapi.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | let error_code = 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/setupapi.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 81 | device_info_set: HDEVINFO, [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/setupapi.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | device_info_data: &mut SP_DEVINFO_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stdout] --> src/setupapi.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 85 | type StringBuffer = [WCHAR; 1024]; // guess buffer size [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/setupapi.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | let mut reg_data_type: DWORD = 0; [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/setupapi.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | let has_error = SetupDiGetDeviceRegistryPropertyW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_PHYSICAL_DEVICE_OBJECT_NAME` in this scope [INFO] [stdout] --> src/setupapi.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | SPDRP_PHYSICAL_DEVICE_OBJECT_NAME, [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/setupapi.rs:99:35 [INFO] [stdout] | [INFO] [stdout] 99 | STRING_BUFFER_SIZE 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/setupapi.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | ) == 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/setupapi.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | let error_code = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stdout] --> src/setupapi.rs:120:19 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct DeviceInterfaceDetail { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 120 | pub path: Vec, [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/setupapi.rs:121:22 [INFO] [stdout] | [INFO] [stdout] 121 | pub device_info: SP_DEVINFO_DATA, [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/setupapi.rs:125:22 [INFO] [stdout] | [INFO] [stdout] 125 | device_info_set: HDEVINFO, [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/setupapi.rs:126:33 [INFO] [stdout] | [INFO] [stdout] 126 | device_interface_data: &mut SP_DEVICE_INTERFACE_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/setupapi.rs:128:38 [INFO] [stdout] | [INFO] [stdout] 128 | const ERROR_INSUFFICIENT_BUFFER: DWORD = 122; [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/setupapi.rs:130:28 [INFO] [stdout] | [INFO] [stdout] 130 | let mut required_size: DWORD = 0; [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/setupapi.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | let has_error = 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/setupapi.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 141 | ) == 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/setupapi.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 146 | let error_code = GetLastError(); [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/setupapi.rs:163:30 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_device_interface_detail( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 163 | std::mem::align_of::(), [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/setupapi.rs:170:44 [INFO] [stdout] | [INFO] [stdout] 170 | let device_interface_detail_data: &mut SP_DEVICE_INTERFACE_DETAIL_DATA_W = [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/setupapi.rs:173:53 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_device_interface_detail( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 173 | device_interface_detail_data.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/setupapi.rs:173:93 [INFO] [stdout] | [INFO] [stdout] 173 | device_interface_detail_data.cbSize = size_of::() as DWORD; [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/setupapi.rs:175:46 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_device_interface_detail( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 175 | let mut device_info_data = MaybeUninit::::zeroed(); [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/setupapi.rs:178:61 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_device_interface_detail( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 178 | (*device_info_data.as_mut_ptr()).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/setupapi.rs:178:83 [INFO] [stdout] | [INFO] [stdout] 178 | (*device_info_data.as_mut_ptr()).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/setupapi.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | let has_error = 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/setupapi.rs:187:14 [INFO] [stdout] | [INFO] [stdout] 187 | ) == 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/setupapi.rs:190:30 [INFO] [stdout] | [INFO] [stdout] 190 | let error_code = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/util.rs:12:44 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn format_winapi_error(error_code: u32) -> String { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 12 | let mut message_buffer = MaybeUninit::::uninit(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FormatMessageW` in this scope [INFO] [stdout] --> src/util.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | let has_error = FormatMessageW( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FORMAT_MESSAGE_ALLOCATE_BUFFER` in this scope [INFO] [stdout] --> src/util.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | FORMAT_MESSAGE_ALLOCATE_BUFFER [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FORMAT_MESSAGE_FROM_SYSTEM` in this scope [INFO] [stdout] --> src/util.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | | FORMAT_MESSAGE_FROM_SYSTEM [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FORMAT_MESSAGE_IGNORE_INSERTS` in this scope [INFO] [stdout] --> src/util.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | | FORMAT_MESSAGE_IGNORE_INSERTS, [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/util.rs:28:34 [INFO] [stdout] | [INFO] [stdout] 28 | let new_error_code = 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/lib.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | device_info_set: HDEVINFO, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `access_mode` found for struct `OpenOptions` in the current scope [INFO] [stdout] --> src/lib.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | .access_mode(0) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `OpenOptions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 105 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `win_hid_info` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `access_mode` found for struct `OpenOptions` in the current scope [INFO] [stdout] --> src/lib.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | .access_mode(0) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `OpenOptions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 105 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "65f1e0303716e8768e47f580f81e3d96fc8245482886952aee562f6f3862f4ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65f1e0303716e8768e47f580f81e3d96fc8245482886952aee562f6f3862f4ff", kill_on_drop: false }` [INFO] [stdout] 65f1e0303716e8768e47f580f81e3d96fc8245482886952aee562f6f3862f4ff