[INFO] cloning repository https://github.com/foriequal0/tpmiddle-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/foriequal0/tpmiddle-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fforiequal0%2Ftpmiddle-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fforiequal0%2Ftpmiddle-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] da27d03a6c71cc170b70523b99e56e52672948e5 [INFO] checking foriequal0/tpmiddle-rs against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fforiequal0%2Ftpmiddle-rs" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/foriequal0/tpmiddle-rs on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/foriequal0/tpmiddle-rs [INFO] finished tweaking git repo https://github.com/foriequal0/tpmiddle-rs [INFO] tweaked toml for git repo https://github.com/foriequal0/tpmiddle-rs written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/foriequal0/tpmiddle-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ab3e8a9e6d66f74d72a054e2f3ae5447253a23785dec0aadbba42c738748d5c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7ab3e8a9e6d66f74d72a054e2f3ae5447253a23785dec0aadbba42c738748d5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ab3e8a9e6d66f74d72a054e2f3ae5447253a23785dec0aadbba42c738748d5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ab3e8a9e6d66f74d72a054e2f3ae5447253a23785dec0aadbba42c738748d5c", kill_on_drop: false }` [INFO] [stdout] 7ab3e8a9e6d66f74d72a054e2f3ae5447253a23785dec0aadbba42c738748d5c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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] 7bc70ef8a9affd99b8291a28dfae914ef057df9b911a0f5b6f3653adb028f79b [INFO] running `Command { std: "docker" "start" "-a" "7bc70ef8a9affd99b8291a28dfae914ef057df9b911a0f5b6f3653adb028f79b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling slog v2.5.2 [INFO] [stderr] Compiling syn v1.0.42 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling cc v1.0.60 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking regex-syntax v0.6.20 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking os_str_bytes v2.3.2 [INFO] [stderr] Checking spin_sleep v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking aho-corasick v0.7.14 [INFO] [stderr] Checking crossbeam-channel v0.4.4 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking slog-scope v4.3.0 [INFO] [stderr] Checking slog-stdlog v4.1.0 [INFO] [stderr] Checking slog-async v2.5.0 [INFO] [stderr] Compiling field-offset v0.3.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking as-slice v0.1.4 [INFO] [stderr] Compiling hidapi v1.2.3 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking time v0.1.44 [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 aligned v0.3.4 [INFO] [stderr] Checking regex v1.4.1 [INFO] [stderr] Checking slog-term v2.6.0 [INFO] [stderr] Checking slog-envlogger v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Checking thiserror v1.0.21 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Checking tpmiddle-rs v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/bt_wheel_blocker.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::{DWORD, LPARAM, 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/bt_wheel_blocker.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::ntdef::{HANDLE, NULL}; [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/bt_wheel_blocker.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/bt_wheel_blocker.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::sysinfoapi::GetTickCount; [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/bt_wheel_blocker.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | 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/control.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/control.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winuser::WHEEL_DELTA; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `_core` in `winapi` [INFO] [stdout] --> src/hook.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::_core::marker::PhantomData; [INFO] [stdout] | ^^^^^ could not find `_core` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/bt_wheel_blocker.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hook.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::minwindef::{DWORD, HMODULE, LPARAM, LRESULT, 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/hook.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::ntdef::NULL; [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/hook.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::windef::HHOOK; [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/hook.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::libloaderapi::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/hook.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::winuser::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/hook.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::minwindef::{DWORD, LPVOID, 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.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::ntdef::{HANDLE, NULL}; [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.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | 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/tpmiddle.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::minwindef::{LPARAM, 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/tpmiddle.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | 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/tpmiddle.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winuser::{HRAWINPUT, MOUSEEVENTF_HWHEEL, MOUSEEVENTF_WHEEL, WM_INPUT}; [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/transport_agnostic_tpmiddle.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::minwindef::{DWORD, LPARAM, 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/transport_agnostic_tpmiddle.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | 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/transport_agnostic_tpmiddle.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | 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/transport_agnostic_tpmiddle.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::winuser::{GIDC_ARRIVAL, GIDC_REMOVAL, WM_INPUT_DEVICE_CHANGE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/window.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `_core` in `winapi` [INFO] [stdout] --> src/window.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::_core::marker::PhantomData; [INFO] [stdout] | ^^^^^ could not find `_core` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/input.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/window.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::shared::basetsd::LONG_PTR; [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/window.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::minwindef::{FALSE, LPARAM, LRESULT, TRUE, 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/window.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::shared::ntdef::{LPCWSTR, NULL}; [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/window.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | 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/window.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::libloaderapi::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/window.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::wincon::GetConsoleWindow; [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/window.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | 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 `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | / c_try_ne!( [INFO] [stdout] 101 | | -1i32 as _, [INFO] [stdout] 102 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 103 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | / c_try_ne!( [INFO] [stdout] 106 | | -1i32 as _, [INFO] [stdout] 107 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 108 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | / c_try_ne!( [INFO] [stdout] 120 | | -1i32 as _, [INFO] [stdout] 121 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 122 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | / c_try_ne!( [INFO] [stdout] 125 | | -1i32 as _, [INFO] [stdout] 126 | | GetRawInputDeviceInfoW( [INFO] [stdout] 127 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 131 | | ) [INFO] [stdout] 132 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | / c_try_ne!( [INFO] [stdout] 147 | | (-1i32) as UINT, [INFO] [stdout] 148 | | GetRawInputDeviceInfoW( [INFO] [stdout] 149 | | device_handle, [INFO] [stdout] ... | [INFO] [stdout] 153 | | ) [INFO] [stdout] 154 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use ::winapi::shared::minwindef::{BOOL, FALSE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let hhook = c_try_nonnull!(SetWindowsHookExW(id_hook, lpfn, hmod, dw_thread_id))?; [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use ::winapi::shared::minwindef::{BOOL, FALSE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/input.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | / c_try_ne!( [INFO] [stdout] 173 | | (-1i32) as UINT, [INFO] [stdout] 174 | | GetRawInputDeviceInfoW( [INFO] [stdout] 175 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 179 | | ) [INFO] [stdout] 180 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 40 | | 0, [INFO] [stdout] 41 | | class.atom, [INFO] [stdout] 42 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 51 | | proc.as_mut() as *mut T as _, [INFO] [stdout] 52 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 55 | | hwnd, [INFO] [stdout] 56 | | 0, [INFO] [stdout] 57 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 58 | | )) { [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use ::winapi::shared::minwindef::{BOOL, FALSE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:74:26 [INFO] [stdout] | [INFO] [stdout] 74 | let status = c_try_ne!(-1, GetMessageW(&mut message, self.hwnd, 0, 0))?; [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:167:27 [INFO] [stdout] | [INFO] [stdout] 167 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | let atom = c_try_nonnull!(RegisterClassExW(&class))?; [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use ::winapi::shared::minwindef::{BOOL, FALSE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/window.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::ctypes::wchar_t; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/bt_wheel_blocker.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::{DWORD, LPARAM, 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/bt_wheel_blocker.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::ntdef::{HANDLE, NULL}; [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/bt_wheel_blocker.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/bt_wheel_blocker.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::sysinfoapi::GetTickCount; [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/bt_wheel_blocker.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | 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/control.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/control.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winuser::WHEEL_DELTA; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `_core` in `winapi` [INFO] [stdout] --> src/hook.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::_core::marker::PhantomData; [INFO] [stdout] | ^^^^^ could not find `_core` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/bt_wheel_blocker.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hook.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::minwindef::{DWORD, HMODULE, LPARAM, LRESULT, 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/hook.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::ntdef::NULL; [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/hook.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::windef::HHOOK; [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/hook.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::libloaderapi::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/hook.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::winuser::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/hook.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/input.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::minwindef::{DWORD, LPVOID, 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.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::ntdef::{HANDLE, NULL}; [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.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | 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/tpmiddle.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::minwindef::{LPARAM, 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/tpmiddle.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | 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/tpmiddle.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winuser::{HRAWINPUT, MOUSEEVENTF_HWHEEL, MOUSEEVENTF_WHEEL, WM_INPUT}; [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/transport_agnostic_tpmiddle.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::minwindef::{DWORD, LPARAM, 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/transport_agnostic_tpmiddle.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | 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/transport_agnostic_tpmiddle.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | 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/transport_agnostic_tpmiddle.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::winuser::{GIDC_ARRIVAL, GIDC_REMOVAL, WM_INPUT_DEVICE_CHANGE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/window.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `_core` in `winapi` [INFO] [stdout] --> src/window.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::_core::marker::PhantomData; [INFO] [stdout] | ^^^^^ could not find `_core` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/input.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/window.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::shared::basetsd::LONG_PTR; [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/window.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::minwindef::{FALSE, LPARAM, LRESULT, TRUE, 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/window.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::shared::ntdef::{LPCWSTR, NULL}; [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/window.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | 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/window.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::libloaderapi::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/window.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::wincon::GetConsoleWindow; [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/window.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | 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 `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | / c_try_ne!( [INFO] [stdout] 101 | | -1i32 as _, [INFO] [stdout] 102 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 103 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | / c_try_ne!( [INFO] [stdout] 106 | | -1i32 as _, [INFO] [stdout] 107 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 108 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | / c_try_ne!( [INFO] [stdout] 120 | | -1i32 as _, [INFO] [stdout] 121 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 122 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | / c_try_ne!( [INFO] [stdout] 125 | | -1i32 as _, [INFO] [stdout] 126 | | GetRawInputDeviceInfoW( [INFO] [stdout] 127 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 131 | | ) [INFO] [stdout] 132 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | / c_try_ne!( [INFO] [stdout] 147 | | (-1i32) as UINT, [INFO] [stdout] 148 | | GetRawInputDeviceInfoW( [INFO] [stdout] 149 | | device_handle, [INFO] [stdout] ... | [INFO] [stdout] 153 | | ) [INFO] [stdout] 154 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use ::winapi::shared::minwindef::{BOOL, FALSE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let hhook = c_try_nonnull!(SetWindowsHookExW(id_hook, lpfn, hmod, dw_thread_id))?; [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use ::winapi::shared::minwindef::{BOOL, FALSE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/input.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | / c_try_ne!( [INFO] [stdout] 173 | | (-1i32) as UINT, [INFO] [stdout] 174 | | GetRawInputDeviceInfoW( [INFO] [stdout] 175 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 179 | | ) [INFO] [stdout] 180 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 40 | | 0, [INFO] [stdout] 41 | | class.atom, [INFO] [stdout] 42 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 51 | | proc.as_mut() as *mut T as _, [INFO] [stdout] 52 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 55 | | hwnd, [INFO] [stdout] 56 | | 0, [INFO] [stdout] 57 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 58 | | )) { [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use ::winapi::shared::minwindef::{BOOL, FALSE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:74:26 [INFO] [stdout] | [INFO] [stdout] 74 | let status = c_try_ne!(-1, GetMessageW(&mut message, self.hwnd, 0, 0))?; [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:167:27 [INFO] [stdout] | [INFO] [stdout] 167 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | let atom = c_try_nonnull!(RegisterClassExW(&class))?; [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use ::winapi::shared::minwindef::{BOOL, FALSE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use ::winapi::um::errhandlingapi::{GetLastError, SetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/window.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::ctypes::wchar_t; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DWORD` [INFO] [stdout] --> src/bt_wheel_blocker.rs:240:58 [INFO] [stdout] | [INFO] [stdout] 240 | if data.time < DAY_MS && message.time >= DWORD::max_value() - DAY_MS { [INFO] [stdout] | ^^^^^ use of undeclared type `DWORD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DWORD` [INFO] [stdout] --> src/bt_wheel_blocker.rs:242:22 [INFO] [stdout] | [INFO] [stdout] 242 | (DWORD::max_value() - message.time + data.time) as i32 [INFO] [stdout] | ^^^^^ use of undeclared type `DWORD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DWORD` [INFO] [stdout] --> src/bt_wheel_blocker.rs:243:65 [INFO] [stdout] | [INFO] [stdout] 243 | } else if message.time < DAY_MS && data.time >= DWORD::max_value() - DAY_MS { [INFO] [stdout] | ^^^^^ use of undeclared type `DWORD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DWORD` [INFO] [stdout] --> src/bt_wheel_blocker.rs:245:24 [INFO] [stdout] | [INFO] [stdout] 245 | -((DWORD::max_value() - data.time + message.time) as i32) [INFO] [stdout] | ^^^^^ use of undeclared type `DWORD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DWORD` [INFO] [stdout] --> src/bt_wheel_blocker.rs:240:58 [INFO] [stdout] | [INFO] [stdout] 240 | if data.time < DAY_MS && message.time >= DWORD::max_value() - DAY_MS { [INFO] [stdout] | ^^^^^ use of undeclared type `DWORD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DWORD` [INFO] [stdout] --> src/bt_wheel_blocker.rs:242:22 [INFO] [stdout] | [INFO] [stdout] 242 | (DWORD::max_value() - message.time + data.time) as i32 [INFO] [stdout] | ^^^^^ use of undeclared type `DWORD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DWORD` [INFO] [stdout] --> src/bt_wheel_blocker.rs:243:65 [INFO] [stdout] | [INFO] [stdout] 243 | } else if message.time < DAY_MS && data.time >= DWORD::max_value() - DAY_MS { [INFO] [stdout] | ^^^^^ use of undeclared type `DWORD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DWORD` [INFO] [stdout] --> src/bt_wheel_blocker.rs:245:24 [INFO] [stdout] | [INFO] [stdout] 245 | -((DWORD::max_value() - data.time + message.time) as i32) [INFO] [stdout] | ^^^^^ use of undeclared type `DWORD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | target_device_handle: HANDLE, [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/bt_wheel_blocker.rs:47:43 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn peek_message(&mut self, u_msg: UINT, l_param: LPARAM) { [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/bt_wheel_blocker.rs:47:58 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn peek_message(&mut self, u_msg: UINT, l_param: LPARAM) { [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/bt_wheel_blocker.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | if u_msg != WM_INPUT { [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/bt_wheel_blocker.rs:52:49 [INFO] [stdout] | [INFO] [stdout] 52 | const SIZE: usize = 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 `GetRawInputData` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 56 | let result = 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/bt_wheel_blocker.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | 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/bt_wheel_blocker.rs:61:37 [INFO] [stdout] | [INFO] [stdout] 46 | impl WheelBlocker { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 61 | std::mem::size_of::() as _, [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/bt_wheel_blocker.rs:66:53 [INFO] [stdout] | [INFO] [stdout] 66 | let raw = raw_buffer.as_ptr() as *const RAWINPUT; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIM_TYPEMOUSE` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:68:33 [INFO] [stdout] | [INFO] [stdout] 68 | if header.dwType != RIM_TYPEMOUSE { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RI_MOUSE_WHEEL` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 74 | if mouse.usButtonFlags & RI_MOUSE_WHEEL == 0x00 { [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/bt_wheel_blocker.rs:97:59 [INFO] [stdout] | [INFO] [stdout] 97 | fn get_target_device_handle(vid: u16, pid: u16) -> 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[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | const SIZE: UINT = std::mem::size_of::() as _; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTDEVICELIST` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:98:44 [INFO] [stdout] | [INFO] [stdout] 98 | const SIZE: UINT = std::mem::size_of::() as _; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | / c_try_ne!( [INFO] [stdout] 101 | | -1i32 as _, [INFO] [stdout] 102 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 103 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceList` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:102:31 [INFO] [stdout] | [INFO] [stdout] 102 | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | / c_try_ne!( [INFO] [stdout] 101 | | -1i32 as _, [INFO] [stdout] 102 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 103 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | / c_try_ne!( [INFO] [stdout] 106 | | -1i32 as _, [INFO] [stdout] 107 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 108 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceList` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | / c_try_ne!( [INFO] [stdout] 106 | | -1i32 as _, [INFO] [stdout] 107 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 108 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | / c_try_ne!( [INFO] [stdout] 120 | | -1i32 as _, [INFO] [stdout] 121 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 122 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoW` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDI_DEVICENAME` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:121:52 [INFO] [stdout] | [INFO] [stdout] 121 | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:121:69 [INFO] [stdout] | [INFO] [stdout] 121 | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | / c_try_ne!( [INFO] [stdout] 120 | | -1i32 as _, [INFO] [stdout] 121 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 122 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | / c_try_ne!( [INFO] [stdout] 125 | | -1i32 as _, [INFO] [stdout] 126 | | GetRawInputDeviceInfoW( [INFO] [stdout] 127 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 131 | | ) [INFO] [stdout] 132 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoW` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | GetRawInputDeviceInfoW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDI_DEVICENAME` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | RIDI_DEVICENAME, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | / c_try_ne!( [INFO] [stdout] 125 | | -1i32 as _, [INFO] [stdout] 126 | | GetRawInputDeviceInfoW( [INFO] [stdout] 127 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 131 | | ) [INFO] [stdout] 132 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 142 | fn is_mouse(device_handle: HANDLE) -> Result { [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/bt_wheel_blocker.rs:143:30 [INFO] [stdout] | [INFO] [stdout] 143 | let mut rid_device_info: RID_DEVICE_INFO = Default::default(); [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/bt_wheel_blocker.rs:144:63 [INFO] [stdout] | [INFO] [stdout] 144 | let mut size = std::mem::size_of_val(&rid_device_info) as UINT; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | / c_try_ne!( [INFO] [stdout] 147 | | (-1i32) as UINT, [INFO] [stdout] 148 | | GetRawInputDeviceInfoW( [INFO] [stdout] 149 | | device_handle, [INFO] [stdout] ... | [INFO] [stdout] 153 | | ) [INFO] [stdout] 154 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoW` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | GetRawInputDeviceInfoW( [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/bt_wheel_blocker.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | 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/bt_wheel_blocker.rs:151:42 [INFO] [stdout] | [INFO] [stdout] 151 | &mut rid_device_info as *mut RID_DEVICE_INFO as _, [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/bt_wheel_blocker.rs:147:20 [INFO] [stdout] | [INFO] [stdout] 147 | (-1i32) as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | / c_try_ne!( [INFO] [stdout] 147 | | (-1i32) as UINT, [INFO] [stdout] 148 | | GetRawInputDeviceInfoW( [INFO] [stdout] 149 | | device_handle, [INFO] [stdout] ... | [INFO] [stdout] 153 | | ) [INFO] [stdout] 154 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIM_TYPEMOUSE` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:155:34 [INFO] [stdout] | [INFO] [stdout] 155 | Ok(rid_device_info.dwType == RIM_TYPEMOUSE) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:160:11 [INFO] [stdout] | [INFO] [stdout] 160 | time: DWORD, [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/bt_wheel_blocker.rs:165:11 [INFO] [stdout] | [INFO] [stdout] 165 | 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 `GetTickCount` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:202:32 [INFO] [stdout] | [INFO] [stdout] 202 | time: unsafe { GetTickCount() }, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/util.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let result: BOOL = $expr; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:210:16 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/util.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | if result == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:223:49 [INFO] [stdout] | [INFO] [stdout] 223 | fn proc(&mut self, _n_code: c_int, w_param: WPARAM, l_param: LPARAM) -> HookProcResult { [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/bt_wheel_blocker.rs:223:66 [INFO] [stdout] | [INFO] [stdout] 223 | fn proc(&mut self, _n_code: c_int, w_param: WPARAM, l_param: LPARAM) -> HookProcResult { [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/bt_wheel_blocker.rs:224:23 [INFO] [stdout] | [INFO] [stdout] 224 | if w_param as UINT != WM_MOUSEWHEEL { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_MOUSEWHEEL` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:224:31 [INFO] [stdout] | [INFO] [stdout] 224 | if w_param as UINT != WM_MOUSEWHEEL { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSLLHOOKSTRUCT` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:228:48 [INFO] [stdout] | [INFO] [stdout] 228 | let data = unsafe { *{ l_param as *mut MSLLHOOKSTRUCT } }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LLMHF_INJECTED` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:229:25 [INFO] [stdout] | [INFO] [stdout] 229 | if data.flags & LLMHF_INJECTED != 0x00 || data.flags & LLMHF_LOWER_IL_INJECTED != 0x00 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LLMHF_LOWER_IL_INJECTED` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:229:64 [INFO] [stdout] | [INFO] [stdout] 229 | if data.flags & LLMHF_INJECTED != 0x00 || data.flags & LLMHF_LOWER_IL_INJECTED != 0x00 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:234:23 [INFO] [stdout] | [INFO] [stdout] 234 | const DAY_MS: DWORD = 1000 * 60 * 60 * 24; [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/bt_wheel_blocker.rs:272:21 [INFO] [stdout] | [INFO] [stdout] 272 | const WM_USER_QUIT: UINT = WM_USER + 1; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_USER` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:272:28 [INFO] [stdout] | [INFO] [stdout] 272 | const WM_USER_QUIT: UINT = WM_USER + 1; [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/bt_wheel_blocker.rs:277:16 [INFO] [stdout] | [INFO] [stdout] 277 | _hwnd: HWND, [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/bt_wheel_blocker.rs:278:16 [INFO] [stdout] | [INFO] [stdout] 278 | u_msg: UINT, [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/bt_wheel_blocker.rs:279:19 [INFO] [stdout] | [INFO] [stdout] 279 | _w_param: WPARAM, [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/bt_wheel_blocker.rs:280:19 [INFO] [stdout] | [INFO] [stdout] 280 | _l_param: LPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:283:22 [INFO] [stdout] | [INFO] [stdout] 283 | unsafe { PostQuitMessage(0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | fn scroll(&self, event: DWORD, units: i8); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | fn scroll(&self, event: DWORD, delta: i8) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WHEEL_DELTA` in this scope [INFO] [stdout] --> src/control.rs:48:47 [INFO] [stdout] | [INFO] [stdout] 48 | send_wheel(event, (delta as i32 * WHEEL_DELTA as i32) as _) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | fn scroll(&self, event: DWORD, delta: i8) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:214:25 [INFO] [stdout] | [INFO] [stdout] 214 | Scroll { event: DWORD, delta: i8 }, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | event: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:233:49 [INFO] [stdout] | [INFO] [stdout] 233 | fn feed(&mut self, now: Instant, event: DWORD, delta: i8) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WHEEL_DELTA` in this scope [INFO] [stdout] --> src/control.rs:333:69 [INFO] [stdout] | [INFO] [stdout] 333 | let delta_f32 = scroll_direction * amount * WHEEL_DELTA as f32; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:341:34 [INFO] [stdout] | [INFO] [stdout] 341 | delta as DWORD [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:362:16 [INFO] [stdout] | [INFO] [stdout] 362 | event: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:363:21 [INFO] [stdout] | [INFO] [stdout] 363 | mouse_data: DWORD, [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/hook.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 19 | pub type HookProcResult = 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[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/hook.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | fn proc(&mut self, n_code: c_int, w_param: WPARAM, l_param: LPARAM) -> HookProcResult; [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/hook.rs:22:65 [INFO] [stdout] | [INFO] [stdout] 22 | fn proc(&mut self, n_code: c_int, w_param: WPARAM, l_param: LPARAM) -> HookProcResult; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PhantomData` in this scope [INFO] [stdout] --> src/hook.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | _phantom: PhantomData, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hid::fmt::string::lossy::char::methods::slice::iter::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use std::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/hook.rs:33:57 [INFO] [stdout] | [INFO] [stdout] 33 | extern "system" fn proc(n_code: c_int, w_param: WPARAM, l_param: 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/hook.rs:33:74 [INFO] [stdout] | [INFO] [stdout] 33 | extern "system" fn proc(n_code: c_int, w_param: WPARAM, l_param: 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/hook.rs:33:85 [INFO] [stdout] | [INFO] [stdout] 33 | extern "system" fn proc(n_code: c_int, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WH_MOUSE_LL` in this scope [INFO] [stdout] --> src/hook.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | let entry = hooks.get_mut(&WH_MOUSE_LL).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope [INFO] [stdout] --> src/hook.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { CallNextHookEx(entry.hhook, n_code, w_param, l_param) } [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope [INFO] [stdout] --> src/hook.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | CallNextHookEx(entry.hhook, n_code, w_param, l_param) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WH_MOUSE_LL` in this scope [INFO] [stdout] --> src/hook.rs:48:51 [INFO] [stdout] | [INFO] [stdout] 48 | let register = register_hook_proc_context(WH_MOUSE_LL, hook_proc)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/hook.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/hook.rs:49:52 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WH_MOUSE_LL` in this scope [INFO] [stdout] --> src/hook.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | let hook_handle = HookHandle::new(WH_MOUSE_LL, Some(proc), hmod, 0)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HHOOK` in this scope [INFO] [stdout] --> src/hook.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | hhook: HHOOK, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HOOKPROC` in this scope [INFO] [stdout] --> src/hook.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 73 | fn new(id_hook: c_int, lpfn: HOOKPROC, hmod: HMODULE, dw_thread_id: DWORD) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/hook.rs:73:50 [INFO] [stdout] | [INFO] [stdout] 73 | fn new(id_hook: c_int, lpfn: HOOKPROC, hmod: HMODULE, dw_thread_id: DWORD) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hook.rs:73:73 [INFO] [stdout] | [INFO] [stdout] 73 | fn new(id_hook: c_int, lpfn: HOOKPROC, hmod: HMODULE, dw_thread_id: DWORD) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let hhook = c_try_nonnull!(SetWindowsHookExW(id_hook, lpfn, hmod, dw_thread_id))?; [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope [INFO] [stdout] --> src/hook.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | let hhook = c_try_nonnull!(SetWindowsHookExW(id_hook, lpfn, hmod, dw_thread_id))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let hhook = c_try_nonnull!(SetWindowsHookExW(id_hook, lpfn, hmod, dw_thread_id))?; [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/util.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let result: BOOL = $expr; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope [INFO] [stdout] --> src/hook.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/util.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | if result == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HHOOK` in this scope [INFO] [stdout] --> src/hook.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | hhook: HHOOK, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HHOOK` in this scope [INFO] [stdout] --> src/hook.rs:124:36 [INFO] [stdout] | [INFO] [stdout] 124 | fn get_handle(mut self, hhook: HHOOK) -> HookProcHandle { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/input.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn send_click(button: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT` in this scope [INFO] [stdout] --> src/input.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | let mut input0: INPUT = Default::default(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT` in this scope [INFO] [stdout] --> src/input.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut input1: INPUT = Default::default(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INPUT_MOUSE` in this scope [INFO] [stdout] --> src/input.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | input0.type_ = INPUT_MOUSE; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INPUT_MOUSE` in this scope [INFO] [stdout] --> src/input.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | input1.type_ = INPUT_MOUSE; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_MIDDLEDOWN` in this scope [INFO] [stdout] --> src/input.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 26 | mi0.dwFlags = MOUSEEVENTF_MIDDLEDOWN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_MIDDLEUP` in this scope [INFO] [stdout] --> src/input.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | mi1.dwFlags = MOUSEEVENTF_MIDDLEUP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_XDOWN` in this scope [INFO] [stdout] --> src/input.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | mi0.dwFlags = MOUSEEVENTF_XDOWN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_XUP` in this scope [INFO] [stdout] --> src/input.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | mi1.dwFlags = MOUSEEVENTF_XUP; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendInput` in this scope [INFO] [stdout] --> src/input.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | SendInput( [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.rs:37:28 [INFO] [stdout] | [INFO] [stdout] 37 | input.len() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT` in this scope [INFO] [stdout] --> src/input.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn send_click(button: DWORD) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 39 | std::mem::size_of::() as c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/input.rs:44:26 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn send_wheel(event: DWORD, mouse_data: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/input.rs:44:45 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn send_wheel(event: DWORD, mouse_data: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT` in this scope [INFO] [stdout] --> src/input.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | let mut input: INPUT = Default::default(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INPUT_MOUSE` in this scope [INFO] [stdout] --> src/input.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | input.type_ = INPUT_MOUSE; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendInput` in this scope [INFO] [stdout] --> src/input.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SendInput(1, &mut input, std::mem::size_of::() as c_int); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT` in this scope [INFO] [stdout] --> src/input.rs:53:54 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn send_wheel(event: DWORD, mouse_data: DWORD) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 53 | SendInput(1, &mut input, std::mem::size_of::() as c_int); [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.rs:73:49 [INFO] [stdout] | [INFO] [stdout] 73 | const SIZE: usize = std::mem::size_of::() + HEADROOM; [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.rs:82:37 [INFO] [stdout] | [INFO] [stdout] 82 | fn read_hid(&mut self, l_param: HRAWINPUT) -> Result { [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.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | const SIZE: UINT = std::mem::size_of::() as _; [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.rs:84:52 [INFO] [stdout] | [INFO] [stdout] 84 | const SIZE: UINT = std::mem::size_of::() as _; [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.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | GetRawInputData(l_param as HRAWINPUT, RID_INPUT, NULL as _, &mut size, SIZE); [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.rs:87:44 [INFO] [stdout] | [INFO] [stdout] 87 | GetRawInputData(l_param as HRAWINPUT, RID_INPUT, NULL as _, &mut size, SIZE); [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.rs:87:55 [INFO] [stdout] | [INFO] [stdout] 87 | GetRawInputData(l_param as HRAWINPUT, RID_INPUT, NULL as _, &mut size, SIZE); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/input.rs:87:66 [INFO] [stdout] | [INFO] [stdout] 87 | GetRawInputData(l_param as HRAWINPUT, RID_INPUT, NULL as _, &mut size, SIZE); [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.rs:88:40 [INFO] [stdout] | [INFO] [stdout] 88 | if result == (-1 as i32 as UINT) { [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.rs:95:26 [INFO] [stdout] | [INFO] [stdout] 95 | let result = GetRawInputData( [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.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 96 | l_param as HRAWINPUT, [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.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | RID_INPUT, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/input.rs:98:45 [INFO] [stdout] | [INFO] [stdout] 98 | self.buffer.as_mut_ptr() as LPVOID, [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.rs:100:37 [INFO] [stdout] | [INFO] [stdout] 81 | impl<'a> EventReader<'a> { [INFO] [stdout] | - help: you might be missing a type parameter: `, RAWINPUTHEADER` [INFO] [stdout] ... [INFO] [stdout] 100 | 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.rs:100:58 [INFO] [stdout] | [INFO] [stdout] 100 | 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.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 102 | if result == (-1 as i32 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.rs:105:54 [INFO] [stdout] | [INFO] [stdout] 105 | let raw = self.buffer.as_ptr() 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.rs:107:33 [INFO] [stdout] | [INFO] [stdout] 107 | if header.dwType != RIM_TYPEHID { [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.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 127 | l_param: HRAWINPUT, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RID_DEVICE_INFO_HID` in this scope [INFO] [stdout] --> src/input.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | impl From<&RID_DEVICE_INFO_HID> for DeviceInfo { [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[E0412]: cannot find type `RID_DEVICE_INFO_HID` in this scope [INFO] [stdout] --> src/input.rs:158:18 [INFO] [stdout] | [INFO] [stdout] 158 | fn from(di: &RID_DEVICE_INFO_HID) -> Self { [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.rs:168:36 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn get_hid_device_info(handle: HANDLE) -> Result> { [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.rs:169:30 [INFO] [stdout] | [INFO] [stdout] 169 | let mut rid_device_info: RID_DEVICE_INFO = Default::default(); [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.rs:170:63 [INFO] [stdout] | [INFO] [stdout] 170 | let mut size = std::mem::size_of_val(&rid_device_info) as UINT; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/input.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | / c_try_ne!( [INFO] [stdout] 173 | | (-1i32) as UINT, [INFO] [stdout] 174 | | GetRawInputDeviceInfoW( [INFO] [stdout] 175 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 179 | | ) [INFO] [stdout] 180 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoW` in this scope [INFO] [stdout] --> src/input.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | GetRawInputDeviceInfoW( [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.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | 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.rs:177:42 [INFO] [stdout] | [INFO] [stdout] 177 | &mut rid_device_info as *mut RID_DEVICE_INFO as LPVOID, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/input.rs:177:61 [INFO] [stdout] | [INFO] [stdout] 177 | &mut rid_device_info as *mut RID_DEVICE_INFO as LPVOID, [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.rs:173:20 [INFO] [stdout] | [INFO] [stdout] 173 | (-1i32) as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/input.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | / c_try_ne!( [INFO] [stdout] 173 | | (-1i32) as UINT, [INFO] [stdout] 174 | | GetRawInputDeviceInfoW( [INFO] [stdout] 175 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 179 | | ) [INFO] [stdout] 180 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIM_TYPEHID` in this scope [INFO] [stdout] --> src/input.rs:182:34 [INFO] [stdout] | [INFO] [stdout] 182 | if rid_device_info.dwType != RIM_TYPEHID { [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.rs:195:19 [INFO] [stdout] | [INFO] [stdout] 190 | struct RawHID<'a> { [INFO] [stdout] | ----------------- similarly named struct `RawHID` defined here [INFO] [stdout] ... [INFO] [stdout] 195 | impl<'a> From<&'a RAWHID> for RawHID<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 195 | impl<'a> From<&'a RawHID> for RawHID<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 195 | impl<'a, RAWHID> From<&'a RAWHID> for RawHID<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWHID` in this scope [INFO] [stdout] --> src/input.rs:196:22 [INFO] [stdout] | [INFO] [stdout] 190 | struct RawHID<'a> { [INFO] [stdout] | ----------------- similarly named struct `RawHID` defined here [INFO] [stdout] ... [INFO] [stdout] 196 | fn from(hid: &'a RAWHID) -> Self { [INFO] [stdout] | ^^^^^^ help: a struct with a similar name exists: `RawHID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/tpmiddle.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | _hwnd: HWND, [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/tpmiddle.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | u_msg: UINT, [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/tpmiddle.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | _w_param: WPARAM, [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/tpmiddle.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | l_param: LPARAM, [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/tpmiddle.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | if u_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/tpmiddle.rs:48:91 [INFO] [stdout] | [INFO] [stdout] 48 | let events = if let Ok(events) = self.event_reader.read_from_raw_input(l_param as HRAWINPUT) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_WHEEL` in this scope [INFO] [stdout] --> src/tpmiddle.rs:73:41 [INFO] [stdout] | [INFO] [stdout] 73 | self.control.scroll(MOUSEEVENTF_WHEEL, dy); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_HWHEEL` in this scope [INFO] [stdout] --> src/tpmiddle.rs:77:41 [INFO] [stdout] | [INFO] [stdout] 77 | self.control.scroll(MOUSEEVENTF_HWHEEL, dx); [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/transport_agnostic_tpmiddle.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct TransportAgnosticTPMiddle<'a> { [INFO] [stdout] | - help: you might be missing a type parameter: `, HANDLE` [INFO] [stdout] ... [INFO] [stdout] 32 | devices: HashMap, [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/transport_agnostic_tpmiddle.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | hwnd: HWND, [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/transport_agnostic_tpmiddle.rs:114:16 [INFO] [stdout] | [INFO] [stdout] 114 | u_msg: UINT, [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/transport_agnostic_tpmiddle.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 115 | w_param: WPARAM, [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/transport_agnostic_tpmiddle.rs:116:18 [INFO] [stdout] | [INFO] [stdout] 116 | l_param: LPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/transport_agnostic_tpmiddle.rs:119:50 [INFO] [stdout] | [INFO] [stdout] 119 | WM_INPUT_DEVICE_CHANGE if w_param as DWORD == GIDC_ARRIVAL => { [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/transport_agnostic_tpmiddle.rs:119:59 [INFO] [stdout] | [INFO] [stdout] 119 | WM_INPUT_DEVICE_CHANGE if w_param as DWORD == GIDC_ARRIVAL => { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/transport_agnostic_tpmiddle.rs:154:50 [INFO] [stdout] | [INFO] [stdout] 154 | WM_INPUT_DEVICE_CHANGE if w_param as DWORD == GIDC_REMOVAL => { [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/transport_agnostic_tpmiddle.rs:154:59 [INFO] [stdout] | [INFO] [stdout] 154 | WM_INPUT_DEVICE_CHANGE if w_param as DWORD == GIDC_REMOVAL => { [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/window.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | pub hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PhantomData` in this scope [INFO] [stdout] --> src/window.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | _phantom: PhantomData, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hid::fmt::string::lossy::char::methods::slice::iter::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use std::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 40 | | 0, [INFO] [stdout] 41 | | class.atom, [INFO] [stdout] 42 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 51 | | proc.as_mut() as *mut T as _, [INFO] [stdout] 52 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/window.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HWND_MESSAGE` in this scope [INFO] [stdout] --> src/window.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | HWND_MESSAGE, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/window.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | NULL as _, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/window.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | NULL as _, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 40 | | 0, [INFO] [stdout] 41 | | class.atom, [INFO] [stdout] 42 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 51 | | proc.as_mut() as *mut T as _, [INFO] [stdout] 52 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 55 | | hwnd, [INFO] [stdout] 56 | | 0, [INFO] [stdout] 57 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 58 | | )) { [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/window.rs:54:42 [INFO] [stdout] | [INFO] [stdout] 54 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stdout] --> src/window.rs:57:40 [INFO] [stdout] | [INFO] [stdout] 57 | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 55 | | hwnd, [INFO] [stdout] 56 | | 0, [INFO] [stdout] 57 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 58 | | )) { [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/util.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let result: BOOL = $expr; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope [INFO] [stdout] --> src/window.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/util.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | if result == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/window.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 33 | impl Window { [INFO] [stdout] | - help: you might be missing a type parameter: `, WPARAM` [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn run(self) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/window.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | let mut message: MSG = Default::default(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:74:26 [INFO] [stdout] | [INFO] [stdout] 74 | let status = c_try_ne!(-1, GetMessageW(&mut message, self.hwnd, 0, 0))?; [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/window.rs:74:40 [INFO] [stdout] | [INFO] [stdout] 74 | let status = c_try_ne!(-1, GetMessageW(&mut message, self.hwnd, 0, 0))?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:74:26 [INFO] [stdout] | [INFO] [stdout] 74 | let status = c_try_ne!(-1, GetMessageW(&mut message, self.hwnd, 0, 0))?; [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> src/window.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | TranslateMessage(&message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> src/window.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | DispatchMessageW(&message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope [INFO] [stdout] --> src/window.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | assert_ne!(0, DestroyWindow(self.hwnd)); [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/window.rs:106:36 [INFO] [stdout] | [INFO] [stdout] 106 | pub type WindowProcResult = 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[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/window.rs:111:15 [INFO] [stdout] | [INFO] [stdout] 111 | hwnd: HWND, [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/window.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | u_msg: UINT, [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/window.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | w_param: WPARAM, [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/window.rs:114:18 [INFO] [stdout] | [INFO] [stdout] 114 | l_param: LPARAM, [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/window.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | fn window_proc_ptr_from_hwnd(hwnd: HWND) -> *mut T { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope [INFO] [stdout] --> src/window.rs:120:24 [INFO] [stdout] | [INFO] [stdout] 120 | let long_ptr = GetWindowLongPtrW(hwnd, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stdout] --> src/window.rs:121:31 [INFO] [stdout] | [INFO] [stdout] 118 | fn window_proc_ptr_from_hwnd(hwnd: HWND) -> *mut T { [INFO] [stdout] | - help: you might be missing a type parameter: `, LONG_PTR` [INFO] [stdout] ... [INFO] [stdout] 121 | std::mem::transmute::(long_ptr) [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/window.rs:126:11 [INFO] [stdout] | [INFO] [stdout] 126 | hwnd: HWND, [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/window.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | u_msg: UINT, [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/window.rs:128:14 [INFO] [stdout] | [INFO] [stdout] 128 | w_param: WPARAM, [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/window.rs:129:14 [INFO] [stdout] | [INFO] [stdout] 129 | l_param: LPARAM, [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/window.rs:130:6 [INFO] [stdout] | [INFO] [stdout] 130 | ) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> src/window.rs:143:55 [INFO] [stdout] | [INFO] [stdout] 143 | Err(WindowProcError::UnhandledMessage) => DefWindowProcW(hwnd, u_msg, w_param, l_param), [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/window.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | PostQuitMessage(-1); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/window.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 154 | class: WNDCLASSEXW, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/window.rs:155:11 [INFO] [stdout] | [INFO] [stdout] 155 | atom: LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PhantomData` in this scope [INFO] [stdout] --> src/window.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 156 | _phantom: PhantomData, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hid::fmt::string::lossy::char::methods::slice::iter::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use std::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/window.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | let mut class: WNDCLASSEXW = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:167:27 [INFO] [stdout] | [INFO] [stdout] 167 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/window.rs:167:42 [INFO] [stdout] | [INFO] [stdout] 167 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/window.rs:167:59 [INFO] [stdout] | [INFO] [stdout] 167 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:167:27 [INFO] [stdout] | [INFO] [stdout] 167 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | let atom = c_try_nonnull!(RegisterClassExW(&class))?; [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stdout] --> src/window.rs:170:35 [INFO] [stdout] | [INFO] [stdout] 170 | let atom = c_try_nonnull!(RegisterClassExW(&class))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | let atom = c_try_nonnull!(RegisterClassExW(&class))?; [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnregisterClassW` in this scope [INFO] [stdout] --> src/window.rs:183:27 [INFO] [stdout] | [INFO] [stdout] 183 | assert_ne!(0, UnregisterClassW(self.atom, self.class.hInstance)); [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/window.rs:189:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub struct Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 189 | devices: Box<[RAWINPUTDEVICE]>, [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/window.rs:200:71 [INFO] [stdout] | [INFO] [stdout] 200 | flags.insert((device_info.usage_page, device_info.usage), RIDEV_DEVNOTIFY); [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/window.rs:204:67 [INFO] [stdout] | [INFO] [stdout] 204 | Entry::Occupied(mut entry) => *entry.get_mut() |= RIDEV_INPUTSINK, [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/window.rs:206:34 [INFO] [stdout] | [INFO] [stdout] 206 | entry.insert(RIDEV_INPUTSINK); [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/window.rs:213:26 [INFO] [stdout] | [INFO] [stdout] 213 | devices.push(RAWINPUTDEVICE { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/util.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let result: BOOL = $expr; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterRawInputDevices` in this scope [INFO] [stdout] --> src/window.rs:221:16 [INFO] [stdout] | [INFO] [stdout] 221 | c_try!(RegisterRawInputDevices( [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/window.rs:224:33 [INFO] [stdout] | [INFO] [stdout] 192 | impl Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 224 | std::mem::size_of::() as _ [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/util.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | if result == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDEV_REMOVE` in this scope [INFO] [stdout] --> src/window.rs:236:30 [INFO] [stdout] | [INFO] [stdout] 236 | device.dwFlags = RIDEV_REMOVE; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/window.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | device.hwndTarget = NULL as _; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/window.rs:241:17 [INFO] [stdout] | [INFO] [stdout] 241 | FALSE, [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/window.rs:242:17 [INFO] [stdout] | [INFO] [stdout] 242 | RegisterRawInputDevices( [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/window.rs:245:41 [INFO] [stdout] | [INFO] [stdout] 233 | impl Drop for Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 245 | std::mem::size_of::() as _ [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetConsoleWindow` in this scope [INFO] [stdout] --> src/window.rs:254:23 [INFO] [stdout] | [INFO] [stdout] 254 | let console = GetConsoleWindow(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindowVisible` in this scope [INFO] [stdout] --> src/window.rs:255:12 [INFO] [stdout] | [INFO] [stdout] 255 | if IsWindowVisible(console) == TRUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/window.rs:255:40 [INFO] [stdout] | [INFO] [stdout] 255 | if IsWindowVisible(console) == TRUE { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope [INFO] [stdout] --> src/window.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | ShowWindow(console, SW_HIDE); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_HIDE` in this scope [INFO] [stdout] --> src/window.rs:256:33 [INFO] [stdout] | [INFO] [stdout] 256 | ShowWindow(console, SW_HIDE); [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/bt_wheel_blocker.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | target_device_handle: HANDLE, [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/bt_wheel_blocker.rs:47:43 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn peek_message(&mut self, u_msg: UINT, l_param: LPARAM) { [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/bt_wheel_blocker.rs:47:58 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn peek_message(&mut self, u_msg: UINT, l_param: LPARAM) { [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/bt_wheel_blocker.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | if u_msg != WM_INPUT { [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/bt_wheel_blocker.rs:52:49 [INFO] [stdout] | [INFO] [stdout] 52 | const SIZE: usize = 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 `GetRawInputData` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 56 | let result = 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/bt_wheel_blocker.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | 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/bt_wheel_blocker.rs:61:37 [INFO] [stdout] | [INFO] [stdout] 46 | impl WheelBlocker { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 61 | std::mem::size_of::() as _, [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/bt_wheel_blocker.rs:66:53 [INFO] [stdout] | [INFO] [stdout] 66 | let raw = raw_buffer.as_ptr() as *const RAWINPUT; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIM_TYPEMOUSE` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:68:33 [INFO] [stdout] | [INFO] [stdout] 68 | if header.dwType != RIM_TYPEMOUSE { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RI_MOUSE_WHEEL` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 74 | if mouse.usButtonFlags & RI_MOUSE_WHEEL == 0x00 { [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/bt_wheel_blocker.rs:97:59 [INFO] [stdout] | [INFO] [stdout] 97 | fn get_target_device_handle(vid: u16, pid: u16) -> 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[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | const SIZE: UINT = std::mem::size_of::() as _; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTDEVICELIST` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:98:44 [INFO] [stdout] | [INFO] [stdout] 98 | const SIZE: UINT = std::mem::size_of::() as _; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | / c_try_ne!( [INFO] [stdout] 101 | | -1i32 as _, [INFO] [stdout] 102 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 103 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceList` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:102:31 [INFO] [stdout] | [INFO] [stdout] 102 | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | / c_try_ne!( [INFO] [stdout] 101 | | -1i32 as _, [INFO] [stdout] 102 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 103 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | / c_try_ne!( [INFO] [stdout] 106 | | -1i32 as _, [INFO] [stdout] 107 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 108 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceList` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | / c_try_ne!( [INFO] [stdout] 106 | | -1i32 as _, [INFO] [stdout] 107 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 108 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | / c_try_ne!( [INFO] [stdout] 120 | | -1i32 as _, [INFO] [stdout] 121 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 122 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoW` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDI_DEVICENAME` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:121:52 [INFO] [stdout] | [INFO] [stdout] 121 | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:121:69 [INFO] [stdout] | [INFO] [stdout] 121 | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | / c_try_ne!( [INFO] [stdout] 120 | | -1i32 as _, [INFO] [stdout] 121 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 122 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | / c_try_ne!( [INFO] [stdout] 125 | | -1i32 as _, [INFO] [stdout] 126 | | GetRawInputDeviceInfoW( [INFO] [stdout] 127 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 131 | | ) [INFO] [stdout] 132 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoW` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | GetRawInputDeviceInfoW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDI_DEVICENAME` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | RIDI_DEVICENAME, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | / c_try_ne!( [INFO] [stdout] 125 | | -1i32 as _, [INFO] [stdout] 126 | | GetRawInputDeviceInfoW( [INFO] [stdout] 127 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 131 | | ) [INFO] [stdout] 132 | | )?; [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 142 | fn is_mouse(device_handle: HANDLE) -> Result { [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/bt_wheel_blocker.rs:143:30 [INFO] [stdout] | [INFO] [stdout] 143 | let mut rid_device_info: RID_DEVICE_INFO = Default::default(); [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/bt_wheel_blocker.rs:144:63 [INFO] [stdout] | [INFO] [stdout] 144 | let mut size = std::mem::size_of_val(&rid_device_info) as UINT; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | / c_try_ne!( [INFO] [stdout] 147 | | (-1i32) as UINT, [INFO] [stdout] 148 | | GetRawInputDeviceInfoW( [INFO] [stdout] 149 | | device_handle, [INFO] [stdout] ... | [INFO] [stdout] 153 | | ) [INFO] [stdout] 154 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoW` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | GetRawInputDeviceInfoW( [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/bt_wheel_blocker.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | 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/bt_wheel_blocker.rs:151:42 [INFO] [stdout] | [INFO] [stdout] 151 | &mut rid_device_info as *mut RID_DEVICE_INFO as _, [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/bt_wheel_blocker.rs:147:20 [INFO] [stdout] | [INFO] [stdout] 147 | (-1i32) as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | / c_try_ne!( [INFO] [stdout] 147 | | (-1i32) as UINT, [INFO] [stdout] 148 | | GetRawInputDeviceInfoW( [INFO] [stdout] 149 | | device_handle, [INFO] [stdout] ... | [INFO] [stdout] 153 | | ) [INFO] [stdout] 154 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIM_TYPEMOUSE` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:155:34 [INFO] [stdout] | [INFO] [stdout] 155 | Ok(rid_device_info.dwType == RIM_TYPEMOUSE) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:160:11 [INFO] [stdout] | [INFO] [stdout] 160 | time: DWORD, [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/bt_wheel_blocker.rs:165:11 [INFO] [stdout] | [INFO] [stdout] 165 | 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 `GetTickCount` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:202:32 [INFO] [stdout] | [INFO] [stdout] 202 | time: unsafe { GetTickCount() }, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/util.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let result: BOOL = $expr; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:210:16 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/util.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | if result == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/bt_wheel_blocker.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | c_try!(PostMessageW(self.hwnd, WM_USER_QUIT, 0, 0)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:223:49 [INFO] [stdout] | [INFO] [stdout] 223 | fn proc(&mut self, _n_code: c_int, w_param: WPARAM, l_param: LPARAM) -> HookProcResult { [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/bt_wheel_blocker.rs:223:66 [INFO] [stdout] | [INFO] [stdout] 223 | fn proc(&mut self, _n_code: c_int, w_param: WPARAM, l_param: LPARAM) -> HookProcResult { [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/bt_wheel_blocker.rs:224:23 [INFO] [stdout] | [INFO] [stdout] 224 | if w_param as UINT != WM_MOUSEWHEEL { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_MOUSEWHEEL` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:224:31 [INFO] [stdout] | [INFO] [stdout] 224 | if w_param as UINT != WM_MOUSEWHEEL { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSLLHOOKSTRUCT` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:228:48 [INFO] [stdout] | [INFO] [stdout] 228 | let data = unsafe { *{ l_param as *mut MSLLHOOKSTRUCT } }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LLMHF_INJECTED` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:229:25 [INFO] [stdout] | [INFO] [stdout] 229 | if data.flags & LLMHF_INJECTED != 0x00 || data.flags & LLMHF_LOWER_IL_INJECTED != 0x00 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LLMHF_LOWER_IL_INJECTED` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:229:64 [INFO] [stdout] | [INFO] [stdout] 229 | if data.flags & LLMHF_INJECTED != 0x00 || data.flags & LLMHF_LOWER_IL_INJECTED != 0x00 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:234:23 [INFO] [stdout] | [INFO] [stdout] 234 | const DAY_MS: DWORD = 1000 * 60 * 60 * 24; [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/bt_wheel_blocker.rs:272:21 [INFO] [stdout] | [INFO] [stdout] 272 | const WM_USER_QUIT: UINT = WM_USER + 1; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_USER` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:272:28 [INFO] [stdout] | [INFO] [stdout] 272 | const WM_USER_QUIT: UINT = WM_USER + 1; [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/bt_wheel_blocker.rs:277:16 [INFO] [stdout] | [INFO] [stdout] 277 | _hwnd: HWND, [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/bt_wheel_blocker.rs:278:16 [INFO] [stdout] | [INFO] [stdout] 278 | u_msg: UINT, [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/bt_wheel_blocker.rs:279:19 [INFO] [stdout] | [INFO] [stdout] 279 | _w_param: WPARAM, [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/bt_wheel_blocker.rs:280:19 [INFO] [stdout] | [INFO] [stdout] 280 | _l_param: LPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:283:22 [INFO] [stdout] | [INFO] [stdout] 283 | unsafe { PostQuitMessage(0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | fn scroll(&self, event: DWORD, units: i8); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | fn scroll(&self, event: DWORD, delta: i8) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WHEEL_DELTA` in this scope [INFO] [stdout] --> src/control.rs:48:47 [INFO] [stdout] | [INFO] [stdout] 48 | send_wheel(event, (delta as i32 * WHEEL_DELTA as i32) as _) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | fn scroll(&self, event: DWORD, delta: i8) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:214:25 [INFO] [stdout] | [INFO] [stdout] 214 | Scroll { event: DWORD, delta: i8 }, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | event: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:233:49 [INFO] [stdout] | [INFO] [stdout] 233 | fn feed(&mut self, now: Instant, event: DWORD, delta: i8) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WHEEL_DELTA` in this scope [INFO] [stdout] --> src/control.rs:333:69 [INFO] [stdout] | [INFO] [stdout] 333 | let delta_f32 = scroll_direction * amount * WHEEL_DELTA as f32; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:341:34 [INFO] [stdout] | [INFO] [stdout] 341 | delta as DWORD [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:362:16 [INFO] [stdout] | [INFO] [stdout] 362 | event: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/control.rs:363:21 [INFO] [stdout] | [INFO] [stdout] 363 | mouse_data: DWORD, [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/hook.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 19 | pub type HookProcResult = 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[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/hook.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | fn proc(&mut self, n_code: c_int, w_param: WPARAM, l_param: LPARAM) -> HookProcResult; [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/hook.rs:22:65 [INFO] [stdout] | [INFO] [stdout] 22 | fn proc(&mut self, n_code: c_int, w_param: WPARAM, l_param: LPARAM) -> HookProcResult; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PhantomData` in this scope [INFO] [stdout] --> src/hook.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | _phantom: PhantomData, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hid::fmt::string::lossy::char::methods::slice::iter::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use std::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/hook.rs:33:57 [INFO] [stdout] | [INFO] [stdout] 33 | extern "system" fn proc(n_code: c_int, w_param: WPARAM, l_param: 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/hook.rs:33:74 [INFO] [stdout] | [INFO] [stdout] 33 | extern "system" fn proc(n_code: c_int, w_param: WPARAM, l_param: 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/hook.rs:33:85 [INFO] [stdout] | [INFO] [stdout] 33 | extern "system" fn proc(n_code: c_int, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WH_MOUSE_LL` in this scope [INFO] [stdout] --> src/hook.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | let entry = hooks.get_mut(&WH_MOUSE_LL).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope [INFO] [stdout] --> src/hook.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { CallNextHookEx(entry.hhook, n_code, w_param, l_param) } [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope [INFO] [stdout] --> src/hook.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | CallNextHookEx(entry.hhook, n_code, w_param, l_param) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WH_MOUSE_LL` in this scope [INFO] [stdout] --> src/hook.rs:48:51 [INFO] [stdout] | [INFO] [stdout] 48 | let register = register_hook_proc_context(WH_MOUSE_LL, hook_proc)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/hook.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/hook.rs:49:52 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WH_MOUSE_LL` in this scope [INFO] [stdout] --> src/hook.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | let hook_handle = HookHandle::new(WH_MOUSE_LL, Some(proc), hmod, 0)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HHOOK` in this scope [INFO] [stdout] --> src/hook.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | hhook: HHOOK, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HOOKPROC` in this scope [INFO] [stdout] --> src/hook.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 73 | fn new(id_hook: c_int, lpfn: HOOKPROC, hmod: HMODULE, dw_thread_id: DWORD) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/hook.rs:73:50 [INFO] [stdout] | [INFO] [stdout] 73 | fn new(id_hook: c_int, lpfn: HOOKPROC, hmod: HMODULE, dw_thread_id: DWORD) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hook.rs:73:73 [INFO] [stdout] | [INFO] [stdout] 73 | fn new(id_hook: c_int, lpfn: HOOKPROC, hmod: HMODULE, dw_thread_id: DWORD) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let hhook = c_try_nonnull!(SetWindowsHookExW(id_hook, lpfn, hmod, dw_thread_id))?; [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope [INFO] [stdout] --> src/hook.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | let hhook = c_try_nonnull!(SetWindowsHookExW(id_hook, lpfn, hmod, dw_thread_id))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let hhook = c_try_nonnull!(SetWindowsHookExW(id_hook, lpfn, hmod, dw_thread_id))?; [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/util.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let result: BOOL = $expr; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope [INFO] [stdout] --> src/hook.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/util.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | if result == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/hook.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | c_try!(UnhookWindowsHookEx(self.hhook)).unwrap(); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HHOOK` in this scope [INFO] [stdout] --> src/hook.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | hhook: HHOOK, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HHOOK` in this scope [INFO] [stdout] --> src/hook.rs:124:36 [INFO] [stdout] | [INFO] [stdout] 124 | fn get_handle(mut self, hhook: HHOOK) -> HookProcHandle { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/input.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn send_click(button: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT` in this scope [INFO] [stdout] --> src/input.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | let mut input0: INPUT = Default::default(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT` in this scope [INFO] [stdout] --> src/input.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut input1: INPUT = Default::default(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INPUT_MOUSE` in this scope [INFO] [stdout] --> src/input.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | input0.type_ = INPUT_MOUSE; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INPUT_MOUSE` in this scope [INFO] [stdout] --> src/input.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | input1.type_ = INPUT_MOUSE; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_MIDDLEDOWN` in this scope [INFO] [stdout] --> src/input.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 26 | mi0.dwFlags = MOUSEEVENTF_MIDDLEDOWN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_MIDDLEUP` in this scope [INFO] [stdout] --> src/input.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | mi1.dwFlags = MOUSEEVENTF_MIDDLEUP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_XDOWN` in this scope [INFO] [stdout] --> src/input.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | mi0.dwFlags = MOUSEEVENTF_XDOWN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_XUP` in this scope [INFO] [stdout] --> src/input.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | mi1.dwFlags = MOUSEEVENTF_XUP; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendInput` in this scope [INFO] [stdout] --> src/input.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | SendInput( [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.rs:37:28 [INFO] [stdout] | [INFO] [stdout] 37 | input.len() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT` in this scope [INFO] [stdout] --> src/input.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn send_click(button: DWORD) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 39 | std::mem::size_of::() as c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/input.rs:44:26 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn send_wheel(event: DWORD, mouse_data: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/input.rs:44:45 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn send_wheel(event: DWORD, mouse_data: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT` in this scope [INFO] [stdout] --> src/input.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | let mut input: INPUT = Default::default(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INPUT_MOUSE` in this scope [INFO] [stdout] --> src/input.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | input.type_ = INPUT_MOUSE; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendInput` in this scope [INFO] [stdout] --> src/input.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SendInput(1, &mut input, std::mem::size_of::() as c_int); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT` in this scope [INFO] [stdout] --> src/input.rs:53:54 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn send_wheel(event: DWORD, mouse_data: DWORD) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 53 | SendInput(1, &mut input, std::mem::size_of::() as c_int); [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.rs:73:49 [INFO] [stdout] | [INFO] [stdout] 73 | const SIZE: usize = std::mem::size_of::() + HEADROOM; [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.rs:82:37 [INFO] [stdout] | [INFO] [stdout] 82 | fn read_hid(&mut self, l_param: HRAWINPUT) -> Result { [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.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | const SIZE: UINT = std::mem::size_of::() as _; [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.rs:84:52 [INFO] [stdout] | [INFO] [stdout] 84 | const SIZE: UINT = std::mem::size_of::() as _; [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.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | GetRawInputData(l_param as HRAWINPUT, RID_INPUT, NULL as _, &mut size, SIZE); [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.rs:87:44 [INFO] [stdout] | [INFO] [stdout] 87 | GetRawInputData(l_param as HRAWINPUT, RID_INPUT, NULL as _, &mut size, SIZE); [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.rs:87:55 [INFO] [stdout] | [INFO] [stdout] 87 | GetRawInputData(l_param as HRAWINPUT, RID_INPUT, NULL as _, &mut size, SIZE); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/input.rs:87:66 [INFO] [stdout] | [INFO] [stdout] 87 | GetRawInputData(l_param as HRAWINPUT, RID_INPUT, NULL as _, &mut size, SIZE); [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.rs:88:40 [INFO] [stdout] | [INFO] [stdout] 88 | if result == (-1 as i32 as UINT) { [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.rs:95:26 [INFO] [stdout] | [INFO] [stdout] 95 | let result = GetRawInputData( [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.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 96 | l_param as HRAWINPUT, [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.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | RID_INPUT, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/input.rs:98:45 [INFO] [stdout] | [INFO] [stdout] 98 | self.buffer.as_mut_ptr() as LPVOID, [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.rs:100:37 [INFO] [stdout] | [INFO] [stdout] 81 | impl<'a> EventReader<'a> { [INFO] [stdout] | - help: you might be missing a type parameter: `, RAWINPUTHEADER` [INFO] [stdout] ... [INFO] [stdout] 100 | 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.rs:100:58 [INFO] [stdout] | [INFO] [stdout] 100 | 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.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 102 | if result == (-1 as i32 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.rs:105:54 [INFO] [stdout] | [INFO] [stdout] 105 | let raw = self.buffer.as_ptr() 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.rs:107:33 [INFO] [stdout] | [INFO] [stdout] 107 | if header.dwType != RIM_TYPEHID { [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.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 127 | l_param: HRAWINPUT, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RID_DEVICE_INFO_HID` in this scope [INFO] [stdout] --> src/input.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | impl From<&RID_DEVICE_INFO_HID> for DeviceInfo { [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[E0412]: cannot find type `RID_DEVICE_INFO_HID` in this scope [INFO] [stdout] --> src/input.rs:158:18 [INFO] [stdout] | [INFO] [stdout] 158 | fn from(di: &RID_DEVICE_INFO_HID) -> Self { [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.rs:168:36 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn get_hid_device_info(handle: HANDLE) -> Result> { [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.rs:169:30 [INFO] [stdout] | [INFO] [stdout] 169 | let mut rid_device_info: RID_DEVICE_INFO = Default::default(); [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.rs:170:63 [INFO] [stdout] | [INFO] [stdout] 170 | let mut size = std::mem::size_of_val(&rid_device_info) as UINT; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/input.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | / c_try_ne!( [INFO] [stdout] 173 | | (-1i32) as UINT, [INFO] [stdout] 174 | | GetRawInputDeviceInfoW( [INFO] [stdout] 175 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 179 | | ) [INFO] [stdout] 180 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetRawInputDeviceInfoW` in this scope [INFO] [stdout] --> src/input.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | GetRawInputDeviceInfoW( [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.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | 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.rs:177:42 [INFO] [stdout] | [INFO] [stdout] 177 | &mut rid_device_info as *mut RID_DEVICE_INFO as LPVOID, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/input.rs:177:61 [INFO] [stdout] | [INFO] [stdout] 177 | &mut rid_device_info as *mut RID_DEVICE_INFO as LPVOID, [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.rs:173:20 [INFO] [stdout] | [INFO] [stdout] 173 | (-1i32) as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/input.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | / c_try_ne!( [INFO] [stdout] 173 | | (-1i32) as UINT, [INFO] [stdout] 174 | | GetRawInputDeviceInfoW( [INFO] [stdout] 175 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 179 | | ) [INFO] [stdout] 180 | | )?; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIM_TYPEHID` in this scope [INFO] [stdout] --> src/input.rs:182:34 [INFO] [stdout] | [INFO] [stdout] 182 | if rid_device_info.dwType != RIM_TYPEHID { [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.rs:195:19 [INFO] [stdout] | [INFO] [stdout] 190 | struct RawHID<'a> { [INFO] [stdout] | ----------------- similarly named struct `RawHID` defined here [INFO] [stdout] ... [INFO] [stdout] 195 | impl<'a> From<&'a RAWHID> for RawHID<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 195 | impl<'a> From<&'a RawHID> for RawHID<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 195 | impl<'a, RAWHID> From<&'a RAWHID> for RawHID<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWHID` in this scope [INFO] [stdout] --> src/input.rs:196:22 [INFO] [stdout] | [INFO] [stdout] 190 | struct RawHID<'a> { [INFO] [stdout] | ----------------- similarly named struct `RawHID` defined here [INFO] [stdout] ... [INFO] [stdout] 196 | fn from(hid: &'a RAWHID) -> Self { [INFO] [stdout] | ^^^^^^ help: a struct with a similar name exists: `RawHID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/tpmiddle.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | _hwnd: HWND, [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/tpmiddle.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | u_msg: UINT, [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/tpmiddle.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | _w_param: WPARAM, [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/tpmiddle.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | l_param: LPARAM, [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/tpmiddle.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | if u_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/tpmiddle.rs:48:91 [INFO] [stdout] | [INFO] [stdout] 48 | let events = if let Ok(events) = self.event_reader.read_from_raw_input(l_param as HRAWINPUT) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_WHEEL` in this scope [INFO] [stdout] --> src/tpmiddle.rs:73:41 [INFO] [stdout] | [INFO] [stdout] 73 | self.control.scroll(MOUSEEVENTF_WHEEL, dy); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MOUSEEVENTF_HWHEEL` in this scope [INFO] [stdout] --> src/tpmiddle.rs:77:41 [INFO] [stdout] | [INFO] [stdout] 77 | self.control.scroll(MOUSEEVENTF_HWHEEL, dx); [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/transport_agnostic_tpmiddle.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct TransportAgnosticTPMiddle<'a> { [INFO] [stdout] | - help: you might be missing a type parameter: `, HANDLE` [INFO] [stdout] ... [INFO] [stdout] 32 | devices: HashMap, [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/transport_agnostic_tpmiddle.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | hwnd: HWND, [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/transport_agnostic_tpmiddle.rs:114:16 [INFO] [stdout] | [INFO] [stdout] 114 | u_msg: UINT, [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/transport_agnostic_tpmiddle.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 115 | w_param: WPARAM, [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/transport_agnostic_tpmiddle.rs:116:18 [INFO] [stdout] | [INFO] [stdout] 116 | l_param: LPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/transport_agnostic_tpmiddle.rs:119:50 [INFO] [stdout] | [INFO] [stdout] 119 | WM_INPUT_DEVICE_CHANGE if w_param as DWORD == GIDC_ARRIVAL => { [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/transport_agnostic_tpmiddle.rs:119:59 [INFO] [stdout] | [INFO] [stdout] 119 | WM_INPUT_DEVICE_CHANGE if w_param as DWORD == GIDC_ARRIVAL => { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/transport_agnostic_tpmiddle.rs:154:50 [INFO] [stdout] | [INFO] [stdout] 154 | WM_INPUT_DEVICE_CHANGE if w_param as DWORD == GIDC_REMOVAL => { [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/transport_agnostic_tpmiddle.rs:154:59 [INFO] [stdout] | [INFO] [stdout] 154 | WM_INPUT_DEVICE_CHANGE if w_param as DWORD == GIDC_REMOVAL => { [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/window.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | pub hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PhantomData` in this scope [INFO] [stdout] --> src/window.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | _phantom: PhantomData, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hid::fmt::string::lossy::char::methods::slice::iter::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use std::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 40 | | 0, [INFO] [stdout] 41 | | class.atom, [INFO] [stdout] 42 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 51 | | proc.as_mut() as *mut T as _, [INFO] [stdout] 52 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/window.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HWND_MESSAGE` in this scope [INFO] [stdout] --> src/window.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | HWND_MESSAGE, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/window.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | NULL as _, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/window.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | NULL as _, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 40 | | 0, [INFO] [stdout] 41 | | class.atom, [INFO] [stdout] 42 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 51 | | proc.as_mut() as *mut T as _, [INFO] [stdout] 52 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 55 | | hwnd, [INFO] [stdout] 56 | | 0, [INFO] [stdout] 57 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 58 | | )) { [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/window.rs:54:42 [INFO] [stdout] | [INFO] [stdout] 54 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stdout] --> src/window.rs:57:40 [INFO] [stdout] | [INFO] [stdout] 57 | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 55 | | hwnd, [INFO] [stdout] 56 | | 0, [INFO] [stdout] 57 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 58 | | )) { [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/util.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let result: BOOL = $expr; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope [INFO] [stdout] --> src/window.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/util.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | if result == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | c_try!(DestroyWindow(hwnd))?; [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/window.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 33 | impl Window { [INFO] [stdout] | - help: you might be missing a type parameter: `, WPARAM` [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn run(self) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/window.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | let mut message: MSG = Default::default(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:74:26 [INFO] [stdout] | [INFO] [stdout] 74 | let status = c_try_ne!(-1, GetMessageW(&mut message, self.hwnd, 0, 0))?; [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/window.rs:74:40 [INFO] [stdout] | [INFO] [stdout] 74 | let status = c_try_ne!(-1, GetMessageW(&mut message, self.hwnd, 0, 0))?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:74:26 [INFO] [stdout] | [INFO] [stdout] 74 | let status = c_try_ne!(-1, GetMessageW(&mut message, self.hwnd, 0, 0))?; [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> src/window.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | TranslateMessage(&message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> src/window.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | DispatchMessageW(&message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope [INFO] [stdout] --> src/window.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | assert_ne!(0, DestroyWindow(self.hwnd)); [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/window.rs:106:36 [INFO] [stdout] | [INFO] [stdout] 106 | pub type WindowProcResult = 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[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/window.rs:111:15 [INFO] [stdout] | [INFO] [stdout] 111 | hwnd: HWND, [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/window.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | u_msg: UINT, [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/window.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | w_param: WPARAM, [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/window.rs:114:18 [INFO] [stdout] | [INFO] [stdout] 114 | l_param: LPARAM, [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/window.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | fn window_proc_ptr_from_hwnd(hwnd: HWND) -> *mut T { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope [INFO] [stdout] --> src/window.rs:120:24 [INFO] [stdout] | [INFO] [stdout] 120 | let long_ptr = GetWindowLongPtrW(hwnd, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stdout] --> src/window.rs:121:31 [INFO] [stdout] | [INFO] [stdout] 118 | fn window_proc_ptr_from_hwnd(hwnd: HWND) -> *mut T { [INFO] [stdout] | - help: you might be missing a type parameter: `, LONG_PTR` [INFO] [stdout] ... [INFO] [stdout] 121 | std::mem::transmute::(long_ptr) [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/window.rs:126:11 [INFO] [stdout] | [INFO] [stdout] 126 | hwnd: HWND, [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/window.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | u_msg: UINT, [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/window.rs:128:14 [INFO] [stdout] | [INFO] [stdout] 128 | w_param: WPARAM, [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/window.rs:129:14 [INFO] [stdout] | [INFO] [stdout] 129 | l_param: LPARAM, [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/window.rs:130:6 [INFO] [stdout] | [INFO] [stdout] 130 | ) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> src/window.rs:143:55 [INFO] [stdout] | [INFO] [stdout] 143 | Err(WindowProcError::UnhandledMessage) => DefWindowProcW(hwnd, u_msg, w_param, l_param), [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/window.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | PostQuitMessage(-1); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/window.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 154 | class: WNDCLASSEXW, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/window.rs:155:11 [INFO] [stdout] | [INFO] [stdout] 155 | atom: LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PhantomData` in this scope [INFO] [stdout] --> src/window.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 156 | _phantom: PhantomData, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hid::fmt::string::lossy::char::methods::slice::iter::PhantomData; [INFO] [stdout] | [INFO] [stdout] 1 | use std::marker::PhantomData; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/window.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | let mut class: WNDCLASSEXW = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:167:27 [INFO] [stdout] | [INFO] [stdout] 167 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/window.rs:167:42 [INFO] [stdout] | [INFO] [stdout] 167 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/window.rs:167:59 [INFO] [stdout] | [INFO] [stdout] 167 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:167:27 [INFO] [stdout] | [INFO] [stdout] 167 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as _))?; [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | let atom = c_try_nonnull!(RegisterClassExW(&class))?; [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stdout] --> src/window.rs:170:35 [INFO] [stdout] | [INFO] [stdout] 170 | let atom = c_try_nonnull!(RegisterClassExW(&class))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | let atom = c_try_nonnull!(RegisterClassExW(&class))?; [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnregisterClassW` in this scope [INFO] [stdout] --> src/window.rs:183:27 [INFO] [stdout] | [INFO] [stdout] 183 | assert_ne!(0, UnregisterClassW(self.atom, self.class.hInstance)); [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/window.rs:189:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub struct Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 189 | devices: Box<[RAWINPUTDEVICE]>, [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/window.rs:200:71 [INFO] [stdout] | [INFO] [stdout] 200 | flags.insert((device_info.usage_page, device_info.usage), RIDEV_DEVNOTIFY); [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/window.rs:204:67 [INFO] [stdout] | [INFO] [stdout] 204 | Entry::Occupied(mut entry) => *entry.get_mut() |= RIDEV_INPUTSINK, [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/window.rs:206:34 [INFO] [stdout] | [INFO] [stdout] 206 | entry.insert(RIDEV_INPUTSINK); [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/window.rs:213:26 [INFO] [stdout] | [INFO] [stdout] 213 | devices.push(RAWINPUTDEVICE { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/util.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let result: BOOL = $expr; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterRawInputDevices` in this scope [INFO] [stdout] --> src/window.rs:221:16 [INFO] [stdout] | [INFO] [stdout] 221 | c_try!(RegisterRawInputDevices( [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/window.rs:224:33 [INFO] [stdout] | [INFO] [stdout] 192 | impl Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 224 | std::mem::size_of::() as _ [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/util.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | if result == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/util.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | let last_error = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/window.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 222 | | devices.as_ptr(), [INFO] [stdout] 223 | | devices.len() as _, [INFO] [stdout] 224 | | std::mem::size_of::() as _ [INFO] [stdout] 225 | | ))?; [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RIDEV_REMOVE` in this scope [INFO] [stdout] --> src/window.rs:236:30 [INFO] [stdout] | [INFO] [stdout] 236 | device.dwFlags = RIDEV_REMOVE; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/window.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | device.hwndTarget = NULL as _; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/window.rs:241:17 [INFO] [stdout] | [INFO] [stdout] 241 | FALSE, [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/window.rs:242:17 [INFO] [stdout] | [INFO] [stdout] 242 | RegisterRawInputDevices( [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/window.rs:245:41 [INFO] [stdout] | [INFO] [stdout] 233 | impl Drop for Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 245 | std::mem::size_of::() as _ [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetConsoleWindow` in this scope [INFO] [stdout] --> src/window.rs:254:23 [INFO] [stdout] | [INFO] [stdout] 254 | let console = GetConsoleWindow(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindowVisible` in this scope [INFO] [stdout] --> src/window.rs:255:12 [INFO] [stdout] | [INFO] [stdout] 255 | if IsWindowVisible(console) == TRUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/window.rs:255:40 [INFO] [stdout] | [INFO] [stdout] 255 | if IsWindowVisible(console) == TRUE { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope [INFO] [stdout] --> src/window.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | ShowWindow(console, SW_HIDE); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_HIDE` in this scope [INFO] [stdout] --> src/window.rs:256:33 [INFO] [stdout] | [INFO] [stdout] 256 | ShowWindow(console, SW_HIDE); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `HOOKS` in the current scope [INFO] [stdout] --> src/hook.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 34 | let mut hooks = HOOKS.lock().unwrap(); [INFO] [stdout] | ^^^^ method not found in `HOOKS` [INFO] [stdout] ... [INFO] [stdout] 92 | / lazy_static! { [INFO] [stdout] 93 | | static ref HOOKS: Mutex> = Mutex::new(HashMap::new()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_- method `lock` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `HOOKS` in the current scope [INFO] [stdout] --> src/hook.rs:106:27 [INFO] [stdout] | [INFO] [stdout] 92 | / lazy_static! { [INFO] [stdout] 93 | | static ref HOOKS: Mutex> = Mutex::new(HashMap::new()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_- method `lock` not found for this [INFO] [stdout] ... [INFO] [stdout] 106 | let mut hooks = HOOKS.lock().unwrap(); [INFO] [stdout] | ^^^^ method not found in `HOOKS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `HOOKS` in the current scope [INFO] [stdout] --> src/hook.rs:138:31 [INFO] [stdout] | [INFO] [stdout] 92 | / lazy_static! { [INFO] [stdout] 93 | | static ref HOOKS: Mutex> = Mutex::new(HashMap::new()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_- method `lock` not found for this [INFO] [stdout] ... [INFO] [stdout] 138 | let mut hooks = HOOKS.lock().unwrap(); [INFO] [stdout] | ^^^^ method not found in `HOOKS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/transport_agnostic_tpmiddle.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | devices: HashMap::new(), [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type for type parameter `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/window.rs:38:51 [INFO] [stdout] | [INFO] [stdout] 38 | let name: Vec = OsStr::new(name).encode_wide().chain(once(0)).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/window.rs:161:51 [INFO] [stdout] | [INFO] [stdout] 161 | let name: Vec = OsStr::new(name).encode_wide().chain(once(0)).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Iterator` [INFO] [stdout] --> src/window.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::{once, Iterator}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 313 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0422, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tpmiddle-rs` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `lock` found for struct `HOOKS` in the current scope [INFO] [stdout] --> src/hook.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 34 | let mut hooks = HOOKS.lock().unwrap(); [INFO] [stdout] | ^^^^ method not found in `HOOKS` [INFO] [stdout] ... [INFO] [stdout] 92 | / lazy_static! { [INFO] [stdout] 93 | | static ref HOOKS: Mutex> = Mutex::new(HashMap::new()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_- method `lock` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `HOOKS` in the current scope [INFO] [stdout] --> src/hook.rs:106:27 [INFO] [stdout] | [INFO] [stdout] 92 | / lazy_static! { [INFO] [stdout] 93 | | static ref HOOKS: Mutex> = Mutex::new(HashMap::new()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_- method `lock` not found for this [INFO] [stdout] ... [INFO] [stdout] 106 | let mut hooks = HOOKS.lock().unwrap(); [INFO] [stdout] | ^^^^ method not found in `HOOKS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `HOOKS` in the current scope [INFO] [stdout] --> src/hook.rs:138:31 [INFO] [stdout] | [INFO] [stdout] 92 | / lazy_static! { [INFO] [stdout] 93 | | static ref HOOKS: Mutex> = Mutex::new(HashMap::new()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_- method `lock` not found for this [INFO] [stdout] ... [INFO] [stdout] 138 | let mut hooks = HOOKS.lock().unwrap(); [INFO] [stdout] | ^^^^ method not found in `HOOKS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/transport_agnostic_tpmiddle.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | devices: HashMap::new(), [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type for type parameter `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/window.rs:38:51 [INFO] [stdout] | [INFO] [stdout] 38 | let name: Vec = OsStr::new(name).encode_wide().chain(once(0)).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/window.rs:161:51 [INFO] [stdout] | [INFO] [stdout] 161 | let name: Vec = OsStr::new(name).encode_wide().chain(once(0)).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Iterator` [INFO] [stdout] --> src/window.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::{once, Iterator}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 313 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0422, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "7bc70ef8a9affd99b8291a28dfae914ef057df9b911a0f5b6f3653adb028f79b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bc70ef8a9affd99b8291a28dfae914ef057df9b911a0f5b6f3653adb028f79b", kill_on_drop: false }` [INFO] [stdout] 7bc70ef8a9affd99b8291a28dfae914ef057df9b911a0f5b6f3653adb028f79b