[INFO] crate dhc 0.1.3 is already in cache [INFO] extracting crate dhc 0.1.3 into work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/reg/dhc/0.1.3 [INFO] extracting crate dhc 0.1.3 into work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/reg/dhc/0.1.3 [INFO] validating manifest of dhc-0.1.3 on toolchain master#60960a260f7b5c695fd0717311d72ce62dd4eb43 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of dhc-0.1.3 on toolchain try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing dhc-0.1.3 [INFO] finished frobbing dhc-0.1.3 [INFO] frobbed toml for dhc-0.1.3 written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/reg/dhc/0.1.3/Cargo.toml [INFO] started frobbing dhc-0.1.3 [INFO] finished frobbing dhc-0.1.3 [INFO] frobbed toml for dhc-0.1.3 written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/reg/dhc/0.1.3/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] checking dhc-0.1.3 against try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-6/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/reg/dhc/0.1.3:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] d5ccf872313eed86fdfd3aaf7922603f486829ef6798c6a28f5e2cf7d131f3dd [INFO] running `"docker" "start" "-a" "d5ccf872313eed86fdfd3aaf7922603f486829ef6798c6a28f5e2cf7d131f3dd"` [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Checking slog v1.7.1 [INFO] [stderr] Checking unchecked-index v0.2.2 [INFO] [stderr] Checking triple_buffer v4.0.1 [INFO] [stderr] Checking slog-scope v4.1.2 [INFO] [stderr] Checking log-panics v2.0.0 [INFO] [stderr] Checking rusty-xinput v1.2.0 [INFO] [stderr] Compiling vergen v3.0.4 [INFO] [stderr] Checking slog-term v2.4.1 [INFO] [stderr] Checking twoway v0.2.0 [INFO] [stderr] Checking slog-stdlog v3.0.5 [INFO] [stderr] Checking slog-extra v0.1.2 [INFO] [stderr] Checking slog-stream v1.2.1 [INFO] [stderr] Checking hwndloop v0.1.5 [INFO] [stderr] Compiling dhc v0.1.3 (/opt/crater/workdir) [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/lib.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/lib.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::um::libloaderapi::{GetModuleFileNameW, GetModuleHandleW}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/logger.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::um::consoleapi::AllocConsole; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/mod.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::shared::minwindef::{LPARAM, LRESULT, UINT, WPARAM}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/mod.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | use winapi::shared::ntdef::HANDLE; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/mod.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::shared::windef::HWND; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/mod.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::um::processthreadsapi::{GetCurrentThread, SetThreadPriority}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/mod.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | use winapi::um::winbase::THREAD_PRIORITY_HIGHEST; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/mod.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | use winapi::um::winuser::*; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::shared::hidpi::{ [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::shared::hidpi::{ [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:17:13 [INFO] [stderr] | [INFO] [stderr] 17 | use winapi::shared::hidpi::{HIDP_CAPS, HIDP_LINK_COLLECTION_NODE, HIDP_VALUE_CAPS, PHIDP_PREPARSED_DATA}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:18:13 [INFO] [stderr] | [INFO] [stderr] 18 | use winapi::shared::hidsdi::{ [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | use winapi::shared::minwindef::UINT; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:23:13 [INFO] [stderr] | [INFO] [stderr] 23 | use winapi::shared::ntdef::{HANDLE, NTSTATUS}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/hid.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | use winapi::um::fileapi::{CreateFileA, OPEN_EXISTING}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/hid.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 25 | use winapi::um::handleapi::CloseHandle; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/hid.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/hid.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | use winapi::um::winnt::{FILE_SHARE_READ, FILE_SHARE_WRITE}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/hid.rs:28:13 [INFO] [stderr] | [INFO] [stderr] 28 | use winapi::um::winuser::*; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/xinput.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/xinput.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::um::sysinfoapi::GetSystemDirectoryW; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `rusty_xinput::XInputHandle` [INFO] [stderr] --> src/input/xinput.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use rusty_xinput::XInputHandle; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `XInputHandle` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/lib.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/lib.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::um::libloaderapi::{GetModuleFileNameW, GetModuleHandleW}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/logger.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::um::consoleapi::AllocConsole; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/mod.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::shared::minwindef::{LPARAM, LRESULT, UINT, WPARAM}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/mod.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | use winapi::shared::ntdef::HANDLE; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/mod.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::shared::windef::HWND; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/mod.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::um::processthreadsapi::{GetCurrentThread, SetThreadPriority}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/mod.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | use winapi::um::winbase::THREAD_PRIORITY_HIGHEST; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/mod.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | use winapi::um::winuser::*; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::shared::hidpi::{ [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::shared::hidpi::{ [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:17:13 [INFO] [stderr] | [INFO] [stderr] 17 | use winapi::shared::hidpi::{HIDP_CAPS, HIDP_LINK_COLLECTION_NODE, HIDP_VALUE_CAPS, PHIDP_PREPARSED_DATA}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:18:13 [INFO] [stderr] | [INFO] [stderr] 18 | use winapi::shared::hidsdi::{ [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | use winapi::shared::minwindef::UINT; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/hid.rs:23:13 [INFO] [stderr] | [INFO] [stderr] 23 | use winapi::shared::ntdef::{HANDLE, NTSTATUS}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/hid.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | use winapi::um::fileapi::{CreateFileA, OPEN_EXISTING}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/hid.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 25 | use winapi::um::handleapi::CloseHandle; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/hid.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/hid.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | use winapi::um::winnt::{FILE_SHARE_READ, FILE_SHARE_WRITE}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/hid.rs:28:13 [INFO] [stderr] | [INFO] [stderr] 28 | use winapi::um::winuser::*; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/input/xinput.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/input/xinput.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::um::sysinfoapi::GetSystemDirectoryW; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `rusty_xinput::XInputHandle` [INFO] [stderr] --> src/input/xinput.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use rusty_xinput::XInputHandle; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `XInputHandle` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `HwndLoop` [INFO] [stderr] --> src/input/mod.rs:399:18 [INFO] [stderr] | [INFO] [stderr] 399 | eventloop: HwndLoop::new(Box::new(manager)), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `HwndLoop` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `AllocConsole` in this scope [INFO] [stderr] --> src/logger.rs:89:14 [INFO] [stderr] | [INFO] [stderr] 89 | unsafe { AllocConsole() }; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stderr] --> src/input/hid.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | ptr: PHIDP_PREPARSED_DATA, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidD_FreePreparsedData` in this scope [INFO] [stderr] --> src/input/hid.rs:55:14 [INFO] [stderr] | [INFO] [stderr] 55 | unsafe { HidD_FreePreparsedData(self.raw()) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stderr] --> src/input/hid.rs:80:11 [INFO] [stderr] | [INFO] [stderr] 80 | Unknown(NTSTATUS), [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stderr] --> src/input/hid.rs:84:22 [INFO] [stderr] | [INFO] [stderr] 84 | fn from_code(code: NTSTATUS) -> HidPError { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stderr] --> src/input/hid.rs:132:24 [INFO] [stderr] | [INFO] [stderr] 132 | fn hidp_result(status: NTSTATUS) -> Result<(), HidPError> { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HIDP_STATUS_SUCCESS` in this scope [INFO] [stderr] --> src/input/hid.rs:133:16 [INFO] [stderr] | [INFO] [stderr] 133 | if status == HIDP_STATUS_SUCCESS { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stderr] --> src/input/hid.rs:141:20 [INFO] [stderr] | [INFO] [stderr] 141 | pub fn new(data: PHIDP_PREPARSED_DATA) -> HidPreparsedData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stderr] --> src/input/hid.rs:145:24 [INFO] [stderr] | [INFO] [stderr] 145 | pub fn raw(&self) -> PHIDP_PREPARSED_DATA { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HIDP_CAPS` in this scope [INFO] [stderr] --> src/input/hid.rs:149:32 [INFO] [stderr] | [INFO] [stderr] 149 | fn get_caps(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_GetCaps` in this scope [INFO] [stderr] --> src/input/hid.rs:151:23 [INFO] [stderr] | [INFO] [stderr] 151 | let rc = unsafe { HidP_GetCaps(self.raw(), &mut caps) }; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HIDP_VALUE_CAPS` in this scope [INFO] [stderr] --> src/input/hid.rs:156:42 [INFO] [stderr] | [INFO] [stderr] 156 | fn get_value_caps(&self) -> Result, HidPError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_GetValueCaps` in this scope [INFO] [stderr] --> src/input/hid.rs:161:16 [INFO] [stderr] | [INFO] [stderr] 161 | let rc = HidP_GetValueCaps(HidP_Input, vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stderr] --> src/input/hid.rs:161:34 [INFO] [stderr] | [INFO] [stderr] 161 | let rc = HidP_GetValueCaps(HidP_Input, vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HIDP_LINK_COLLECTION_NODE` in this scope [INFO] [stderr] --> src/input/hid.rs:171:53 [INFO] [stderr] | [INFO] [stderr] 171 | fn get_link_collection_nodes(&self) -> Result, HidPError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_GetLinkCollectionNodes` in this scope [INFO] [stderr] --> src/input/hid.rs:175:16 [INFO] [stderr] | [INFO] [stderr] 175 | let rc = HidP_GetLinkCollectionNodes(vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_MaxUsageListLength` in this scope [INFO] [stderr] --> src/input/hid.rs:185:14 [INFO] [stderr] | [INFO] [stderr] 185 | unsafe { HidP_MaxUsageListLength(HidP_Input, USAGE_PAGE_BUTTON, self.raw()) as usize } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stderr] --> src/input/hid.rs:185:38 [INFO] [stderr] | [INFO] [stderr] 185 | unsafe { HidP_MaxUsageListLength(HidP_Input, USAGE_PAGE_BUTTON, self.raw()) as usize } [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_GetUsages` in this scope [INFO] [stderr] --> src/input/hid.rs:192:7 [INFO] [stderr] | [INFO] [stderr] 192 | HidP_GetUsages( [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stderr] --> src/input/hid.rs:193:9 [INFO] [stderr] | [INFO] [stderr] 193 | HidP_Input, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_GetUsageValue` in this scope [INFO] [stderr] --> src/input/hid.rs:210:7 [INFO] [stderr] | [INFO] [stderr] 210 | HidP_GetUsageValue( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stderr] --> src/input/hid.rs:211:9 [INFO] [stderr] | [INFO] [stderr] 211 | HidP_Input, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HIDP_VALUE_CAPS` in this scope [INFO] [stderr] --> src/input/hid.rs:233:19 [INFO] [stderr] | [INFO] [stderr] 233 | value_caps: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/input/hid.rs:364:68 [INFO] [stderr] | [INFO] [stderr] 364 | fn get_rawinput_device_info_impl(device_id: RawInputDeviceId, cmd: UINT) -> Vec { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stderr] --> src/input/hid.rs:366:44 [INFO] [stderr] | [INFO] [stderr] 366 | RIDI_DEVICEINFO => std::mem::size_of::(), [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetRawInputDeviceInfoA` in this scope [INFO] [stderr] --> src/input/hid.rs:369:25 [INFO] [stderr] | [INFO] [stderr] 369 | let rc = unsafe { GetRawInputDeviceInfoA(device_id.as_handle(), cmd, std::ptr::null_mut(), &mut received_size) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: a tuple struct with a similar name exists: `RawInputDeviceId` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetRawInputDeviceInfoA` in this scope [INFO] [stderr] --> src/input/hid.rs:378:21 [INFO] [stderr] | [INFO] [stderr] 378 | let rc = unsafe { GetRawInputDeviceInfoA(device_id.as_handle(), cmd, ptr, &mut dummy) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: a tuple struct with a similar name exists: `RawInputDeviceId` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIDI_DEVICENAME` in this scope [INFO] [stderr] --> src/input/hid.rs:385:61 [INFO] [stderr] | [INFO] [stderr] 385 | let mut result = get_rawinput_device_info_impl(device_id, RIDI_DEVICENAME); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stderr] --> src/input/hid.rs:396:61 [INFO] [stderr] | [INFO] [stderr] 396 | fn get_rawinput_device_info(device_id: RawInputDeviceId) -> RID_DEVICE_INFO { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIDI_DEVICEINFO` in this scope [INFO] [stderr] --> src/input/hid.rs:397:56 [INFO] [stderr] | [INFO] [stderr] 397 | let bytes = get_rawinput_device_info_impl(device_id, RIDI_DEVICEINFO); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stderr] --> src/input/hid.rs:400:55 [INFO] [stderr] | [INFO] [stderr] 400 | std::ptr::read_unaligned(bytes.as_ptr() as *const RID_DEVICE_INFO) [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:404:35 [INFO] [stderr] | [INFO] [stderr] 404 | fn hid_get_product_string(handle: HANDLE) -> Option { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidD_GetProductString` in this scope [INFO] [stderr] --> src/input/hid.rs:409:25 [INFO] [stderr] | [INFO] [stderr] 409 | let result = unsafe { HidD_GetProductString(handle, ptr, buf_size as u32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `hid_get_product_string` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:423:40 [INFO] [stderr] | [INFO] [stderr] 423 | fn hid_get_manufacturer_string(handle: HANDLE) -> Option { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidD_GetManufacturerString` in this scope [INFO] [stderr] --> src/input/hid.rs:428:25 [INFO] [stderr] | [INFO] [stderr] 428 | let result = unsafe { HidD_GetManufacturerString(handle, ptr, buf_size as u32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `hid_get_manufacturer_string` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:442:34 [INFO] [stderr] | [INFO] [stderr] 442 | fn hid_get_serial_number(handle: HANDLE) -> Option { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidD_GetSerialNumberString` in this scope [INFO] [stderr] --> src/input/hid.rs:447:25 [INFO] [stderr] | [INFO] [stderr] 447 | let result = unsafe { HidD_GetSerialNumberString(handle, ptr, buf_size as u32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:461:58 [INFO] [stderr] | [INFO] [stderr] 461 | fn open_rawinput_hid_device(path: CString) -> io::Result { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/input/hid.rs:463:5 [INFO] [stderr] | [INFO] [stderr] 463 | CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FILE_SHARE_READ` in this scope [INFO] [stderr] --> src/input/hid.rs:466:7 [INFO] [stderr] | [INFO] [stderr] 466 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stderr] --> src/input/hid.rs:466:25 [INFO] [stderr] | [INFO] [stderr] 466 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stderr] --> src/input/hid.rs:468:7 [INFO] [stderr] | [INFO] [stderr] 468 | OPEN_EXISTING, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/input/hid.rs:474:18 [INFO] [stderr] | [INFO] [stderr] 474 | if hid_file == INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:484:39 [INFO] [stderr] | [INFO] [stderr] 484 | fn get_rawinput_device_name(hid_file: HANDLE) -> String { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:509:37 [INFO] [stderr] | [INFO] [stderr] 509 | fn hid_get_preparsed_data(hid_file: HANDLE) -> io::Result { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidD_GetPreparsedData` in this scope [INFO] [stderr] --> src/input/hid.rs:511:25 [INFO] [stderr] | [INFO] [stderr] 511 | let result = unsafe { HidD_GetPreparsedData(hid_file, &mut preparsed_data) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `hid_get_preparsed_data` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/input/hid.rs:535:12 [INFO] [stderr] | [INFO] [stderr] 535 | unsafe { CloseHandle(hid_file) }; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIM_TYPEHID` in this scope [INFO] [stderr] --> src/input/hid.rs:537:14 [INFO] [stderr] | [INFO] [stderr] 537 | assert_eq!(RIM_TYPEHID, info.dwType); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/input/xinput.rs:14:36 [INFO] [stderr] | [INFO] [stderr] 14 | let mut vec = Vec::with_capacity(MAX_PATH); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetSystemDirectoryW` in this scope [INFO] [stderr] --> src/input/xinput.rs:16:15 [INFO] [stderr] | [INFO] [stderr] 16 | let len = GetSystemDirectoryW(vec.as_mut_ptr(), vec.capacity() as u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_system_directory` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/mod.rs:51:29 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn as_handle(self) -> HANDLE { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/mod.rs:52:15 [INFO] [stderr] | [INFO] [stderr] 52 | self.0 as HANDLE [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/mod.rs:55:30 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn from_handle(handle: HANDLE) -> RawInputDeviceId { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RAWHID` in this scope [INFO] [stderr] --> src/input/mod.rs:125:38 [INFO] [stderr] | [INFO] [stderr] 125 | fn handle_input(&mut self, input: &RAWHID) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `HwndLoopCallbacks` in this scope [INFO] [stderr] --> src/input/mod.rs:147:6 [INFO] [stderr] | [INFO] [stderr] 147 | impl HwndLoopCallbacks for RawInputManager { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:148:31 [INFO] [stderr] | [INFO] [stderr] 148 | fn set_up(&mut self, _hwnd: HWND) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SetThreadPriority` in this scope [INFO] [stderr] --> src/input/mod.rs:149:14 [INFO] [stderr] | [INFO] [stderr] 149 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetCurrentThread` in this scope [INFO] [stderr] --> src/input/mod.rs:149:32 [INFO] [stderr] | [INFO] [stderr] 149 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `THREAD_PRIORITY_HIGHEST` in this scope [INFO] [stderr] --> src/input/mod.rs:149:52 [INFO] [stderr] | [INFO] [stderr] 149 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:152:38 [INFO] [stderr] | [INFO] [stderr] 152 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/input/mod.rs:152:49 [INFO] [stderr] | [INFO] [stderr] 152 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stderr] --> src/input/mod.rs:152:58 [INFO] [stderr] | [INFO] [stderr] 152 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stderr] --> src/input/mod.rs:152:69 [INFO] [stderr] | [INFO] [stderr] 152 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stderr] --> src/input/mod.rs:152:80 [INFO] [stderr] | [INFO] [stderr] 152 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WM_INPUT` in this scope [INFO] [stderr] --> src/input/mod.rs:153:15 [INFO] [stderr] | [INFO] [stderr] 153 | if msg == WM_INPUT { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRAWINPUT` in this scope [INFO] [stderr] --> src/input/mod.rs:154:43 [INFO] [stderr] | [INFO] [stderr] 154 | self.handle_device_input(hwnd, l as HRAWINPUT); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WM_INPUT_DEVICE_CHANGE` in this scope [INFO] [stderr] --> src/input/mod.rs:155:22 [INFO] [stderr] | [INFO] [stderr] 155 | } else if msg == WM_INPUT_DEVICE_CHANGE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/mod.rs:156:55 [INFO] [stderr] | [INFO] [stderr] 156 | let device = RawInputDeviceId::from_handle(l as HANDLE); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GIDC_ARRIVAL` in this scope [INFO] [stderr] --> src/input/mod.rs:157:15 [INFO] [stderr] | [INFO] [stderr] 157 | if w == GIDC_ARRIVAL as usize { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GIDC_REMOVAL` in this scope [INFO] [stderr] --> src/input/mod.rs:159:22 [INFO] [stderr] | [INFO] [stderr] 159 | } else if w == GIDC_REMOVAL as usize { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DefWindowProcA` in this scope [INFO] [stderr] --> src/input/mod.rs:165:14 [INFO] [stderr] | [INFO] [stderr] 165 | unsafe { DefWindowProcA(hwnd, msg, w, l) } [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:168:38 [INFO] [stderr] | [INFO] [stderr] 168 | fn handle_command(&mut self, hwnd: HWND, cmd: RawInputCommand) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:201:48 [INFO] [stderr] | [INFO] [stderr] 201 | fn cmd_register_device_type(&mut self, hwnd: HWND, device_type: RawInputDeviceType, reply: Sender<()>) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RAWINPUTDEVICE` in this scope [INFO] [stderr] --> src/input/mod.rs:202:15 [INFO] [stderr] | [INFO] [stderr] 202 | let rid = RAWINPUTDEVICE { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIDEV_INPUTSINK` in this scope [INFO] [stderr] --> src/input/mod.rs:205:16 [INFO] [stderr] | [INFO] [stderr] 205 | dwFlags: RIDEV_INPUTSINK | RIDEV_DEVNOTIFY, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIDEV_DEVNOTIFY` in this scope [INFO] [stderr] --> src/input/mod.rs:205:34 [INFO] [stderr] | [INFO] [stderr] 205 | dwFlags: RIDEV_INPUTSINK | RIDEV_DEVNOTIFY, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RegisterRawInputDevices` in this scope [INFO] [stderr] --> src/input/mod.rs:208:27 [INFO] [stderr] | [INFO] [stderr] 208 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stderr] --> src/input/mod.rs:208:80 [INFO] [stderr] | [INFO] [stderr] 208 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/input/mod.rs:208:101 [INFO] [stderr] | [INFO] [stderr] 208 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:218:51 [INFO] [stderr] | [INFO] [stderr] 218 | fn cmd_unregister_device_type(&mut self, _hwnd: HWND, device_type: RawInputDeviceType, reply: Sender<()>) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RAWINPUTDEVICE` in this scope [INFO] [stderr] --> src/input/mod.rs:219:15 [INFO] [stderr] | [INFO] [stderr] 219 | let rid = RAWINPUTDEVICE { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIDEV_REMOVE` in this scope [INFO] [stderr] --> src/input/mod.rs:222:16 [INFO] [stderr] | [INFO] [stderr] 222 | dwFlags: RIDEV_REMOVE, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RegisterRawInputDevices` in this scope [INFO] [stderr] --> src/input/mod.rs:225:27 [INFO] [stderr] | [INFO] [stderr] 225 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stderr] --> src/input/mod.rs:225:80 [INFO] [stderr] | [INFO] [stderr] 225 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/input/mod.rs:225:101 [INFO] [stderr] | [INFO] [stderr] 225 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:235:39 [INFO] [stderr] | [INFO] [stderr] 235 | fn cmd_get_events(&mut self, _hwnd: HWND, reply: Sender>) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:242:44 [INFO] [stderr] | [INFO] [stderr] 242 | fn handle_device_input(&mut self, _hwnd: HWND, hrawinput: HRAWINPUT) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRAWINPUT` in this scope [INFO] [stderr] --> src/input/mod.rs:242:61 [INFO] [stderr] | [INFO] [stderr] 242 | fn handle_device_input(&mut self, _hwnd: HWND, hrawinput: HRAWINPUT) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetRawInputData` in this scope [INFO] [stderr] --> src/input/mod.rs:247:7 [INFO] [stderr] | [INFO] [stderr] 247 | GetRawInputData( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RID_INPUT` in this scope [INFO] [stderr] --> src/input/mod.rs:249:9 [INFO] [stderr] | [INFO] [stderr] 249 | RID_INPUT, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RAWINPUTHEADER` in this scope [INFO] [stderr] --> src/input/mod.rs:252:29 [INFO] [stderr] | [INFO] [stderr] 252 | std::mem::size_of::() as UINT, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/input/mod.rs:252:50 [INFO] [stderr] | [INFO] [stderr] 252 | std::mem::size_of::() as UINT, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RAWINPUT` in this scope [INFO] [stderr] --> src/input/mod.rs:261:73 [INFO] [stderr] | [INFO] [stderr] 261 | let rawinput = unsafe { *(&buffer as *const AlignedBuffer as *const RAWINPUT) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIM_TYPEHID` in this scope [INFO] [stderr] --> src/input/mod.rs:269:16 [INFO] [stderr] | [INFO] [stderr] 269 | assert_eq!(RIM_TYPEHID, rawinput.header.dwType); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HwndLoop` in this scope [INFO] [stderr] --> src/input/mod.rs:389:14 [INFO] [stderr] | [INFO] [stderr] 389 | eventloop: HwndLoop, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleHandleW` in this scope [INFO] [stderr] --> src/lib.rs:47:26 [INFO] [stderr] | [INFO] [stderr] 47 | let process = unsafe { GetModuleHandleW(std::ptr::null_mut()) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/lib.rs:48:37 [INFO] [stderr] | [INFO] [stderr] 48 | let mut path = Vec::with_capacity(MAX_PATH); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleFileNameW` in this scope [INFO] [stderr] --> src/lib.rs:50:15 [INFO] [stderr] | [INFO] [stderr] 50 | let len = GetModuleFileNameW(process, path.as_mut_ptr(), MAX_PATH as u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/lib.rs:50:62 [INFO] [stderr] | [INFO] [stderr] 50 | let len = GetModuleFileNameW(process, path.as_mut_ptr(), MAX_PATH as u32); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::minwindef::MAX_PATH` [INFO] [stderr] --> src/lib.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GetModuleFileNameW`, `GetModuleHandleW` [INFO] [stderr] --> src/lib.rs:9:32 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::um::libloaderapi::{GetModuleFileNameW, GetModuleHandleW}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::consoleapi::AllocConsole` [INFO] [stderr] --> src/logger.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::um::consoleapi::AllocConsole; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `LPARAM`, `LRESULT`, `UINT`, `WPARAM` [INFO] [stderr] --> src/input/mod.rs:9:33 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::shared::minwindef::{LPARAM, LRESULT, UINT, WPARAM}; [INFO] [stderr] | ^^^^^^ ^^^^^^^ ^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::ntdef::HANDLE` [INFO] [stderr] --> src/input/mod.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use winapi::shared::ntdef::HANDLE; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::windef::HWND` [INFO] [stderr] --> src/input/mod.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::shared::windef::HWND; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GetCurrentThread`, `SetThreadPriority` [INFO] [stderr] --> src/input/mod.rs:12:37 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::um::processthreadsapi::{GetCurrentThread, SetThreadPriority}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::winbase::THREAD_PRIORITY_HIGHEST` [INFO] [stderr] --> src/input/mod.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use winapi::um::winbase::THREAD_PRIORITY_HIGHEST; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::winuser::*` [INFO] [stderr] --> src/input/mod.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use winapi::um::winuser::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `hwndloop::*` [INFO] [stderr] --> src/input/mod.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use hwndloop::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HidP_GetCaps`, `HidP_GetLinkCollectionNodes`, `HidP_GetUsageValue`, `HidP_GetUsages`, `HidP_GetValueCaps`, `HidP_MaxUsageListLength` [INFO] [stderr] --> src/input/hid.rs:6:3 [INFO] [stderr] | [INFO] [stderr] 6 | HidP_GetCaps, HidP_GetLinkCollectionNodes, HidP_GetUsageValue, HidP_GetUsages, HidP_GetValueCaps, [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 7 | HidP_MaxUsageListLength, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HIDP_STATUS_BAD_LOG_PHY_VALUES`, `HIDP_STATUS_BUFFER_TOO_SMALL`, `HIDP_STATUS_BUTTON_NOT_PRESSED`, `HIDP_STATUS_DATA_INDEX_NOT_FOUND`, `HIDP_STATUS_DATA_INDEX_OUT_OF_RANGE`, `HIDP_STATUS_I8042_TRANS_UNKNOWN`, `HIDP_STATUS_INCOMPATIBLE_REPORT_ID`, `HIDP_STATUS_INTERNAL_ERROR`, `HIDP_STATUS_INVALID_PREPARSED_DATA`, `HIDP_STATUS_INVALID_REPORT_LENGTH`, `HIDP_STATUS_INVALID_REPORT_TYPE`, `HIDP_STATUS_IS_VALUE_ARRAY`, `HIDP_STATUS_NOT_IMPLEMENTED`, `HIDP_STATUS_NOT_VALUE_ARRAY`, `HIDP_STATUS_NULL`, `HIDP_STATUS_REPORT_DOES_NOT_EXIST`, `HIDP_STATUS_SUCCESS`, `HIDP_STATUS_USAGE_NOT_FOUND`, `HIDP_STATUS_VALUE_OUT_OF_RANGE`, `HidP_Input` [INFO] [stderr] --> src/input/hid.rs:10:3 [INFO] [stderr] | [INFO] [stderr] 10 | HidP_Input, HIDP_STATUS_BAD_LOG_PHY_VALUES, HIDP_STATUS_BUFFER_TOO_SMALL, HIDP_STATUS_BUTTON_NOT_PRESSED, [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 11 | HIDP_STATUS_DATA_INDEX_NOT_FOUND, HIDP_STATUS_DATA_INDEX_OUT_OF_RANGE, HIDP_STATUS_I8042_TRANS_UNKNOWN, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 12 | HIDP_STATUS_INCOMPATIBLE_REPORT_ID, HIDP_STATUS_INTERNAL_ERROR, HIDP_STATUS_INVALID_PREPARSED_DATA, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 13 | HIDP_STATUS_INVALID_REPORT_LENGTH, HIDP_STATUS_INVALID_REPORT_TYPE, HIDP_STATUS_IS_VALUE_ARRAY, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 14 | HIDP_STATUS_NOT_IMPLEMENTED, HIDP_STATUS_NOT_VALUE_ARRAY, HIDP_STATUS_NULL, HIDP_STATUS_REPORT_DOES_NOT_EXIST, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 15 | HIDP_STATUS_SUCCESS, HIDP_STATUS_USAGE_NOT_FOUND, HIDP_STATUS_VALUE_OUT_OF_RANGE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HIDP_CAPS`, `HIDP_LINK_COLLECTION_NODE`, `HIDP_VALUE_CAPS`, `PHIDP_PREPARSED_DATA` [INFO] [stderr] --> src/input/hid.rs:17:29 [INFO] [stderr] | [INFO] [stderr] 17 | use winapi::shared::hidpi::{HIDP_CAPS, HIDP_LINK_COLLECTION_NODE, HIDP_VALUE_CAPS, PHIDP_PREPARSED_DATA}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HidD_FreePreparsedData`, `HidD_GetManufacturerString`, `HidD_GetPreparsedData`, `HidD_GetProductString`, `HidD_GetSerialNumberString` [INFO] [stderr] --> src/input/hid.rs:19:3 [INFO] [stderr] | [INFO] [stderr] 19 | HidD_FreePreparsedData, HidD_GetManufacturerString, HidD_GetPreparsedData, HidD_GetProductString, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 20 | HidD_GetSerialNumberString, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::minwindef::UINT` [INFO] [stderr] --> src/input/hid.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use winapi::shared::minwindef::UINT; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HANDLE`, `NTSTATUS` [INFO] [stderr] --> src/input/hid.rs:23:29 [INFO] [stderr] | [INFO] [stderr] 23 | use winapi::shared::ntdef::{HANDLE, NTSTATUS}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CreateFileA`, `OPEN_EXISTING` [INFO] [stderr] --> src/input/hid.rs:24:27 [INFO] [stderr] | [INFO] [stderr] 24 | use winapi::um::fileapi::{CreateFileA, OPEN_EXISTING}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::handleapi::CloseHandle` [INFO] [stderr] --> src/input/hid.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | use winapi::um::handleapi::CloseHandle; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::handleapi::INVALID_HANDLE_VALUE` [INFO] [stderr] --> src/input/hid.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FILE_SHARE_READ`, `FILE_SHARE_WRITE` [INFO] [stderr] --> src/input/hid.rs:27:25 [INFO] [stderr] | [INFO] [stderr] 27 | use winapi::um::winnt::{FILE_SHARE_READ, FILE_SHARE_WRITE}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::winuser::*` [INFO] [stderr] --> src/input/hid.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | use winapi::um::winuser::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/input/hid.rs:121:30 [INFO] [stderr] | [INFO] [stderr] 121 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::minwindef::MAX_PATH` [INFO] [stderr] --> src/input/xinput.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::sysinfoapi::GetSystemDirectoryW` [INFO] [stderr] --> src/input/xinput.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::um::sysinfoapi::GetSystemDirectoryW; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 123 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: Could not compile `dhc`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `HwndLoop` [INFO] [stderr] --> src/input/mod.rs:399:18 [INFO] [stderr] | [INFO] [stderr] 399 | eventloop: HwndLoop::new(Box::new(manager)), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `HwndLoop` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `AllocConsole` in this scope [INFO] [stderr] --> src/logger.rs:89:14 [INFO] [stderr] | [INFO] [stderr] 89 | unsafe { AllocConsole() }; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stderr] --> src/input/hid.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | ptr: PHIDP_PREPARSED_DATA, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidD_FreePreparsedData` in this scope [INFO] [stderr] --> src/input/hid.rs:55:14 [INFO] [stderr] | [INFO] [stderr] 55 | unsafe { HidD_FreePreparsedData(self.raw()) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stderr] --> src/input/hid.rs:80:11 [INFO] [stderr] | [INFO] [stderr] 80 | Unknown(NTSTATUS), [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stderr] --> src/input/hid.rs:84:22 [INFO] [stderr] | [INFO] [stderr] 84 | fn from_code(code: NTSTATUS) -> HidPError { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stderr] --> src/input/hid.rs:132:24 [INFO] [stderr] | [INFO] [stderr] 132 | fn hidp_result(status: NTSTATUS) -> Result<(), HidPError> { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HIDP_STATUS_SUCCESS` in this scope [INFO] [stderr] --> src/input/hid.rs:133:16 [INFO] [stderr] | [INFO] [stderr] 133 | if status == HIDP_STATUS_SUCCESS { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stderr] --> src/input/hid.rs:141:20 [INFO] [stderr] | [INFO] [stderr] 141 | pub fn new(data: PHIDP_PREPARSED_DATA) -> HidPreparsedData { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stderr] --> src/input/hid.rs:145:24 [INFO] [stderr] | [INFO] [stderr] 145 | pub fn raw(&self) -> PHIDP_PREPARSED_DATA { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HIDP_CAPS` in this scope [INFO] [stderr] --> src/input/hid.rs:149:32 [INFO] [stderr] | [INFO] [stderr] 149 | fn get_caps(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_GetCaps` in this scope [INFO] [stderr] --> src/input/hid.rs:151:23 [INFO] [stderr] | [INFO] [stderr] 151 | let rc = unsafe { HidP_GetCaps(self.raw(), &mut caps) }; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HIDP_VALUE_CAPS` in this scope [INFO] [stderr] --> src/input/hid.rs:156:42 [INFO] [stderr] | [INFO] [stderr] 156 | fn get_value_caps(&self) -> Result, HidPError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_GetValueCaps` in this scope [INFO] [stderr] --> src/input/hid.rs:161:16 [INFO] [stderr] | [INFO] [stderr] 161 | let rc = HidP_GetValueCaps(HidP_Input, vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stderr] --> src/input/hid.rs:161:34 [INFO] [stderr] | [INFO] [stderr] 161 | let rc = HidP_GetValueCaps(HidP_Input, vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HIDP_LINK_COLLECTION_NODE` in this scope [INFO] [stderr] --> src/input/hid.rs:171:53 [INFO] [stderr] | [INFO] [stderr] 171 | fn get_link_collection_nodes(&self) -> Result, HidPError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_GetLinkCollectionNodes` in this scope [INFO] [stderr] --> src/input/hid.rs:175:16 [INFO] [stderr] | [INFO] [stderr] 175 | let rc = HidP_GetLinkCollectionNodes(vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_MaxUsageListLength` in this scope [INFO] [stderr] --> src/input/hid.rs:185:14 [INFO] [stderr] | [INFO] [stderr] 185 | unsafe { HidP_MaxUsageListLength(HidP_Input, USAGE_PAGE_BUTTON, self.raw()) as usize } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stderr] --> src/input/hid.rs:185:38 [INFO] [stderr] | [INFO] [stderr] 185 | unsafe { HidP_MaxUsageListLength(HidP_Input, USAGE_PAGE_BUTTON, self.raw()) as usize } [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_GetUsages` in this scope [INFO] [stderr] --> src/input/hid.rs:192:7 [INFO] [stderr] | [INFO] [stderr] 192 | HidP_GetUsages( [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stderr] --> src/input/hid.rs:193:9 [INFO] [stderr] | [INFO] [stderr] 193 | HidP_Input, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidP_GetUsageValue` in this scope [INFO] [stderr] --> src/input/hid.rs:210:7 [INFO] [stderr] | [INFO] [stderr] 210 | HidP_GetUsageValue( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stderr] --> src/input/hid.rs:211:9 [INFO] [stderr] | [INFO] [stderr] 211 | HidP_Input, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HIDP_VALUE_CAPS` in this scope [INFO] [stderr] --> src/input/hid.rs:233:19 [INFO] [stderr] | [INFO] [stderr] 233 | value_caps: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/input/hid.rs:364:68 [INFO] [stderr] | [INFO] [stderr] 364 | fn get_rawinput_device_info_impl(device_id: RawInputDeviceId, cmd: UINT) -> Vec { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stderr] --> src/input/hid.rs:366:44 [INFO] [stderr] | [INFO] [stderr] 366 | RIDI_DEVICEINFO => std::mem::size_of::(), [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetRawInputDeviceInfoA` in this scope [INFO] [stderr] --> src/input/hid.rs:369:25 [INFO] [stderr] | [INFO] [stderr] 369 | let rc = unsafe { GetRawInputDeviceInfoA(device_id.as_handle(), cmd, std::ptr::null_mut(), &mut received_size) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: a tuple struct with a similar name exists: `RawInputDeviceId` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetRawInputDeviceInfoA` in this scope [INFO] [stderr] --> src/input/hid.rs:378:21 [INFO] [stderr] | [INFO] [stderr] 378 | let rc = unsafe { GetRawInputDeviceInfoA(device_id.as_handle(), cmd, ptr, &mut dummy) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: a tuple struct with a similar name exists: `RawInputDeviceId` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIDI_DEVICENAME` in this scope [INFO] [stderr] --> src/input/hid.rs:385:61 [INFO] [stderr] | [INFO] [stderr] 385 | let mut result = get_rawinput_device_info_impl(device_id, RIDI_DEVICENAME); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stderr] --> src/input/hid.rs:396:61 [INFO] [stderr] | [INFO] [stderr] 396 | fn get_rawinput_device_info(device_id: RawInputDeviceId) -> RID_DEVICE_INFO { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIDI_DEVICEINFO` in this scope [INFO] [stderr] --> src/input/hid.rs:397:56 [INFO] [stderr] | [INFO] [stderr] 397 | let bytes = get_rawinput_device_info_impl(device_id, RIDI_DEVICEINFO); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stderr] --> src/input/hid.rs:400:55 [INFO] [stderr] | [INFO] [stderr] 400 | std::ptr::read_unaligned(bytes.as_ptr() as *const RID_DEVICE_INFO) [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:404:35 [INFO] [stderr] | [INFO] [stderr] 404 | fn hid_get_product_string(handle: HANDLE) -> Option { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidD_GetProductString` in this scope [INFO] [stderr] --> src/input/hid.rs:409:25 [INFO] [stderr] | [INFO] [stderr] 409 | let result = unsafe { HidD_GetProductString(handle, ptr, buf_size as u32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `hid_get_product_string` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:423:40 [INFO] [stderr] | [INFO] [stderr] 423 | fn hid_get_manufacturer_string(handle: HANDLE) -> Option { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidD_GetManufacturerString` in this scope [INFO] [stderr] --> src/input/hid.rs:428:25 [INFO] [stderr] | [INFO] [stderr] 428 | let result = unsafe { HidD_GetManufacturerString(handle, ptr, buf_size as u32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `hid_get_manufacturer_string` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:442:34 [INFO] [stderr] | [INFO] [stderr] 442 | fn hid_get_serial_number(handle: HANDLE) -> Option { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidD_GetSerialNumberString` in this scope [INFO] [stderr] --> src/input/hid.rs:447:25 [INFO] [stderr] | [INFO] [stderr] 447 | let result = unsafe { HidD_GetSerialNumberString(handle, ptr, buf_size as u32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:461:58 [INFO] [stderr] | [INFO] [stderr] 461 | fn open_rawinput_hid_device(path: CString) -> io::Result { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/input/hid.rs:463:5 [INFO] [stderr] | [INFO] [stderr] 463 | CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FILE_SHARE_READ` in this scope [INFO] [stderr] --> src/input/hid.rs:466:7 [INFO] [stderr] | [INFO] [stderr] 466 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stderr] --> src/input/hid.rs:466:25 [INFO] [stderr] | [INFO] [stderr] 466 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stderr] --> src/input/hid.rs:468:7 [INFO] [stderr] | [INFO] [stderr] 468 | OPEN_EXISTING, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/input/hid.rs:474:18 [INFO] [stderr] | [INFO] [stderr] 474 | if hid_file == INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:484:39 [INFO] [stderr] | [INFO] [stderr] 484 | fn get_rawinput_device_name(hid_file: HANDLE) -> String { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/hid.rs:509:37 [INFO] [stderr] | [INFO] [stderr] 509 | fn hid_get_preparsed_data(hid_file: HANDLE) -> io::Result { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HidD_GetPreparsedData` in this scope [INFO] [stderr] --> src/input/hid.rs:511:25 [INFO] [stderr] | [INFO] [stderr] 511 | let result = unsafe { HidD_GetPreparsedData(hid_file, &mut preparsed_data) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `hid_get_preparsed_data` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/input/hid.rs:535:12 [INFO] [stderr] | [INFO] [stderr] 535 | unsafe { CloseHandle(hid_file) }; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIM_TYPEHID` in this scope [INFO] [stderr] --> src/input/hid.rs:537:14 [INFO] [stderr] | [INFO] [stderr] 537 | assert_eq!(RIM_TYPEHID, info.dwType); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/input/xinput.rs:14:36 [INFO] [stderr] | [INFO] [stderr] 14 | let mut vec = Vec::with_capacity(MAX_PATH); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetSystemDirectoryW` in this scope [INFO] [stderr] --> src/input/xinput.rs:16:15 [INFO] [stderr] | [INFO] [stderr] 16 | let len = GetSystemDirectoryW(vec.as_mut_ptr(), vec.capacity() as u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_system_directory` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/mod.rs:51:29 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn as_handle(self) -> HANDLE { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/mod.rs:52:15 [INFO] [stderr] | [INFO] [stderr] 52 | self.0 as HANDLE [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/mod.rs:55:30 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn from_handle(handle: HANDLE) -> RawInputDeviceId { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RAWHID` in this scope [INFO] [stderr] --> src/input/mod.rs:125:38 [INFO] [stderr] | [INFO] [stderr] 125 | fn handle_input(&mut self, input: &RAWHID) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `HwndLoopCallbacks` in this scope [INFO] [stderr] --> src/input/mod.rs:147:6 [INFO] [stderr] | [INFO] [stderr] 147 | impl HwndLoopCallbacks for RawInputManager { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:148:31 [INFO] [stderr] | [INFO] [stderr] 148 | fn set_up(&mut self, _hwnd: HWND) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SetThreadPriority` in this scope [INFO] [stderr] --> src/input/mod.rs:149:14 [INFO] [stderr] | [INFO] [stderr] 149 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetCurrentThread` in this scope [INFO] [stderr] --> src/input/mod.rs:149:32 [INFO] [stderr] | [INFO] [stderr] 149 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `THREAD_PRIORITY_HIGHEST` in this scope [INFO] [stderr] --> src/input/mod.rs:149:52 [INFO] [stderr] | [INFO] [stderr] 149 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:152:38 [INFO] [stderr] | [INFO] [stderr] 152 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/input/mod.rs:152:49 [INFO] [stderr] | [INFO] [stderr] 152 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stderr] --> src/input/mod.rs:152:58 [INFO] [stderr] | [INFO] [stderr] 152 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stderr] --> src/input/mod.rs:152:69 [INFO] [stderr] | [INFO] [stderr] 152 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stderr] --> src/input/mod.rs:152:80 [INFO] [stderr] | [INFO] [stderr] 152 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WM_INPUT` in this scope [INFO] [stderr] --> src/input/mod.rs:153:15 [INFO] [stderr] | [INFO] [stderr] 153 | if msg == WM_INPUT { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRAWINPUT` in this scope [INFO] [stderr] --> src/input/mod.rs:154:43 [INFO] [stderr] | [INFO] [stderr] 154 | self.handle_device_input(hwnd, l as HRAWINPUT); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WM_INPUT_DEVICE_CHANGE` in this scope [INFO] [stderr] --> src/input/mod.rs:155:22 [INFO] [stderr] | [INFO] [stderr] 155 | } else if msg == WM_INPUT_DEVICE_CHANGE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/input/mod.rs:156:55 [INFO] [stderr] | [INFO] [stderr] 156 | let device = RawInputDeviceId::from_handle(l as HANDLE); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GIDC_ARRIVAL` in this scope [INFO] [stderr] --> src/input/mod.rs:157:15 [INFO] [stderr] | [INFO] [stderr] 157 | if w == GIDC_ARRIVAL as usize { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GIDC_REMOVAL` in this scope [INFO] [stderr] --> src/input/mod.rs:159:22 [INFO] [stderr] | [INFO] [stderr] 159 | } else if w == GIDC_REMOVAL as usize { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DefWindowProcA` in this scope [INFO] [stderr] --> src/input/mod.rs:165:14 [INFO] [stderr] | [INFO] [stderr] 165 | unsafe { DefWindowProcA(hwnd, msg, w, l) } [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:168:38 [INFO] [stderr] | [INFO] [stderr] 168 | fn handle_command(&mut self, hwnd: HWND, cmd: RawInputCommand) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:201:48 [INFO] [stderr] | [INFO] [stderr] 201 | fn cmd_register_device_type(&mut self, hwnd: HWND, device_type: RawInputDeviceType, reply: Sender<()>) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RAWINPUTDEVICE` in this scope [INFO] [stderr] --> src/input/mod.rs:202:15 [INFO] [stderr] | [INFO] [stderr] 202 | let rid = RAWINPUTDEVICE { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIDEV_INPUTSINK` in this scope [INFO] [stderr] --> src/input/mod.rs:205:16 [INFO] [stderr] | [INFO] [stderr] 205 | dwFlags: RIDEV_INPUTSINK | RIDEV_DEVNOTIFY, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIDEV_DEVNOTIFY` in this scope [INFO] [stderr] --> src/input/mod.rs:205:34 [INFO] [stderr] | [INFO] [stderr] 205 | dwFlags: RIDEV_INPUTSINK | RIDEV_DEVNOTIFY, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RegisterRawInputDevices` in this scope [INFO] [stderr] --> src/input/mod.rs:208:27 [INFO] [stderr] | [INFO] [stderr] 208 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stderr] --> src/input/mod.rs:208:80 [INFO] [stderr] | [INFO] [stderr] 208 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/input/mod.rs:208:101 [INFO] [stderr] | [INFO] [stderr] 208 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:218:51 [INFO] [stderr] | [INFO] [stderr] 218 | fn cmd_unregister_device_type(&mut self, _hwnd: HWND, device_type: RawInputDeviceType, reply: Sender<()>) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RAWINPUTDEVICE` in this scope [INFO] [stderr] --> src/input/mod.rs:219:15 [INFO] [stderr] | [INFO] [stderr] 219 | let rid = RAWINPUTDEVICE { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIDEV_REMOVE` in this scope [INFO] [stderr] --> src/input/mod.rs:222:16 [INFO] [stderr] | [INFO] [stderr] 222 | dwFlags: RIDEV_REMOVE, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RegisterRawInputDevices` in this scope [INFO] [stderr] --> src/input/mod.rs:225:27 [INFO] [stderr] | [INFO] [stderr] 225 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stderr] --> src/input/mod.rs:225:80 [INFO] [stderr] | [INFO] [stderr] 225 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/input/mod.rs:225:101 [INFO] [stderr] | [INFO] [stderr] 225 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:235:39 [INFO] [stderr] | [INFO] [stderr] 235 | fn cmd_get_events(&mut self, _hwnd: HWND, reply: Sender>) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/input/mod.rs:242:44 [INFO] [stderr] | [INFO] [stderr] 242 | fn handle_device_input(&mut self, _hwnd: HWND, hrawinput: HRAWINPUT) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRAWINPUT` in this scope [INFO] [stderr] --> src/input/mod.rs:242:61 [INFO] [stderr] | [INFO] [stderr] 242 | fn handle_device_input(&mut self, _hwnd: HWND, hrawinput: HRAWINPUT) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetRawInputData` in this scope [INFO] [stderr] --> src/input/mod.rs:247:7 [INFO] [stderr] | [INFO] [stderr] 247 | GetRawInputData( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RID_INPUT` in this scope [INFO] [stderr] --> src/input/mod.rs:249:9 [INFO] [stderr] | [INFO] [stderr] 249 | RID_INPUT, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RAWINPUTHEADER` in this scope [INFO] [stderr] --> src/input/mod.rs:252:29 [INFO] [stderr] | [INFO] [stderr] 252 | std::mem::size_of::() as UINT, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/input/mod.rs:252:50 [INFO] [stderr] | [INFO] [stderr] 252 | std::mem::size_of::() as UINT, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RAWINPUT` in this scope [INFO] [stderr] --> src/input/mod.rs:261:73 [INFO] [stderr] | [INFO] [stderr] 261 | let rawinput = unsafe { *(&buffer as *const AlignedBuffer as *const RAWINPUT) }; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RIM_TYPEHID` in this scope [INFO] [stderr] --> src/input/mod.rs:269:16 [INFO] [stderr] | [INFO] [stderr] 269 | assert_eq!(RIM_TYPEHID, rawinput.header.dwType); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HwndLoop` in this scope [INFO] [stderr] --> src/input/mod.rs:389:14 [INFO] [stderr] | [INFO] [stderr] 389 | eventloop: HwndLoop, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleHandleW` in this scope [INFO] [stderr] --> src/lib.rs:47:26 [INFO] [stderr] | [INFO] [stderr] 47 | let process = unsafe { GetModuleHandleW(std::ptr::null_mut()) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/lib.rs:48:37 [INFO] [stderr] | [INFO] [stderr] 48 | let mut path = Vec::with_capacity(MAX_PATH); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleFileNameW` in this scope [INFO] [stderr] --> src/lib.rs:50:15 [INFO] [stderr] | [INFO] [stderr] 50 | let len = GetModuleFileNameW(process, path.as_mut_ptr(), MAX_PATH as u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/lib.rs:50:62 [INFO] [stderr] | [INFO] [stderr] 50 | let len = GetModuleFileNameW(process, path.as_mut_ptr(), MAX_PATH as u32); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::minwindef::MAX_PATH` [INFO] [stderr] --> src/lib.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GetModuleFileNameW`, `GetModuleHandleW` [INFO] [stderr] --> src/lib.rs:9:32 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::um::libloaderapi::{GetModuleFileNameW, GetModuleHandleW}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::consoleapi::AllocConsole` [INFO] [stderr] --> src/logger.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::um::consoleapi::AllocConsole; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `LPARAM`, `LRESULT`, `UINT`, `WPARAM` [INFO] [stderr] --> src/input/mod.rs:9:33 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::shared::minwindef::{LPARAM, LRESULT, UINT, WPARAM}; [INFO] [stderr] | ^^^^^^ ^^^^^^^ ^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::ntdef::HANDLE` [INFO] [stderr] --> src/input/mod.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use winapi::shared::ntdef::HANDLE; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::windef::HWND` [INFO] [stderr] --> src/input/mod.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::shared::windef::HWND; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GetCurrentThread`, `SetThreadPriority` [INFO] [stderr] --> src/input/mod.rs:12:37 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::um::processthreadsapi::{GetCurrentThread, SetThreadPriority}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::winbase::THREAD_PRIORITY_HIGHEST` [INFO] [stderr] --> src/input/mod.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use winapi::um::winbase::THREAD_PRIORITY_HIGHEST; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::winuser::*` [INFO] [stderr] --> src/input/mod.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use winapi::um::winuser::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `hwndloop::*` [INFO] [stderr] --> src/input/mod.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use hwndloop::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HidP_GetCaps`, `HidP_GetLinkCollectionNodes`, `HidP_GetUsageValue`, `HidP_GetUsages`, `HidP_GetValueCaps`, `HidP_MaxUsageListLength` [INFO] [stderr] --> src/input/hid.rs:6:3 [INFO] [stderr] | [INFO] [stderr] 6 | HidP_GetCaps, HidP_GetLinkCollectionNodes, HidP_GetUsageValue, HidP_GetUsages, HidP_GetValueCaps, [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 7 | HidP_MaxUsageListLength, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HIDP_STATUS_BAD_LOG_PHY_VALUES`, `HIDP_STATUS_BUFFER_TOO_SMALL`, `HIDP_STATUS_BUTTON_NOT_PRESSED`, `HIDP_STATUS_DATA_INDEX_NOT_FOUND`, `HIDP_STATUS_DATA_INDEX_OUT_OF_RANGE`, `HIDP_STATUS_I8042_TRANS_UNKNOWN`, `HIDP_STATUS_INCOMPATIBLE_REPORT_ID`, `HIDP_STATUS_INTERNAL_ERROR`, `HIDP_STATUS_INVALID_PREPARSED_DATA`, `HIDP_STATUS_INVALID_REPORT_LENGTH`, `HIDP_STATUS_INVALID_REPORT_TYPE`, `HIDP_STATUS_IS_VALUE_ARRAY`, `HIDP_STATUS_NOT_IMPLEMENTED`, `HIDP_STATUS_NOT_VALUE_ARRAY`, `HIDP_STATUS_NULL`, `HIDP_STATUS_REPORT_DOES_NOT_EXIST`, `HIDP_STATUS_SUCCESS`, `HIDP_STATUS_USAGE_NOT_FOUND`, `HIDP_STATUS_VALUE_OUT_OF_RANGE`, `HidP_Input` [INFO] [stderr] --> src/input/hid.rs:10:3 [INFO] [stderr] | [INFO] [stderr] 10 | HidP_Input, HIDP_STATUS_BAD_LOG_PHY_VALUES, HIDP_STATUS_BUFFER_TOO_SMALL, HIDP_STATUS_BUTTON_NOT_PRESSED, [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 11 | HIDP_STATUS_DATA_INDEX_NOT_FOUND, HIDP_STATUS_DATA_INDEX_OUT_OF_RANGE, HIDP_STATUS_I8042_TRANS_UNKNOWN, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 12 | HIDP_STATUS_INCOMPATIBLE_REPORT_ID, HIDP_STATUS_INTERNAL_ERROR, HIDP_STATUS_INVALID_PREPARSED_DATA, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 13 | HIDP_STATUS_INVALID_REPORT_LENGTH, HIDP_STATUS_INVALID_REPORT_TYPE, HIDP_STATUS_IS_VALUE_ARRAY, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 14 | HIDP_STATUS_NOT_IMPLEMENTED, HIDP_STATUS_NOT_VALUE_ARRAY, HIDP_STATUS_NULL, HIDP_STATUS_REPORT_DOES_NOT_EXIST, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 15 | HIDP_STATUS_SUCCESS, HIDP_STATUS_USAGE_NOT_FOUND, HIDP_STATUS_VALUE_OUT_OF_RANGE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HIDP_CAPS`, `HIDP_LINK_COLLECTION_NODE`, `HIDP_VALUE_CAPS`, `PHIDP_PREPARSED_DATA` [INFO] [stderr] --> src/input/hid.rs:17:29 [INFO] [stderr] | [INFO] [stderr] 17 | use winapi::shared::hidpi::{HIDP_CAPS, HIDP_LINK_COLLECTION_NODE, HIDP_VALUE_CAPS, PHIDP_PREPARSED_DATA}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HidD_FreePreparsedData`, `HidD_GetManufacturerString`, `HidD_GetPreparsedData`, `HidD_GetProductString`, `HidD_GetSerialNumberString` [INFO] [stderr] --> src/input/hid.rs:19:3 [INFO] [stderr] | [INFO] [stderr] 19 | HidD_FreePreparsedData, HidD_GetManufacturerString, HidD_GetPreparsedData, HidD_GetProductString, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 20 | HidD_GetSerialNumberString, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::minwindef::UINT` [INFO] [stderr] --> src/input/hid.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use winapi::shared::minwindef::UINT; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HANDLE`, `NTSTATUS` [INFO] [stderr] --> src/input/hid.rs:23:29 [INFO] [stderr] | [INFO] [stderr] 23 | use winapi::shared::ntdef::{HANDLE, NTSTATUS}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CreateFileA`, `OPEN_EXISTING` [INFO] [stderr] --> src/input/hid.rs:24:27 [INFO] [stderr] | [INFO] [stderr] 24 | use winapi::um::fileapi::{CreateFileA, OPEN_EXISTING}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::handleapi::CloseHandle` [INFO] [stderr] --> src/input/hid.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | use winapi::um::handleapi::CloseHandle; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::handleapi::INVALID_HANDLE_VALUE` [INFO] [stderr] --> src/input/hid.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FILE_SHARE_READ`, `FILE_SHARE_WRITE` [INFO] [stderr] --> src/input/hid.rs:27:25 [INFO] [stderr] | [INFO] [stderr] 27 | use winapi::um::winnt::{FILE_SHARE_READ, FILE_SHARE_WRITE}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::winuser::*` [INFO] [stderr] --> src/input/hid.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | use winapi::um::winuser::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/input/hid.rs:121:30 [INFO] [stderr] | [INFO] [stderr] 121 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::minwindef::MAX_PATH` [INFO] [stderr] --> src/input/xinput.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::um::sysinfoapi::GetSystemDirectoryW` [INFO] [stderr] --> src/input/xinput.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::um::sysinfoapi::GetSystemDirectoryW; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 123 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: Could not compile `dhc`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "d5ccf872313eed86fdfd3aaf7922603f486829ef6798c6a28f5e2cf7d131f3dd"` [INFO] running `"docker" "rm" "-f" "d5ccf872313eed86fdfd3aaf7922603f486829ef6798c6a28f5e2cf7d131f3dd"` [INFO] [stdout] d5ccf872313eed86fdfd3aaf7922603f486829ef6798c6a28f5e2cf7d131f3dd