[INFO] fetching crate dhc 0.2.1... [INFO] checking dhc-0.2.1 against master#0d37dca25a51fb900a402c94c8818ad1c2789e30 for pr-77526 [INFO] extracting crate dhc 0.2.1 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate dhc 0.2.1 on toolchain 0d37dca25a51fb900a402c94c8818ad1c2789e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate dhc 0.2.1 [INFO] finished tweaking crates.io crate dhc 0.2.1 [INFO] tweaked toml for crates.io crate dhc 0.2.1 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b705f3ce039dc5c7aa04dc4573ceaeb4998d9dc53fdc93523e2f22ebb4485f9d [INFO] running `Command { std: "docker" "start" "-a" "b705f3ce039dc5c7aa04dc4573ceaeb4998d9dc53fdc93523e2f22ebb4485f9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b705f3ce039dc5c7aa04dc4573ceaeb4998d9dc53fdc93523e2f22ebb4485f9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b705f3ce039dc5c7aa04dc4573ceaeb4998d9dc53fdc93523e2f22ebb4485f9d", kill_on_drop: false }` [INFO] [stdout] b705f3ce039dc5c7aa04dc4573ceaeb4998d9dc53fdc93523e2f22ebb4485f9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] eb6c4ded349cfd3d8811318ca0fc3af1119f933d2a646155a4064577b2c602c3 [INFO] running `Command { std: "docker" "start" "-a" "eb6c4ded349cfd3d8811318ca0fc3af1119f933d2a646155a4064577b2c602c3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling syn v1.0.42 [INFO] [stderr] Compiling slog v2.5.2 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking slog v1.7.1 [INFO] [stderr] Checking unchecked-index v0.2.2 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking crossbeam v0.2.12 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking triple_buffer v5.0.5 [INFO] [stderr] Checking slog-extra v0.1.2 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking log-panics v2.0.0 [INFO] [stderr] Checking rusty-xinput v1.2.0 [INFO] [stderr] Checking slog-stream v1.2.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Checking twoway v0.2.1 [INFO] [stderr] Checking hwndloop v0.1.5 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking slog-scope v4.3.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking slog-stdlog v3.0.5 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking term v0.6.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking slog-term v2.6.0 [INFO] [stderr] Compiling vergen v3.1.0 [INFO] [stderr] Compiling dhc v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking toml v0.5.6 [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::libloaderapi::{GetModuleFileNameW, GetModuleHandleW}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/logger.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::consoleapi::AllocConsole; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::{LPARAM, LRESULT, UINT, WPARAM}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/mod.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::ntdef::HANDLE; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/mod.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::shared::windef::HWND; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::processthreadsapi::{GetCurrentThread, SetThreadPriority}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/mod.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::um::winbase::THREAD_PRIORITY_HIGHEST; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/mod.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::hidpi::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::hidpi::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::shared::hidpi::{HIDP_CAPS, HIDP_LINK_COLLECTION_NODE, HIDP_VALUE_CAPS, PHIDP_PREPARSED_DATA}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::shared::hidsdi::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::shared::minwindef::UINT; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::shared::ntdef::{HANDLE, NTSTATUS}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/hid.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::um::fileapi::{CreateFileA, OPEN_EXISTING}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/hid.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | use winapi::um::handleapi::CloseHandle; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/hid.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/hid.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | use winapi::um::winnt::{FILE_SHARE_READ, FILE_SHARE_WRITE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/hid.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/xinput.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/xinput.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::sysinfoapi::GetSystemDirectoryW; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `rusty_xinput::XInputHandle`, `crate::input::DeviceDescription`, `crate::input::DeviceId`, `crate::input::DeviceType`, `crate::input::RawInputDeviceId`, `crate::input::XInputDeviceId` [INFO] [stdout] --> src/input/hid.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | use crate::input::{DeviceDescription, DeviceId, DeviceType, RawInputDeviceId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/input/xinput.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rusty_xinput::XInputHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `XInputHandle` in the root [INFO] [stdout] ... [INFO] [stdout] 7 | use crate::input::XInputDeviceId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::libloaderapi::{GetModuleFileNameW, GetModuleHandleW}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/logger.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::consoleapi::AllocConsole; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::{LPARAM, LRESULT, UINT, WPARAM}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/mod.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::ntdef::HANDLE; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/mod.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::shared::windef::HWND; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::processthreadsapi::{GetCurrentThread, SetThreadPriority}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/mod.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::um::winbase::THREAD_PRIORITY_HIGHEST; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/mod.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::hidpi::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::hidpi::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::shared::hidpi::{HIDP_CAPS, HIDP_LINK_COLLECTION_NODE, HIDP_VALUE_CAPS, PHIDP_PREPARSED_DATA}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::shared::hidsdi::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::shared::minwindef::UINT; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/hid.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::shared::ntdef::{HANDLE, NTSTATUS}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/hid.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::um::fileapi::{CreateFileA, OPEN_EXISTING}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/hid.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | use winapi::um::handleapi::CloseHandle; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/hid.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/hid.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | use winapi::um::winnt::{FILE_SHARE_READ, FILE_SHARE_WRITE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/hid.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input/xinput.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input/xinput.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::sysinfoapi::GetSystemDirectoryW; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `rusty_xinput::XInputHandle`, `crate::input::DeviceDescription`, `crate::input::DeviceId`, `crate::input::DeviceType`, `crate::input::RawInputDeviceId`, `crate::input::XInputDeviceId` [INFO] [stdout] --> src/input/hid.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | use crate::input::{DeviceDescription, DeviceId, DeviceType, RawInputDeviceId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/input/xinput.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rusty_xinput::XInputHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `XInputHandle` in the root [INFO] [stdout] ... [INFO] [stdout] 7 | use crate::input::XInputDeviceId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HwndLoop` [INFO] [stdout] --> src/input/mod.rs:400:18 [INFO] [stdout] | [INFO] [stdout] 400 | eventloop: HwndLoop::new(Box::new(manager)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `HwndLoop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AllocConsole` in this scope [INFO] [stdout] --> src/logger.rs:89:14 [INFO] [stdout] | [INFO] [stdout] 89 | unsafe { AllocConsole() }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stdout] --> src/input/hid.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | ptr: PHIDP_PREPARSED_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_FreePreparsedData` in this scope [INFO] [stdout] --> src/input/hid.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe { HidD_FreePreparsedData(self.raw()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/input/hid.rs:80:11 [INFO] [stdout] | [INFO] [stdout] 80 | Unknown(NTSTATUS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/input/hid.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | fn from_code(code: NTSTATUS) -> HidPError { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/input/hid.rs:132:24 [INFO] [stdout] | [INFO] [stdout] 132 | fn hidp_result(status: NTSTATUS) -> Result<(), HidPError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIDP_STATUS_SUCCESS` in this scope [INFO] [stdout] --> src/input/hid.rs:133:16 [INFO] [stdout] | [INFO] [stdout] 133 | if status == HIDP_STATUS_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stdout] --> src/input/hid.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn new(data: PHIDP_PREPARSED_DATA) -> HidPreparsedData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stdout] --> src/input/hid.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn raw(&self) -> PHIDP_PREPARSED_DATA { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDP_CAPS` in this scope [INFO] [stdout] --> src/input/hid.rs:149:32 [INFO] [stdout] | [INFO] [stdout] 140 | impl HidPreparsedData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 149 | fn get_caps(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_GetCaps` in this scope [INFO] [stdout] --> src/input/hid.rs:151:23 [INFO] [stdout] | [INFO] [stdout] 151 | let rc = unsafe { HidP_GetCaps(self.raw(), &mut caps) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDP_VALUE_CAPS` in this scope [INFO] [stdout] --> src/input/hid.rs:156:42 [INFO] [stdout] | [INFO] [stdout] 140 | impl HidPreparsedData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 156 | fn get_value_caps(&self) -> Result, HidPError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_GetValueCaps` in this scope [INFO] [stdout] --> src/input/hid.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | let rc = HidP_GetValueCaps(HidP_Input, vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stdout] --> src/input/hid.rs:161:34 [INFO] [stdout] | [INFO] [stdout] 161 | let rc = HidP_GetValueCaps(HidP_Input, vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDP_LINK_COLLECTION_NODE` in this scope [INFO] [stdout] --> src/input/hid.rs:171:53 [INFO] [stdout] | [INFO] [stdout] 140 | impl HidPreparsedData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 171 | fn get_link_collection_nodes(&self) -> Result, HidPError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_GetLinkCollectionNodes` in this scope [INFO] [stdout] --> src/input/hid.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | let rc = HidP_GetLinkCollectionNodes(vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_MaxUsageListLength` in this scope [INFO] [stdout] --> src/input/hid.rs:185:14 [INFO] [stdout] | [INFO] [stdout] 185 | unsafe { HidP_MaxUsageListLength(HidP_Input, USAGE_PAGE_BUTTON, self.raw()) as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stdout] --> src/input/hid.rs:185:38 [INFO] [stdout] | [INFO] [stdout] 185 | unsafe { HidP_MaxUsageListLength(HidP_Input, USAGE_PAGE_BUTTON, self.raw()) as usize } [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_GetUsages` in this scope [INFO] [stdout] --> src/input/hid.rs:192:7 [INFO] [stdout] | [INFO] [stdout] 192 | HidP_GetUsages( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stdout] --> src/input/hid.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | HidP_Input, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_GetUsageValue` in this scope [INFO] [stdout] --> src/input/hid.rs:210:7 [INFO] [stdout] | [INFO] [stdout] 210 | HidP_GetUsageValue( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stdout] --> src/input/hid.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | HidP_Input, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDP_VALUE_CAPS` in this scope [INFO] [stdout] --> src/input/hid.rs:233:19 [INFO] [stdout] | [INFO] [stdout] 230 | pub struct HidParser { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 233 | value_caps: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/input/hid.rs:364:68 [INFO] [stdout] | [INFO] [stdout] 364 | fn get_rawinput_device_info_impl(device_id: RawInputDeviceId, cmd: UINT) -> Vec { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stdout] --> src/input/hid.rs:366:44 [INFO] [stdout] | [INFO] [stdout] 364 | fn get_rawinput_device_info_impl(device_id: RawInputDeviceId, cmd: UINT) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 365 | let size = match cmd { [INFO] [stdout] 366 | RIDI_DEVICEINFO => std::mem::size_of::(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoA` in this scope [INFO] [stdout] --> src/input/hid.rs:369:25 [INFO] [stdout] | [INFO] [stdout] 369 | let rc = unsafe { GetRawInputDeviceInfoA(device_id.as_handle(), cmd, std::ptr::null_mut(), &mut received_size) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a tuple struct with a similar name exists: `RawInputDeviceId` [INFO] [stdout] | [INFO] [stdout] ::: src/input/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct RawInputDeviceId(pub u64); [INFO] [stdout] | ------------------------------------- similarly named tuple struct `RawInputDeviceId` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoA` in this scope [INFO] [stdout] --> src/input/hid.rs:378:21 [INFO] [stdout] | [INFO] [stdout] 378 | let rc = unsafe { GetRawInputDeviceInfoA(device_id.as_handle(), cmd, ptr, &mut dummy) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a tuple struct with a similar name exists: `RawInputDeviceId` [INFO] [stdout] | [INFO] [stdout] ::: src/input/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct RawInputDeviceId(pub u64); [INFO] [stdout] | ------------------------------------- similarly named tuple struct `RawInputDeviceId` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDI_DEVICENAME` in this scope [INFO] [stdout] --> src/input/hid.rs:385:61 [INFO] [stdout] | [INFO] [stdout] 385 | let mut result = get_rawinput_device_info_impl(device_id, RIDI_DEVICENAME); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stdout] --> src/input/hid.rs:396:61 [INFO] [stdout] | [INFO] [stdout] 396 | fn get_rawinput_device_info(device_id: RawInputDeviceId) -> RID_DEVICE_INFO { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDI_DEVICEINFO` in this scope [INFO] [stdout] --> src/input/hid.rs:397:56 [INFO] [stdout] | [INFO] [stdout] 397 | let bytes = get_rawinput_device_info_impl(device_id, RIDI_DEVICEINFO); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stdout] --> src/input/hid.rs:400:55 [INFO] [stdout] | [INFO] [stdout] 400 | std::ptr::read_unaligned(bytes.as_ptr() as *const RID_DEVICE_INFO) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:404:35 [INFO] [stdout] | [INFO] [stdout] 404 | fn hid_get_product_string(handle: HANDLE) -> Option { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetProductString` in this scope [INFO] [stdout] --> src/input/hid.rs:409:25 [INFO] [stdout] | [INFO] [stdout] 409 | let result = unsafe { HidD_GetProductString(handle, ptr, buf_size as u32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:423:40 [INFO] [stdout] | [INFO] [stdout] 423 | fn hid_get_manufacturer_string(handle: HANDLE) -> Option { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetManufacturerString` in this scope [INFO] [stdout] --> src/input/hid.rs:428:25 [INFO] [stdout] | [INFO] [stdout] 428 | let result = unsafe { HidD_GetManufacturerString(handle, ptr, buf_size as u32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:442:34 [INFO] [stdout] | [INFO] [stdout] 442 | fn hid_get_serial_number(handle: HANDLE) -> Option { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetSerialNumberString` in this scope [INFO] [stdout] --> src/input/hid.rs:447:25 [INFO] [stdout] | [INFO] [stdout] 447 | let result = unsafe { HidD_GetSerialNumberString(handle, ptr, buf_size as u32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:462:58 [INFO] [stdout] | [INFO] [stdout] 462 | fn open_rawinput_hid_device(path: CString) -> io::Result { [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileA` in this scope [INFO] [stdout] --> src/input/hid.rs:464:5 [INFO] [stdout] | [INFO] [stdout] 464 | CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_READ` in this scope [INFO] [stdout] --> src/input/hid.rs:467:7 [INFO] [stdout] | [INFO] [stdout] 467 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stdout] --> src/input/hid.rs:467:25 [INFO] [stdout] | [INFO] [stdout] 467 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/input/hid.rs:469:7 [INFO] [stdout] | [INFO] [stdout] 469 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/input/hid.rs:475:18 [INFO] [stdout] | [INFO] [stdout] 475 | if hid_file == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:485:39 [INFO] [stdout] | [INFO] [stdout] 485 | fn get_rawinput_device_name(hid_file: HANDLE) -> String { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:510:37 [INFO] [stdout] | [INFO] [stdout] 510 | fn hid_get_preparsed_data(hid_file: HANDLE) -> io::Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetPreparsedData` in this scope [INFO] [stdout] --> src/input/hid.rs:512:25 [INFO] [stdout] | [INFO] [stdout] 512 | let result = unsafe { HidD_GetPreparsedData(hid_file, &mut preparsed_data) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/input/hid.rs:536:12 [INFO] [stdout] | [INFO] [stdout] 536 | unsafe { CloseHandle(hid_file) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIM_TYPEHID` in this scope [INFO] [stdout] --> src/input/hid.rs:538:14 [INFO] [stdout] | [INFO] [stdout] 538 | assert_eq!(RIM_TYPEHID, info.dwType); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/input/xinput.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | let mut vec = Vec::with_capacity(MAX_PATH); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemDirectoryW` in this scope [INFO] [stdout] --> src/input/xinput.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | let len = GetSystemDirectoryW(vec.as_mut_ptr(), vec.capacity() as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/mod.rs:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn as_handle(self) -> HANDLE { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/mod.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | self.0 as HANDLE [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/mod.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn from_handle(handle: HANDLE) -> RawInputDeviceId { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWHID` in this scope [INFO] [stdout] --> src/input/mod.rs:125:38 [INFO] [stdout] | [INFO] [stdout] 125 | fn handle_input(&mut self, input: &RAWHID) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `HwndLoopCallbacks` in this scope [INFO] [stdout] --> src/input/mod.rs:148:6 [INFO] [stdout] | [INFO] [stdout] 148 | impl HwndLoopCallbacks for RawInputManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:149:31 [INFO] [stdout] | [INFO] [stdout] 149 | fn set_up(&mut self, _hwnd: HWND) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetThreadPriority` in this scope [INFO] [stdout] --> src/input/mod.rs:150:14 [INFO] [stdout] | [INFO] [stdout] 150 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThread` in this scope [INFO] [stdout] --> src/input/mod.rs:150:32 [INFO] [stdout] | [INFO] [stdout] 150 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `THREAD_PRIORITY_HIGHEST` in this scope [INFO] [stdout] --> src/input/mod.rs:150:52 [INFO] [stdout] | [INFO] [stdout] 150 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 153 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/input/mod.rs:153:49 [INFO] [stdout] | [INFO] [stdout] 153 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/input/mod.rs:153:58 [INFO] [stdout] | [INFO] [stdout] 153 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/input/mod.rs:153:69 [INFO] [stdout] | [INFO] [stdout] 153 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/input/mod.rs:153:80 [INFO] [stdout] | [INFO] [stdout] 153 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_INPUT` in this scope [INFO] [stdout] --> src/input/mod.rs:154:15 [INFO] [stdout] | [INFO] [stdout] 154 | if msg == WM_INPUT { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRAWINPUT` in this scope [INFO] [stdout] --> src/input/mod.rs:155:43 [INFO] [stdout] | [INFO] [stdout] 155 | self.handle_device_input(hwnd, l as HRAWINPUT); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_INPUT_DEVICE_CHANGE` in this scope [INFO] [stdout] --> src/input/mod.rs:156:22 [INFO] [stdout] | [INFO] [stdout] 156 | } else if msg == WM_INPUT_DEVICE_CHANGE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/mod.rs:157:55 [INFO] [stdout] | [INFO] [stdout] 157 | let device = RawInputDeviceId::from_handle(l as HANDLE); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GIDC_ARRIVAL` in this scope [INFO] [stdout] --> src/input/mod.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | if w == GIDC_ARRIVAL as usize { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GIDC_REMOVAL` in this scope [INFO] [stdout] --> src/input/mod.rs:160:22 [INFO] [stdout] | [INFO] [stdout] 160 | } else if w == GIDC_REMOVAL as usize { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcA` in this scope [INFO] [stdout] --> src/input/mod.rs:166:14 [INFO] [stdout] | [INFO] [stdout] 166 | unsafe { DefWindowProcA(hwnd, msg, w, l) } [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:169:38 [INFO] [stdout] | [INFO] [stdout] 169 | fn handle_command(&mut self, hwnd: HWND, cmd: RawInputCommand) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:202:48 [INFO] [stdout] | [INFO] [stdout] 202 | fn cmd_register_device_type(&mut self, hwnd: HWND, device_type: RawInputDeviceType, reply: Sender<()>) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/input/mod.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 203 | let rid = RAWINPUTDEVICE { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDEV_INPUTSINK` in this scope [INFO] [stdout] --> src/input/mod.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | dwFlags: RIDEV_INPUTSINK | RIDEV_DEVNOTIFY, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDEV_DEVNOTIFY` in this scope [INFO] [stdout] --> src/input/mod.rs:206:34 [INFO] [stdout] | [INFO] [stdout] 206 | dwFlags: RIDEV_INPUTSINK | RIDEV_DEVNOTIFY, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterRawInputDevices` in this scope [INFO] [stdout] --> src/input/mod.rs:209:27 [INFO] [stdout] | [INFO] [stdout] 209 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/input/mod.rs:209:80 [INFO] [stdout] | [INFO] [stdout] 192 | impl RawInputManager { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 209 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/input/mod.rs:209:101 [INFO] [stdout] | [INFO] [stdout] 209 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:219:51 [INFO] [stdout] | [INFO] [stdout] 219 | fn cmd_unregister_device_type(&mut self, _hwnd: HWND, device_type: RawInputDeviceType, reply: Sender<()>) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/input/mod.rs:220:15 [INFO] [stdout] | [INFO] [stdout] 220 | let rid = RAWINPUTDEVICE { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDEV_REMOVE` in this scope [INFO] [stdout] --> src/input/mod.rs:223:16 [INFO] [stdout] | [INFO] [stdout] 223 | dwFlags: RIDEV_REMOVE, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterRawInputDevices` in this scope [INFO] [stdout] --> src/input/mod.rs:226:27 [INFO] [stdout] | [INFO] [stdout] 226 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dhc` [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/input/mod.rs:226:80 [INFO] [stdout] | [INFO] [stdout] 192 | impl RawInputManager { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 226 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/input/mod.rs:226:101 [INFO] [stdout] | [INFO] [stdout] 226 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:236:39 [INFO] [stdout] | [INFO] [stdout] 236 | fn cmd_get_events(&mut self, _hwnd: HWND, reply: Sender>) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:243:44 [INFO] [stdout] | [INFO] [stdout] 243 | fn handle_device_input(&mut self, _hwnd: HWND, hrawinput: HRAWINPUT) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRAWINPUT` in this scope [INFO] [stdout] --> src/input/mod.rs:243:61 [INFO] [stdout] | [INFO] [stdout] 243 | fn handle_device_input(&mut self, _hwnd: HWND, hrawinput: HRAWINPUT) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputData` in this scope [INFO] [stdout] --> src/input/mod.rs:248:7 [INFO] [stdout] | [INFO] [stdout] 248 | GetRawInputData( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RID_INPUT` in this scope [INFO] [stdout] --> src/input/mod.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | RID_INPUT, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTHEADER` in this scope [INFO] [stdout] --> src/input/mod.rs:253:29 [INFO] [stdout] | [INFO] [stdout] 192 | impl RawInputManager { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 253 | std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/input/mod.rs:253:50 [INFO] [stdout] | [INFO] [stdout] 253 | std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUT` in this scope [INFO] [stdout] --> src/input/mod.rs:262:73 [INFO] [stdout] | [INFO] [stdout] 262 | let rawinput = unsafe { *(&buffer as *const AlignedBuffer as *const RAWINPUT) }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIM_TYPEHID` in this scope [INFO] [stdout] --> src/input/mod.rs:270:16 [INFO] [stdout] | [INFO] [stdout] 270 | assert_eq!(RIM_TYPEHID, rawinput.header.dwType); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HwndLoop` in this scope [INFO] [stdout] --> src/input/mod.rs:390:14 [INFO] [stdout] | [INFO] [stdout] 390 | eventloop: HwndLoop, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/lib.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | let process = unsafe { GetModuleHandleW(std::ptr::null_mut()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/lib.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | let mut path = Vec::with_capacity(MAX_PATH); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleFileNameW` in this scope [INFO] [stdout] --> src/lib.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | let len = GetModuleFileNameW(process, path.as_mut_ptr(), MAX_PATH as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/lib.rs:52:62 [INFO] [stdout] | [INFO] [stdout] 52 | let len = GetModuleFileNameW(process, path.as_mut_ptr(), MAX_PATH as u32); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hwndloop::*` [INFO] [stdout] --> src/input/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use hwndloop::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/input/hid.rs:121:30 [INFO] [stdout] | [INFO] [stdout] 121 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 123 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HwndLoop` [INFO] [stdout] --> src/input/mod.rs:400:18 [INFO] [stdout] | [INFO] [stdout] 400 | eventloop: HwndLoop::new(Box::new(manager)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `HwndLoop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AllocConsole` in this scope [INFO] [stdout] --> src/logger.rs:89:14 [INFO] [stdout] | [INFO] [stdout] 89 | unsafe { AllocConsole() }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stdout] --> src/input/hid.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | ptr: PHIDP_PREPARSED_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_FreePreparsedData` in this scope [INFO] [stdout] --> src/input/hid.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe { HidD_FreePreparsedData(self.raw()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/input/hid.rs:80:11 [INFO] [stdout] | [INFO] [stdout] 80 | Unknown(NTSTATUS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/input/hid.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | fn from_code(code: NTSTATUS) -> HidPError { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/input/hid.rs:132:24 [INFO] [stdout] | [INFO] [stdout] 132 | fn hidp_result(status: NTSTATUS) -> Result<(), HidPError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIDP_STATUS_SUCCESS` in this scope [INFO] [stdout] --> src/input/hid.rs:133:16 [INFO] [stdout] | [INFO] [stdout] 133 | if status == HIDP_STATUS_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stdout] --> src/input/hid.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn new(data: PHIDP_PREPARSED_DATA) -> HidPreparsedData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PHIDP_PREPARSED_DATA` in this scope [INFO] [stdout] --> src/input/hid.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn raw(&self) -> PHIDP_PREPARSED_DATA { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDP_CAPS` in this scope [INFO] [stdout] --> src/input/hid.rs:149:32 [INFO] [stdout] | [INFO] [stdout] 140 | impl HidPreparsedData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 149 | fn get_caps(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_GetCaps` in this scope [INFO] [stdout] --> src/input/hid.rs:151:23 [INFO] [stdout] | [INFO] [stdout] 151 | let rc = unsafe { HidP_GetCaps(self.raw(), &mut caps) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDP_VALUE_CAPS` in this scope [INFO] [stdout] --> src/input/hid.rs:156:42 [INFO] [stdout] | [INFO] [stdout] 140 | impl HidPreparsedData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 156 | fn get_value_caps(&self) -> Result, HidPError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_GetValueCaps` in this scope [INFO] [stdout] --> src/input/hid.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | let rc = HidP_GetValueCaps(HidP_Input, vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stdout] --> src/input/hid.rs:161:34 [INFO] [stdout] | [INFO] [stdout] 161 | let rc = HidP_GetValueCaps(HidP_Input, vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDP_LINK_COLLECTION_NODE` in this scope [INFO] [stdout] --> src/input/hid.rs:171:53 [INFO] [stdout] | [INFO] [stdout] 140 | impl HidPreparsedData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 171 | fn get_link_collection_nodes(&self) -> Result, HidPError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_GetLinkCollectionNodes` in this scope [INFO] [stdout] --> src/input/hid.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | let rc = HidP_GetLinkCollectionNodes(vec.as_mut_ptr(), &mut len, self.raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_MaxUsageListLength` in this scope [INFO] [stdout] --> src/input/hid.rs:185:14 [INFO] [stdout] | [INFO] [stdout] 185 | unsafe { HidP_MaxUsageListLength(HidP_Input, USAGE_PAGE_BUTTON, self.raw()) as usize } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stdout] --> src/input/hid.rs:185:38 [INFO] [stdout] | [INFO] [stdout] 185 | unsafe { HidP_MaxUsageListLength(HidP_Input, USAGE_PAGE_BUTTON, self.raw()) as usize } [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_GetUsages` in this scope [INFO] [stdout] --> src/input/hid.rs:192:7 [INFO] [stdout] | [INFO] [stdout] 192 | HidP_GetUsages( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stdout] --> src/input/hid.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | HidP_Input, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidP_GetUsageValue` in this scope [INFO] [stdout] --> src/input/hid.rs:210:7 [INFO] [stdout] | [INFO] [stdout] 210 | HidP_GetUsageValue( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HidP_Input` in this scope [INFO] [stdout] --> src/input/hid.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | HidP_Input, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDP_VALUE_CAPS` in this scope [INFO] [stdout] --> src/input/hid.rs:233:19 [INFO] [stdout] | [INFO] [stdout] 230 | pub struct HidParser { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 233 | value_caps: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/input/hid.rs:364:68 [INFO] [stdout] | [INFO] [stdout] 364 | fn get_rawinput_device_info_impl(device_id: RawInputDeviceId, cmd: UINT) -> Vec { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stdout] --> src/input/hid.rs:366:44 [INFO] [stdout] | [INFO] [stdout] 364 | fn get_rawinput_device_info_impl(device_id: RawInputDeviceId, cmd: UINT) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 365 | let size = match cmd { [INFO] [stdout] 366 | RIDI_DEVICEINFO => std::mem::size_of::(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoA` in this scope [INFO] [stdout] --> src/input/hid.rs:369:25 [INFO] [stdout] | [INFO] [stdout] 369 | let rc = unsafe { GetRawInputDeviceInfoA(device_id.as_handle(), cmd, std::ptr::null_mut(), &mut received_size) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a tuple struct with a similar name exists: `RawInputDeviceId` [INFO] [stdout] | [INFO] [stdout] ::: src/input/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct RawInputDeviceId(pub u64); [INFO] [stdout] | ------------------------------------- similarly named tuple struct `RawInputDeviceId` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoA` in this scope [INFO] [stdout] --> src/input/hid.rs:378:21 [INFO] [stdout] | [INFO] [stdout] 378 | let rc = unsafe { GetRawInputDeviceInfoA(device_id.as_handle(), cmd, ptr, &mut dummy) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a tuple struct with a similar name exists: `RawInputDeviceId` [INFO] [stdout] | [INFO] [stdout] ::: src/input/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct RawInputDeviceId(pub u64); [INFO] [stdout] | ------------------------------------- similarly named tuple struct `RawInputDeviceId` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDI_DEVICENAME` in this scope [INFO] [stdout] --> src/input/hid.rs:385:61 [INFO] [stdout] | [INFO] [stdout] 385 | let mut result = get_rawinput_device_info_impl(device_id, RIDI_DEVICENAME); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stdout] --> src/input/hid.rs:396:61 [INFO] [stdout] | [INFO] [stdout] 396 | fn get_rawinput_device_info(device_id: RawInputDeviceId) -> RID_DEVICE_INFO { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDI_DEVICEINFO` in this scope [INFO] [stdout] --> src/input/hid.rs:397:56 [INFO] [stdout] | [INFO] [stdout] 397 | let bytes = get_rawinput_device_info_impl(device_id, RIDI_DEVICEINFO); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RID_DEVICE_INFO` in this scope [INFO] [stdout] --> src/input/hid.rs:400:55 [INFO] [stdout] | [INFO] [stdout] 400 | std::ptr::read_unaligned(bytes.as_ptr() as *const RID_DEVICE_INFO) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:404:35 [INFO] [stdout] | [INFO] [stdout] 404 | fn hid_get_product_string(handle: HANDLE) -> Option { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetProductString` in this scope [INFO] [stdout] --> src/input/hid.rs:409:25 [INFO] [stdout] | [INFO] [stdout] 409 | let result = unsafe { HidD_GetProductString(handle, ptr, buf_size as u32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:423:40 [INFO] [stdout] | [INFO] [stdout] 423 | fn hid_get_manufacturer_string(handle: HANDLE) -> Option { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetManufacturerString` in this scope [INFO] [stdout] --> src/input/hid.rs:428:25 [INFO] [stdout] | [INFO] [stdout] 428 | let result = unsafe { HidD_GetManufacturerString(handle, ptr, buf_size as u32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:442:34 [INFO] [stdout] | [INFO] [stdout] 442 | fn hid_get_serial_number(handle: HANDLE) -> Option { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetSerialNumberString` in this scope [INFO] [stdout] --> src/input/hid.rs:447:25 [INFO] [stdout] | [INFO] [stdout] 447 | let result = unsafe { HidD_GetSerialNumberString(handle, ptr, buf_size as u32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:462:58 [INFO] [stdout] | [INFO] [stdout] 462 | fn open_rawinput_hid_device(path: CString) -> io::Result { [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileA` in this scope [INFO] [stdout] --> src/input/hid.rs:464:5 [INFO] [stdout] | [INFO] [stdout] 464 | CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_READ` in this scope [INFO] [stdout] --> src/input/hid.rs:467:7 [INFO] [stdout] | [INFO] [stdout] 467 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stdout] --> src/input/hid.rs:467:25 [INFO] [stdout] | [INFO] [stdout] 467 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/input/hid.rs:469:7 [INFO] [stdout] | [INFO] [stdout] 469 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/input/hid.rs:475:18 [INFO] [stdout] | [INFO] [stdout] 475 | if hid_file == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:485:39 [INFO] [stdout] | [INFO] [stdout] 485 | fn get_rawinput_device_name(hid_file: HANDLE) -> String { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/hid.rs:510:37 [INFO] [stdout] | [INFO] [stdout] 510 | fn hid_get_preparsed_data(hid_file: HANDLE) -> io::Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetPreparsedData` in this scope [INFO] [stdout] --> src/input/hid.rs:512:25 [INFO] [stdout] | [INFO] [stdout] 512 | let result = unsafe { HidD_GetPreparsedData(hid_file, &mut preparsed_data) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/input/hid.rs:536:12 [INFO] [stdout] | [INFO] [stdout] 536 | unsafe { CloseHandle(hid_file) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIM_TYPEHID` in this scope [INFO] [stdout] --> src/input/hid.rs:538:14 [INFO] [stdout] | [INFO] [stdout] 538 | assert_eq!(RIM_TYPEHID, info.dwType); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/input/xinput.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | let mut vec = Vec::with_capacity(MAX_PATH); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemDirectoryW` in this scope [INFO] [stdout] --> src/input/xinput.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | let len = GetSystemDirectoryW(vec.as_mut_ptr(), vec.capacity() as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/mod.rs:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn as_handle(self) -> HANDLE { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/mod.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | self.0 as HANDLE [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/mod.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn from_handle(handle: HANDLE) -> RawInputDeviceId { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWHID` in this scope [INFO] [stdout] --> src/input/mod.rs:125:38 [INFO] [stdout] | [INFO] [stdout] 125 | fn handle_input(&mut self, input: &RAWHID) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `HwndLoopCallbacks` in this scope [INFO] [stdout] --> src/input/mod.rs:148:6 [INFO] [stdout] | [INFO] [stdout] 148 | impl HwndLoopCallbacks for RawInputManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:149:31 [INFO] [stdout] | [INFO] [stdout] 149 | fn set_up(&mut self, _hwnd: HWND) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetThreadPriority` in this scope [INFO] [stdout] --> src/input/mod.rs:150:14 [INFO] [stdout] | [INFO] [stdout] 150 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThread` in this scope [INFO] [stdout] --> src/input/mod.rs:150:32 [INFO] [stdout] | [INFO] [stdout] 150 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `THREAD_PRIORITY_HIGHEST` in this scope [INFO] [stdout] --> src/input/mod.rs:150:52 [INFO] [stdout] | [INFO] [stdout] 150 | unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST as i32) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 153 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/input/mod.rs:153:49 [INFO] [stdout] | [INFO] [stdout] 153 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/input/mod.rs:153:58 [INFO] [stdout] | [INFO] [stdout] 153 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/input/mod.rs:153:69 [INFO] [stdout] | [INFO] [stdout] 153 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/input/mod.rs:153:80 [INFO] [stdout] | [INFO] [stdout] 153 | fn handle_message(&mut self, hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_INPUT` in this scope [INFO] [stdout] --> src/input/mod.rs:154:15 [INFO] [stdout] | [INFO] [stdout] 154 | if msg == WM_INPUT { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRAWINPUT` in this scope [INFO] [stdout] --> src/input/mod.rs:155:43 [INFO] [stdout] | [INFO] [stdout] 155 | self.handle_device_input(hwnd, l as HRAWINPUT); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_INPUT_DEVICE_CHANGE` in this scope [INFO] [stdout] --> src/input/mod.rs:156:22 [INFO] [stdout] | [INFO] [stdout] 156 | } else if msg == WM_INPUT_DEVICE_CHANGE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/input/mod.rs:157:55 [INFO] [stdout] | [INFO] [stdout] 157 | let device = RawInputDeviceId::from_handle(l as HANDLE); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GIDC_ARRIVAL` in this scope [INFO] [stdout] --> src/input/mod.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | if w == GIDC_ARRIVAL as usize { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GIDC_REMOVAL` in this scope [INFO] [stdout] --> src/input/mod.rs:160:22 [INFO] [stdout] | [INFO] [stdout] 160 | } else if w == GIDC_REMOVAL as usize { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcA` in this scope [INFO] [stdout] --> src/input/mod.rs:166:14 [INFO] [stdout] | [INFO] [stdout] 166 | unsafe { DefWindowProcA(hwnd, msg, w, l) } [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:169:38 [INFO] [stdout] | [INFO] [stdout] 169 | fn handle_command(&mut self, hwnd: HWND, cmd: RawInputCommand) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:202:48 [INFO] [stdout] | [INFO] [stdout] 202 | fn cmd_register_device_type(&mut self, hwnd: HWND, device_type: RawInputDeviceType, reply: Sender<()>) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/input/mod.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 203 | let rid = RAWINPUTDEVICE { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDEV_INPUTSINK` in this scope [INFO] [stdout] --> src/input/mod.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | dwFlags: RIDEV_INPUTSINK | RIDEV_DEVNOTIFY, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDEV_DEVNOTIFY` in this scope [INFO] [stdout] --> src/input/mod.rs:206:34 [INFO] [stdout] | [INFO] [stdout] 206 | dwFlags: RIDEV_INPUTSINK | RIDEV_DEVNOTIFY, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterRawInputDevices` in this scope [INFO] [stdout] --> src/input/mod.rs:209:27 [INFO] [stdout] | [INFO] [stdout] 209 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/input/mod.rs:209:80 [INFO] [stdout] | [INFO] [stdout] 192 | impl RawInputManager { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 209 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/input/mod.rs:209:101 [INFO] [stdout] | [INFO] [stdout] 209 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:219:51 [INFO] [stdout] | [INFO] [stdout] 219 | fn cmd_unregister_device_type(&mut self, _hwnd: HWND, device_type: RawInputDeviceType, reply: Sender<()>) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/input/mod.rs:220:15 [INFO] [stdout] | [INFO] [stdout] 220 | let rid = RAWINPUTDEVICE { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDEV_REMOVE` in this scope [INFO] [stdout] --> src/input/mod.rs:223:16 [INFO] [stdout] | [INFO] [stdout] 223 | dwFlags: RIDEV_REMOVE, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterRawInputDevices` in this scope [INFO] [stdout] --> src/input/mod.rs:226:27 [INFO] [stdout] | [INFO] [stdout] 226 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/input/mod.rs:226:80 [INFO] [stdout] | [INFO] [stdout] 192 | impl RawInputManager { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 226 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/input/mod.rs:226:101 [INFO] [stdout] | [INFO] [stdout] 226 | let result = unsafe { RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as UINT) }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:236:39 [INFO] [stdout] | [INFO] [stdout] 236 | fn cmd_get_events(&mut self, _hwnd: HWND, reply: Sender>) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/input/mod.rs:243:44 [INFO] [stdout] | [INFO] [stdout] 243 | fn handle_device_input(&mut self, _hwnd: HWND, hrawinput: HRAWINPUT) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRAWINPUT` in this scope [INFO] [stdout] --> src/input/mod.rs:243:61 [INFO] [stdout] | [INFO] [stdout] 243 | fn handle_device_input(&mut self, _hwnd: HWND, hrawinput: HRAWINPUT) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputData` in this scope [INFO] [stdout] --> src/input/mod.rs:248:7 [INFO] [stdout] | [INFO] [stdout] 248 | GetRawInputData( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RID_INPUT` in this scope [INFO] [stdout] --> src/input/mod.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | RID_INPUT, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTHEADER` in this scope [INFO] [stdout] --> src/input/mod.rs:253:29 [INFO] [stdout] | [INFO] [stdout] 192 | impl RawInputManager { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 253 | std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/input/mod.rs:253:50 [INFO] [stdout] | [INFO] [stdout] 253 | std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUT` in this scope [INFO] [stdout] --> src/input/mod.rs:262:73 [INFO] [stdout] | [INFO] [stdout] 262 | let rawinput = unsafe { *(&buffer as *const AlignedBuffer as *const RAWINPUT) }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIM_TYPEHID` in this scope [INFO] [stdout] --> src/input/mod.rs:270:16 [INFO] [stdout] | [INFO] [stdout] 270 | assert_eq!(RIM_TYPEHID, rawinput.header.dwType); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HwndLoop` in this scope [INFO] [stdout] --> src/input/mod.rs:390:14 [INFO] [stdout] | [INFO] [stdout] 390 | eventloop: HwndLoop, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/lib.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | let process = unsafe { GetModuleHandleW(std::ptr::null_mut()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/lib.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | let mut path = Vec::with_capacity(MAX_PATH); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleFileNameW` in this scope [INFO] [stdout] --> src/lib.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | let len = GetModuleFileNameW(process, path.as_mut_ptr(), MAX_PATH as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/lib.rs:52:62 [INFO] [stdout] | [INFO] [stdout] 52 | let len = GetModuleFileNameW(process, path.as_mut_ptr(), MAX_PATH as u32); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hwndloop::*` [INFO] [stdout] --> src/input/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use hwndloop::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/input/hid.rs:121:30 [INFO] [stdout] | [INFO] [stdout] 121 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 123 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "eb6c4ded349cfd3d8811318ca0fc3af1119f933d2a646155a4064577b2c602c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb6c4ded349cfd3d8811318ca0fc3af1119f933d2a646155a4064577b2c602c3", kill_on_drop: false }` [INFO] [stdout] eb6c4ded349cfd3d8811318ca0fc3af1119f933d2a646155a4064577b2c602c3