[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] 8d31aa8998c815d4e33f8d21282dede2b4ccd427 [INFO] checking foriequal0/tpmiddle-rs against try#ff044a3d65d25a17c3e14c1530004e1540179ba7 for pr-78338 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fforiequal0%2Ftpmiddle-rs" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/foriequal0/tpmiddle-rs on toolchain ff044a3d65d25a17c3e14c1530004e1540179ba7 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "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-11/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" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded field-offset v0.3.2 [INFO] [stderr] Downloaded as-slice v0.1.4 [INFO] [stderr] Downloaded slog-async v2.5.0 [INFO] [stderr] Downloaded slog-envlogger v2.2.0 [INFO] [stderr] Downloaded slog-stdlog v4.1.0 [INFO] [stderr] Downloaded spin_sleep v1.0.0 [INFO] [stderr] Downloaded aligned v0.3.4 [INFO] [stderr] Downloaded hidapi v1.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4fc77e7ad03e9a6b917b88f06c65683147d9ac5007efdf81893b7f5defb9f5a6 [INFO] running `Command { std: "docker" "start" "-a" "4fc77e7ad03e9a6b917b88f06c65683147d9ac5007efdf81893b7f5defb9f5a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4fc77e7ad03e9a6b917b88f06c65683147d9ac5007efdf81893b7f5defb9f5a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fc77e7ad03e9a6b917b88f06c65683147d9ac5007efdf81893b7f5defb9f5a6", kill_on_drop: false }` [INFO] [stdout] 4fc77e7ad03e9a6b917b88f06c65683147d9ac5007efdf81893b7f5defb9f5a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34bc549a2607637017fcabfabafefe89f8e5fbec9f7238dab0e6389488aaaea8 [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" "34bc549a2607637017fcabfabafefe89f8e5fbec9f7238dab0e6389488aaaea8", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling syn v1.0.42 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling cc v1.0.60 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking regex-syntax v0.6.20 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling anyhow v1.0.32 [INFO] [stderr] Checking spin_sleep v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking slog-scope v4.3.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking term v0.6.1 [INFO] [stderr] Checking slog-stdlog v4.1.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking as-slice v0.1.4 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking aho-corasick v0.7.14 [INFO] [stderr] Checking slog-term v2.6.0 [INFO] [stderr] Checking crossbeam-channel v0.4.4 [INFO] [stderr] Compiling field-offset v0.3.2 [INFO] [stderr] Compiling hidapi v1.2.3 [INFO] [stderr] Checking aligned v0.3.4 [INFO] [stderr] Checking slog-async v2.5.0 [INFO] [stderr] Checking regex v1.4.1 [INFO] [stderr] Checking slog-envlogger v2.2.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Checking thiserror v1.0.21 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Checking tpmiddle-rs v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/bt_wheel_blocker.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::minwindef::{DWORD, LPARAM, LPVOID, 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:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | 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:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | 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:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | 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:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | 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 `um` in `winapi` [INFO] [stdout] --> src/control.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | use winapi::um::winuser::MOUSEEVENTF_HWHEEL; [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:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | 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::{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/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; [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/bt_wheel_blocker.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::minwindef::{DWORD, LPARAM, LPVOID, 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:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | 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:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | 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:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | 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:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | 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: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 `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/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 `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[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 `um` in `winapi` [INFO] [stdout] --> src/control.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | use winapi::um::winuser::MOUSEEVENTF_HWHEEL; [INFO] [stdout] | ^^ could not find `um` 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 `_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[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[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/bt_wheel_blocker.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | 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:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::minwindef::{ [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:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::shared::ntdef::{LPCWSTR, LPWSTR, 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:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::shared::windef::{HMENU, HWND}; [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: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 `um` in `winapi` [INFO] [stdout] --> src/window.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | 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 `shared` in `winapi` [INFO] [stdout] --> src/hook.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | 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 `um` in `winapi` [INFO] [stdout] --> src/window.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | 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:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | 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/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 `shared` in `winapi` [INFO] [stdout] --> src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | 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 `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/main.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | 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/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | 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 `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; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | use winapi::um::processthreadsapi::{GetCurrentProcess, SetPriorityClass}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/input.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 `um` in `winapi` [INFO] [stdout] --> src/main.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | use winapi::um::winbase::HIGH_PRIORITY_CLASS; [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/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | 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 `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 `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:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / c_try_ne!( [INFO] [stdout] 87 | | -1i32 as UINT, [INFO] [stdout] 88 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 89 | | )?; [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:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | / c_try_ne!( [INFO] [stdout] 92 | | -1i32 as UINT, [INFO] [stdout] 93 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 94 | | )?; [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/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/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:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | / c_try_ne!( [INFO] [stdout] 105 | | -1i32 as UINT, [INFO] [stdout] 106 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 107 | | )?; [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/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 `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:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | / c_try_ne!( [INFO] [stdout] 110 | | -1i32 as UINT, [INFO] [stdout] 111 | | GetRawInputDeviceInfoW( [INFO] [stdout] 112 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 116 | | ) [INFO] [stdout] 117 | | )?; [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 `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[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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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[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 `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 LPCWSTR))?; [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 `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::{ [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:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::shared::ntdef::{LPCWSTR, LPWSTR, 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/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 `shared` in `winapi` [INFO] [stdout] --> src/window.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::shared::windef::{HMENU, 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:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | 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:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | 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:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | 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/input.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | / c_try_ne!( [INFO] [stdout] 144 | | (-1i32) as UINT, [INFO] [stdout] 145 | | GetRawInputDeviceInfoW( [INFO] [stdout] 146 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 150 | | ) [INFO] [stdout] 151 | | )?; [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:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 42 | | 0, [INFO] [stdout] 43 | | class.atom, [INFO] [stdout] 44 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 53 | | proc.as_mut() as *mut T as LPVOID, [INFO] [stdout] 54 | | ))?; [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/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | 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/main.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | 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/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | 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/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | use winapi::um::processthreadsapi::{GetCurrentProcess, SetPriorityClass}; [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/main.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | use winapi::um::winbase::HIGH_PRIORITY_CLASS; [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/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | 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 `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:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / c_try_ne!( [INFO] [stdout] 87 | | -1i32 as UINT, [INFO] [stdout] 88 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 89 | | )?; [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:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | / c_try_ne!( [INFO] [stdout] 92 | | -1i32 as UINT, [INFO] [stdout] 93 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 94 | | )?; [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:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 57 | | hwnd, [INFO] [stdout] 58 | | 0, [INFO] [stdout] 59 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 60 | | )) { [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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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/bt_wheel_blocker.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | / c_try_ne!( [INFO] [stdout] 105 | | -1i32 as UINT, [INFO] [stdout] 106 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 107 | | )?; [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:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | / c_try_ne!( [INFO] [stdout] 110 | | -1i32 as UINT, [INFO] [stdout] 111 | | GetRawInputDeviceInfoW( [INFO] [stdout] 112 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 116 | | ) [INFO] [stdout] 117 | | )?; [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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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 LPCWSTR))?; [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:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | / c_try_ne!( [INFO] [stdout] 144 | | (-1i32) as UINT, [INFO] [stdout] 145 | | GetRawInputDeviceInfoW( [INFO] [stdout] 146 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 150 | | ) [INFO] [stdout] 151 | | )?; [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:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 42 | | 0, [INFO] [stdout] 43 | | class.atom, [INFO] [stdout] 44 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 53 | | proc.as_mut() as *mut T as LPVOID, [INFO] [stdout] 54 | | ))?; [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:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 57 | | hwnd, [INFO] [stdout] 58 | | 0, [INFO] [stdout] 59 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 60 | | )) { [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:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | 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 `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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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: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:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [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:179:20 [INFO] [stdout] | [INFO] [stdout] 179 | 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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | 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:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:179:20 [INFO] [stdout] | [INFO] [stdout] 179 | 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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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[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/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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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 `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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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[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:209:58 [INFO] [stdout] | [INFO] [stdout] 209 | 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:211:22 [INFO] [stdout] | [INFO] [stdout] 211 | (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:212:65 [INFO] [stdout] | [INFO] [stdout] 212 | } 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:214:24 [INFO] [stdout] | [INFO] [stdout] 214 | -((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:209:58 [INFO] [stdout] | [INFO] [stdout] 209 | 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:211:22 [INFO] [stdout] | [INFO] [stdout] 211 | (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:212:65 [INFO] [stdout] | [INFO] [stdout] 212 | } 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:214:24 [INFO] [stdout] | [INFO] [stdout] 214 | -((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:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | 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:42:43 [INFO] [stdout] | [INFO] [stdout] 42 | 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:42:58 [INFO] [stdout] | [INFO] [stdout] 42 | 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:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | 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:47:49 [INFO] [stdout] | [INFO] [stdout] 47 | const SIZE: usize = std::mem::size_of::(); [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:50:36 [INFO] [stdout] | [INFO] [stdout] 50 | let mut size = SIZE 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/bt_wheel_blocker.rs:51:26 [INFO] [stdout] | [INFO] [stdout] 51 | 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/bt_wheel_blocker.rs:52:28 [INFO] [stdout] | [INFO] [stdout] 52 | 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/bt_wheel_blocker.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | 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/bt_wheel_blocker.rs:54:44 [INFO] [stdout] | [INFO] [stdout] 54 | raw_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/bt_wheel_blocker.rs:56:37 [INFO] [stdout] | [INFO] [stdout] 41 | impl WheelBlocker { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 56 | 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/bt_wheel_blocker.rs:56:58 [INFO] [stdout] | [INFO] [stdout] 56 | 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/bt_wheel_blocker.rs:58:40 [INFO] [stdout] | [INFO] [stdout] 58 | 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/bt_wheel_blocker.rs:61:53 [INFO] [stdout] | [INFO] [stdout] 61 | 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:63:33 [INFO] [stdout] | [INFO] [stdout] 63 | 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:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | 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:83:67 [INFO] [stdout] | [INFO] [stdout] 83 | fn get_target_device_handle(target_device: &DeviceInfo) -> 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:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | const SIZE: UINT = std::mem::size_of::() as UINT; [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:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | const SIZE: UINT = 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/bt_wheel_blocker.rs:84:69 [INFO] [stdout] | [INFO] [stdout] 84 | const SIZE: UINT = std::mem::size_of::() 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:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / c_try_ne!( [INFO] [stdout] 87 | | -1i32 as UINT, [INFO] [stdout] 88 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 89 | | )?; [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:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | 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:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | GetRawInputDeviceList(NULL as _, &mut num_devices, 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/bt_wheel_blocker.rs:87:18 [INFO] [stdout] | [INFO] [stdout] 87 | -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:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / c_try_ne!( [INFO] [stdout] 87 | | -1i32 as UINT, [INFO] [stdout] 88 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 89 | | )?; [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:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | / c_try_ne!( [INFO] [stdout] 92 | | -1i32 as UINT, [INFO] [stdout] 93 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 94 | | )?; [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:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, 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/bt_wheel_blocker.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 92 | -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:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | / c_try_ne!( [INFO] [stdout] 92 | | -1i32 as UINT, [INFO] [stdout] 93 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 94 | | )?; [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:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | / c_try_ne!( [INFO] [stdout] 105 | | -1i32 as UINT, [INFO] [stdout] 106 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 107 | | )?; [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:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | 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:106:52 [INFO] [stdout] | [INFO] [stdout] 106 | 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:106:69 [INFO] [stdout] | [INFO] [stdout] 106 | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut 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/bt_wheel_blocker.rs:105:22 [INFO] [stdout] | [INFO] [stdout] 105 | -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:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | / c_try_ne!( [INFO] [stdout] 105 | | -1i32 as UINT, [INFO] [stdout] 106 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 107 | | )?; [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:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | / c_try_ne!( [INFO] [stdout] 110 | | -1i32 as UINT, [INFO] [stdout] 111 | | GetRawInputDeviceInfoW( [INFO] [stdout] 112 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 116 | | ) [INFO] [stdout] 117 | | )?; [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:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | 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:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | RIDI_DEVICENAME, [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:110:22 [INFO] [stdout] | [INFO] [stdout] 110 | -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:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | / c_try_ne!( [INFO] [stdout] 110 | | -1i32 as UINT, [INFO] [stdout] 111 | | GetRawInputDeviceInfoW( [INFO] [stdout] 112 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 116 | | ) [INFO] [stdout] 117 | | )?; [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 `DWORD` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | 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:134:11 [INFO] [stdout] | [INFO] [stdout] 134 | 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:171:32 [INFO] [stdout] | [INFO] [stdout] 171 | 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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:16 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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:192:49 [INFO] [stdout] | [INFO] [stdout] 192 | 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:192:66 [INFO] [stdout] | [INFO] [stdout] 192 | 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:193:23 [INFO] [stdout] | [INFO] [stdout] 193 | 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:193:31 [INFO] [stdout] | [INFO] [stdout] 193 | 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:197:48 [INFO] [stdout] | [INFO] [stdout] 197 | 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:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | 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:198:64 [INFO] [stdout] | [INFO] [stdout] 198 | 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:203:23 [INFO] [stdout] | [INFO] [stdout] 203 | 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:241:21 [INFO] [stdout] | [INFO] [stdout] 241 | 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:241:28 [INFO] [stdout] | [INFO] [stdout] 241 | 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:246:16 [INFO] [stdout] | [INFO] [stdout] 246 | _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:247:16 [INFO] [stdout] | [INFO] [stdout] 247 | 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:248:19 [INFO] [stdout] | [INFO] [stdout] 248 | _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:249:19 [INFO] [stdout] | [INFO] [stdout] 249 | _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:252:22 [INFO] [stdout] | [INFO] [stdout] 252 | 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:41:29 [INFO] [stdout] | [INFO] [stdout] 41 | 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:52:33 [INFO] [stdout] | [INFO] [stdout] 52 | 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:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | send_wheel(event, (delta as i32 * WHEEL_DELTA as i32) 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:53:70 [INFO] [stdout] | [INFO] [stdout] 53 | send_wheel(event, (delta as i32 * WHEEL_DELTA as i32) 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:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | 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 `MOUSEEVENTF_HWHEEL` in this scope [INFO] [stdout] --> src/control.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | if event == MOUSEEVENTF_HWHEEL { [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:64:51 [INFO] [stdout] | [INFO] [stdout] 64 | send_wheel(event, (delta as i32 * WHEEL_DELTA as i32) 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:64:74 [INFO] [stdout] | [INFO] [stdout] 64 | send_wheel(event, (delta as i32 * WHEEL_DELTA as i32) 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:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | 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:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | 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:238:20 [INFO] [stdout] | [INFO] [stdout] 238 | 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:250:49 [INFO] [stdout] | [INFO] [stdout] 250 | 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:350:69 [INFO] [stdout] | [INFO] [stdout] 350 | 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:358:34 [INFO] [stdout] | [INFO] [stdout] 358 | 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:379:16 [INFO] [stdout] | [INFO] [stdout] 379 | 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:380:21 [INFO] [stdout] | [INFO] [stdout] 380 | 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 LPCWSTR))?; [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 LPCWSTR))?; [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 LPCWSTR))?; [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/hook.rs:49:60 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as LPCWSTR))?; [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 LPCWSTR))?; [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:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | 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:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | 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:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | 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:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | 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:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | 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:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | 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:26:27 [INFO] [stdout] | [INFO] [stdout] 26 | 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:28:27 [INFO] [stdout] | [INFO] [stdout] 28 | 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:30:27 [INFO] [stdout] | [INFO] [stdout] 30 | 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:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | 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:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | 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:38:33 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn send_click(button: DWORD) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 38 | 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:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | 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:43:45 [INFO] [stdout] | [INFO] [stdout] 43 | 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:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | 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:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | 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:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | 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:52:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn send_wheel(event: DWORD, mouse_data: DWORD) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 52 | 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 `RID_DEVICE_INFO_HID` in this scope [INFO] [stdout] --> src/input.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | 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:65:18 [INFO] [stdout] | [INFO] [stdout] 65 | 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 `HRAWINPUT` in this scope [INFO] [stdout] --> src/input.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | l_param: HRAWINPUT, [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:80:49 [INFO] [stdout] | [INFO] [stdout] 80 | const SIZE: usize = std::mem::size_of::() + 9; [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:83:36 [INFO] [stdout] | [INFO] [stdout] 83 | let mut size = SIZE 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:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | 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:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | 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:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | 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:87:44 [INFO] [stdout] | [INFO] [stdout] 87 | raw_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:89:37 [INFO] [stdout] | [INFO] [stdout] 75 | impl Event { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 89 | 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:89:58 [INFO] [stdout] | [INFO] [stdout] 89 | 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:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | 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:94:53 [INFO] [stdout] | [INFO] [stdout] 94 | 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_TYPEHID` in this scope [INFO] [stdout] --> src/input.rs:96:33 [INFO] [stdout] | [INFO] [stdout] 96 | if header.dwType != RIM_TYPEHID { [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:139:32 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn get_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:140:30 [INFO] [stdout] | [INFO] [stdout] 140 | 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:141:63 [INFO] [stdout] | [INFO] [stdout] 141 | 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:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | / c_try_ne!( [INFO] [stdout] 144 | | (-1i32) as UINT, [INFO] [stdout] 145 | | GetRawInputDeviceInfoW( [INFO] [stdout] 146 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 150 | | ) [INFO] [stdout] 151 | | )?; [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:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | 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:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | 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:148:42 [INFO] [stdout] | [INFO] [stdout] 148 | &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:148:61 [INFO] [stdout] | [INFO] [stdout] 148 | &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:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | (-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:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | / c_try_ne!( [INFO] [stdout] 144 | | (-1i32) as UINT, [INFO] [stdout] 145 | | GetRawInputDeviceInfoW( [INFO] [stdout] 146 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 150 | | ) [INFO] [stdout] 151 | | )?; [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:154:35 [INFO] [stdout] | [INFO] [stdout] 154 | rid_device_info.dwType == RIM_TYPEHID, [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/tpmiddle.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | _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:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | 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:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | _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:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | 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:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | 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:52:46 [INFO] [stdout] | [INFO] [stdout] 52 | Event::from_raw_input(l_param as HRAWINPUT, self.listening_device_infos) [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:76:37 [INFO] [stdout] | [INFO] [stdout] 76 | 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:80:37 [INFO] [stdout] | [INFO] [stdout] 80 | self.control.scroll(MOUSEEVENTF_HWHEEL, dx); [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:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | 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:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | _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:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 42 | | 0, [INFO] [stdout] 43 | | class.atom, [INFO] [stdout] 44 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 53 | | proc.as_mut() as *mut T as LPVOID, [INFO] [stdout] 54 | | ))?; [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:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | 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:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | 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:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | NULL as HMENU, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/window.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | NULL as HMENU, [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:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | NULL as HINSTANCE, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/window.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | NULL as HINSTANCE, [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/window.rs:53:40 [INFO] [stdout] | [INFO] [stdout] 53 | proc.as_mut() as *mut T as LPVOID, [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:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 42 | | 0, [INFO] [stdout] 43 | | class.atom, [INFO] [stdout] 44 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 53 | | proc.as_mut() as *mut T as LPVOID, [INFO] [stdout] 54 | | ))?; [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:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 57 | | hwnd, [INFO] [stdout] 58 | | 0, [INFO] [stdout] 59 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 60 | | )) { [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:56:42 [INFO] [stdout] | [INFO] [stdout] 56 | 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:59:40 [INFO] [stdout] | [INFO] [stdout] 59 | 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:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 57 | | hwnd, [INFO] [stdout] 58 | | 0, [INFO] [stdout] 59 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 60 | | )) { [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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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 `GetConsoleWindow` in this scope [INFO] [stdout] --> src/window.rs:67:27 [INFO] [stdout] | [INFO] [stdout] 67 | 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:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | 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:68:44 [INFO] [stdout] | [INFO] [stdout] 68 | 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:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | 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:69:37 [INFO] [stdout] | [INFO] [stdout] 69 | ShowWindow(console, SW_HIDE); [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:80:32 [INFO] [stdout] | [INFO] [stdout] 35 | impl Window { [INFO] [stdout] | - help: you might be missing a type parameter: `, WPARAM` [INFO] [stdout] ... [INFO] [stdout] 80 | 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:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | 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:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | 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:83:40 [INFO] [stdout] | [INFO] [stdout] 83 | 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:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | 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:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | 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:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 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:101:27 [INFO] [stdout] | [INFO] [stdout] 101 | 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:115:36 [INFO] [stdout] | [INFO] [stdout] 115 | 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:120:15 [INFO] [stdout] | [INFO] [stdout] 120 | 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:121:16 [INFO] [stdout] | [INFO] [stdout] 121 | 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:122:18 [INFO] [stdout] | [INFO] [stdout] 122 | 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:123:18 [INFO] [stdout] | [INFO] [stdout] 123 | 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:127:39 [INFO] [stdout] | [INFO] [stdout] 127 | 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:129:24 [INFO] [stdout] | [INFO] [stdout] 129 | 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:130:31 [INFO] [stdout] | [INFO] [stdout] 127 | 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] 130 | 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:135:11 [INFO] [stdout] | [INFO] [stdout] 135 | 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:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | 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:137:14 [INFO] [stdout] | [INFO] [stdout] 137 | 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:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | 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:139:6 [INFO] [stdout] | [INFO] [stdout] 139 | ) -> 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:152:55 [INFO] [stdout] | [INFO] [stdout] 152 | 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:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | 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:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | 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:164:11 [INFO] [stdout] | [INFO] [stdout] 164 | 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:165:15 [INFO] [stdout] | [INFO] [stdout] 165 | _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:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | let mut class: WNDCLASSEXW = 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/window.rs:173:57 [INFO] [stdout] | [INFO] [stdout] 173 | class.cbSize = std::mem::size_of_val(&class) as UINT; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INT` in this scope [INFO] [stdout] --> src/window.rs:174:63 [INFO] [stdout] | [INFO] [stdout] 174 | class.cbWndExtra = std::mem::size_of::<*const T>() as INT; [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:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [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:176:42 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [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:176:59 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/window.rs:176:67 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [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:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [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:179:20 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:35 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:20 [INFO] [stdout] | [INFO] [stdout] 179 | 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[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/window.rs:183:27 [INFO] [stdout] | [INFO] [stdout] 183 | atom: atom as LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [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:192:27 [INFO] [stdout] | [INFO] [stdout] 192 | 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:198:19 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 198 | 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:209:71 [INFO] [stdout] | [INFO] [stdout] 209 | 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:213:67 [INFO] [stdout] | [INFO] [stdout] 213 | 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:215:34 [INFO] [stdout] | [INFO] [stdout] 215 | 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:222:26 [INFO] [stdout] | [INFO] [stdout] 222 | 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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:230:16 [INFO] [stdout] | [INFO] [stdout] 230 | c_try!(RegisterRawInputDevices( [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:232:30 [INFO] [stdout] | [INFO] [stdout] 232 | devices.len() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/window.rs:233:33 [INFO] [stdout] | [INFO] [stdout] 201 | impl Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 233 | 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/window.rs:233:54 [INFO] [stdout] | [INFO] [stdout] 233 | std::mem::size_of::() as UINT [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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:245:30 [INFO] [stdout] | [INFO] [stdout] 245 | 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:246:33 [INFO] [stdout] | [INFO] [stdout] 246 | device.hwndTarget = NULL as HWND; [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:246:41 [INFO] [stdout] | [INFO] [stdout] 246 | device.hwndTarget = NULL as 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/window.rs:250:17 [INFO] [stdout] | [INFO] [stdout] 250 | 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:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | RegisterRawInputDevices( [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:253:43 [INFO] [stdout] | [INFO] [stdout] 253 | self.devices.len() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/window.rs:254:41 [INFO] [stdout] | [INFO] [stdout] 242 | impl Drop for Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 254 | 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/window.rs:254:62 [INFO] [stdout] | [INFO] [stdout] 254 | std::mem::size_of::() as UINT [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:56:22 [INFO] [stdout] | [INFO] [stdout] 53 | struct TransportAgnosticTPMiddle<'a> { [INFO] [stdout] | - help: you might be missing a type parameter: `, HANDLE` [INFO] [stdout] ... [INFO] [stdout] 56 | 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/main.rs:137:15 [INFO] [stdout] | [INFO] [stdout] 137 | 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/main.rs:138:16 [INFO] [stdout] | [INFO] [stdout] 138 | 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/main.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | 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/main.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | 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/main.rs:143:50 [INFO] [stdout] | [INFO] [stdout] 143 | 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/main.rs:143:59 [INFO] [stdout] | [INFO] [stdout] 143 | 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 `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:144:41 [INFO] [stdout] | [INFO] [stdout] 144 | let handle = l_param as HANDLE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:172:50 [INFO] [stdout] | [INFO] [stdout] 172 | 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/main.rs:172:59 [INFO] [stdout] | [INFO] [stdout] 172 | 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 `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:173:41 [INFO] [stdout] | [INFO] [stdout] 173 | let handle = l_param as HANDLE; [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/main.rs:277:25 [INFO] [stdout] | [INFO] [stdout] 277 | fn try_main() -> Result { [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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[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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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 `SetPriorityClass` in this scope [INFO] [stdout] --> src/main.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/main.rs:288:29 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIGH_PRIORITY_CLASS` in this scope [INFO] [stdout] --> src/main.rs:288:50 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS))?; [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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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 `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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | 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:42:43 [INFO] [stdout] | [INFO] [stdout] 42 | 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:42:58 [INFO] [stdout] | [INFO] [stdout] 42 | 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:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | 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:47:49 [INFO] [stdout] | [INFO] [stdout] 47 | const SIZE: usize = std::mem::size_of::(); [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:50:36 [INFO] [stdout] | [INFO] [stdout] 50 | let mut size = SIZE 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/bt_wheel_blocker.rs:51:26 [INFO] [stdout] | [INFO] [stdout] 51 | 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/bt_wheel_blocker.rs:52:28 [INFO] [stdout] | [INFO] [stdout] 52 | 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/bt_wheel_blocker.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | 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/bt_wheel_blocker.rs:54:44 [INFO] [stdout] | [INFO] [stdout] 54 | raw_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/bt_wheel_blocker.rs:56:37 [INFO] [stdout] | [INFO] [stdout] 41 | impl WheelBlocker { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 56 | 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/bt_wheel_blocker.rs:56:58 [INFO] [stdout] | [INFO] [stdout] 56 | 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/bt_wheel_blocker.rs:58:40 [INFO] [stdout] | [INFO] [stdout] 58 | 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/bt_wheel_blocker.rs:61:53 [INFO] [stdout] | [INFO] [stdout] 61 | 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:63:33 [INFO] [stdout] | [INFO] [stdout] 63 | 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:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | 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:83:67 [INFO] [stdout] | [INFO] [stdout] 83 | fn get_target_device_handle(target_device: &DeviceInfo) -> 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:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | const SIZE: UINT = std::mem::size_of::() as UINT; [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:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | const SIZE: UINT = 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/bt_wheel_blocker.rs:84:69 [INFO] [stdout] | [INFO] [stdout] 84 | const SIZE: UINT = std::mem::size_of::() 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:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / c_try_ne!( [INFO] [stdout] 87 | | -1i32 as UINT, [INFO] [stdout] 88 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 89 | | )?; [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:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | 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:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | GetRawInputDeviceList(NULL as _, &mut num_devices, 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/bt_wheel_blocker.rs:87:18 [INFO] [stdout] | [INFO] [stdout] 87 | -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:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / c_try_ne!( [INFO] [stdout] 87 | | -1i32 as UINT, [INFO] [stdout] 88 | | GetRawInputDeviceList(NULL as _, &mut num_devices, SIZE) [INFO] [stdout] 89 | | )?; [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:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | / c_try_ne!( [INFO] [stdout] 92 | | -1i32 as UINT, [INFO] [stdout] 93 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 94 | | )?; [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:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, 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/bt_wheel_blocker.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 92 | -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:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | / c_try_ne!( [INFO] [stdout] 92 | | -1i32 as UINT, [INFO] [stdout] 93 | | GetRawInputDeviceList(devices.as_mut_ptr(), &mut num_devices, SIZE) [INFO] [stdout] 94 | | )?; [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:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | / c_try_ne!( [INFO] [stdout] 105 | | -1i32 as UINT, [INFO] [stdout] 106 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 107 | | )?; [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:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | 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:106:52 [INFO] [stdout] | [INFO] [stdout] 106 | 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:106:69 [INFO] [stdout] | [INFO] [stdout] 106 | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut 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/bt_wheel_blocker.rs:105:22 [INFO] [stdout] | [INFO] [stdout] 105 | -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:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | / c_try_ne!( [INFO] [stdout] 105 | | -1i32 as UINT, [INFO] [stdout] 106 | | GetRawInputDeviceInfoW(device.hDevice, RIDI_DEVICENAME, NULL as _, &mut size) [INFO] [stdout] 107 | | )?; [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:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | / c_try_ne!( [INFO] [stdout] 110 | | -1i32 as UINT, [INFO] [stdout] 111 | | GetRawInputDeviceInfoW( [INFO] [stdout] 112 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 116 | | ) [INFO] [stdout] 117 | | )?; [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:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | 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:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | RIDI_DEVICENAME, [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:110:22 [INFO] [stdout] | [INFO] [stdout] 110 | -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:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | / c_try_ne!( [INFO] [stdout] 110 | | -1i32 as UINT, [INFO] [stdout] 111 | | GetRawInputDeviceInfoW( [INFO] [stdout] 112 | | device.hDevice, [INFO] [stdout] ... | [INFO] [stdout] 116 | | ) [INFO] [stdout] 117 | | )?; [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 `DWORD` in this scope [INFO] [stdout] --> src/bt_wheel_blocker.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | 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:134:11 [INFO] [stdout] | [INFO] [stdout] 134 | 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:171:32 [INFO] [stdout] | [INFO] [stdout] 171 | 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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:16 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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:192:49 [INFO] [stdout] | [INFO] [stdout] 192 | 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:192:66 [INFO] [stdout] | [INFO] [stdout] 192 | 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:193:23 [INFO] [stdout] | [INFO] [stdout] 193 | 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:193:31 [INFO] [stdout] | [INFO] [stdout] 193 | 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:197:48 [INFO] [stdout] | [INFO] [stdout] 197 | 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:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | 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:198:64 [INFO] [stdout] | [INFO] [stdout] 198 | 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:203:23 [INFO] [stdout] | [INFO] [stdout] 203 | 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:241:21 [INFO] [stdout] | [INFO] [stdout] 241 | 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:241:28 [INFO] [stdout] | [INFO] [stdout] 241 | 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:246:16 [INFO] [stdout] | [INFO] [stdout] 246 | _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:247:16 [INFO] [stdout] | [INFO] [stdout] 247 | 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:248:19 [INFO] [stdout] | [INFO] [stdout] 248 | _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:249:19 [INFO] [stdout] | [INFO] [stdout] 249 | _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:252:22 [INFO] [stdout] | [INFO] [stdout] 252 | 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:41:29 [INFO] [stdout] | [INFO] [stdout] 41 | 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:52:33 [INFO] [stdout] | [INFO] [stdout] 52 | 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:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | send_wheel(event, (delta as i32 * WHEEL_DELTA as i32) 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:53:70 [INFO] [stdout] | [INFO] [stdout] 53 | send_wheel(event, (delta as i32 * WHEEL_DELTA as i32) 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:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | 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 `MOUSEEVENTF_HWHEEL` in this scope [INFO] [stdout] --> src/control.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | if event == MOUSEEVENTF_HWHEEL { [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:64:51 [INFO] [stdout] | [INFO] [stdout] 64 | send_wheel(event, (delta as i32 * WHEEL_DELTA as i32) 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:64:74 [INFO] [stdout] | [INFO] [stdout] 64 | send_wheel(event, (delta as i32 * WHEEL_DELTA as i32) 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:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | 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:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | 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:238:20 [INFO] [stdout] | [INFO] [stdout] 238 | 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:250:49 [INFO] [stdout] | [INFO] [stdout] 250 | 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:350:69 [INFO] [stdout] | [INFO] [stdout] 350 | 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:358:34 [INFO] [stdout] | [INFO] [stdout] 358 | 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:379:16 [INFO] [stdout] | [INFO] [stdout] 379 | 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:380:21 [INFO] [stdout] | [INFO] [stdout] 380 | 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 LPCWSTR))?; [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 LPCWSTR))?; [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 LPCWSTR))?; [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/hook.rs:49:60 [INFO] [stdout] | [INFO] [stdout] 49 | let hmod = c_try_nonnull!(GetModuleHandleW(NULL as LPCWSTR))?; [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 LPCWSTR))?; [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:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | 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:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | 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:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | 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:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | 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:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | 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:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | 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:26:27 [INFO] [stdout] | [INFO] [stdout] 26 | 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:28:27 [INFO] [stdout] | [INFO] [stdout] 28 | 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:30:27 [INFO] [stdout] | [INFO] [stdout] 30 | 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:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | 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:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | 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:38:33 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn send_click(button: DWORD) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 38 | 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:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | 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:43:45 [INFO] [stdout] | [INFO] [stdout] 43 | 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:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | 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:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | 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:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | 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:52:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn send_wheel(event: DWORD, mouse_data: DWORD) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 52 | 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 `RID_DEVICE_INFO_HID` in this scope [INFO] [stdout] --> src/input.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | 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:65:18 [INFO] [stdout] | [INFO] [stdout] 65 | 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 `HRAWINPUT` in this scope [INFO] [stdout] --> src/input.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | l_param: HRAWINPUT, [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:80:49 [INFO] [stdout] | [INFO] [stdout] 80 | const SIZE: usize = std::mem::size_of::() + 9; [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:83:36 [INFO] [stdout] | [INFO] [stdout] 83 | let mut size = SIZE 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:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | 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:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | 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:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | 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:87:44 [INFO] [stdout] | [INFO] [stdout] 87 | raw_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:89:37 [INFO] [stdout] | [INFO] [stdout] 75 | impl Event { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 89 | 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:89:58 [INFO] [stdout] | [INFO] [stdout] 89 | 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:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | 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:94:53 [INFO] [stdout] | [INFO] [stdout] 94 | 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_TYPEHID` in this scope [INFO] [stdout] --> src/input.rs:96:33 [INFO] [stdout] | [INFO] [stdout] 96 | if header.dwType != RIM_TYPEHID { [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:139:32 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn get_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:140:30 [INFO] [stdout] | [INFO] [stdout] 140 | 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:141:63 [INFO] [stdout] | [INFO] [stdout] 141 | 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:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | / c_try_ne!( [INFO] [stdout] 144 | | (-1i32) as UINT, [INFO] [stdout] 145 | | GetRawInputDeviceInfoW( [INFO] [stdout] 146 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 150 | | ) [INFO] [stdout] 151 | | )?; [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:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | 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:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | 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:148:42 [INFO] [stdout] | [INFO] [stdout] 148 | &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:148:61 [INFO] [stdout] | [INFO] [stdout] 148 | &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:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | (-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:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | / c_try_ne!( [INFO] [stdout] 144 | | (-1i32) as UINT, [INFO] [stdout] 145 | | GetRawInputDeviceInfoW( [INFO] [stdout] 146 | | handle, [INFO] [stdout] ... | [INFO] [stdout] 150 | | ) [INFO] [stdout] 151 | | )?; [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:154:35 [INFO] [stdout] | [INFO] [stdout] 154 | rid_device_info.dwType == RIM_TYPEHID, [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/tpmiddle.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | _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:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | 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:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | _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:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | 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:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | 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:52:46 [INFO] [stdout] | [INFO] [stdout] 52 | Event::from_raw_input(l_param as HRAWINPUT, self.listening_device_infos) [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:76:37 [INFO] [stdout] | [INFO] [stdout] 76 | 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:80:37 [INFO] [stdout] | [INFO] [stdout] 80 | self.control.scroll(MOUSEEVENTF_HWHEEL, dx); [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:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | 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:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | _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:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 42 | | 0, [INFO] [stdout] 43 | | class.atom, [INFO] [stdout] 44 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 53 | | proc.as_mut() as *mut T as LPVOID, [INFO] [stdout] 54 | | ))?; [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:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | 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:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | 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:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | NULL as HMENU, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/window.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | NULL as HMENU, [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:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | NULL as HINSTANCE, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/window.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | NULL as HINSTANCE, [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/window.rs:53:40 [INFO] [stdout] | [INFO] [stdout] 53 | proc.as_mut() as *mut T as LPVOID, [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:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | let hwnd = c_try_nonnull!(CreateWindowExW( [INFO] [stdout] | ____________________- [INFO] [stdout] 42 | | 0, [INFO] [stdout] 43 | | class.atom, [INFO] [stdout] 44 | | name.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 53 | | proc.as_mut() as *mut T as LPVOID, [INFO] [stdout] 54 | | ))?; [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:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 57 | | hwnd, [INFO] [stdout] 58 | | 0, [INFO] [stdout] 59 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 60 | | )) { [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:56:42 [INFO] [stdout] | [INFO] [stdout] 56 | 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:59:40 [INFO] [stdout] | [INFO] [stdout] 59 | 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:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | if let Err(err) = c_try_nonnull!(SetWindowLongPtrW( [INFO] [stdout] | ___________________________- [INFO] [stdout] 57 | | hwnd, [INFO] [stdout] 58 | | 0, [INFO] [stdout] 59 | | proc.as_mut() as *mut T as LONG_PTR [INFO] [stdout] 60 | | )) { [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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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 `GetConsoleWindow` in this scope [INFO] [stdout] --> src/window.rs:67:27 [INFO] [stdout] | [INFO] [stdout] 67 | 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:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | 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:68:44 [INFO] [stdout] | [INFO] [stdout] 68 | 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:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | 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:69:37 [INFO] [stdout] | [INFO] [stdout] 69 | ShowWindow(console, SW_HIDE); [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:80:32 [INFO] [stdout] | [INFO] [stdout] 35 | impl Window { [INFO] [stdout] | - help: you might be missing a type parameter: `, WPARAM` [INFO] [stdout] ... [INFO] [stdout] 80 | 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:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | 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:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | 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:83:40 [INFO] [stdout] | [INFO] [stdout] 83 | 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:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | 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:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | 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:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 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:101:27 [INFO] [stdout] | [INFO] [stdout] 101 | 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:115:36 [INFO] [stdout] | [INFO] [stdout] 115 | 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:120:15 [INFO] [stdout] | [INFO] [stdout] 120 | 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:121:16 [INFO] [stdout] | [INFO] [stdout] 121 | 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:122:18 [INFO] [stdout] | [INFO] [stdout] 122 | 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:123:18 [INFO] [stdout] | [INFO] [stdout] 123 | 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:127:39 [INFO] [stdout] | [INFO] [stdout] 127 | 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:129:24 [INFO] [stdout] | [INFO] [stdout] 129 | 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:130:31 [INFO] [stdout] | [INFO] [stdout] 127 | 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] 130 | 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:135:11 [INFO] [stdout] | [INFO] [stdout] 135 | 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:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | 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:137:14 [INFO] [stdout] | [INFO] [stdout] 137 | 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:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | 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:139:6 [INFO] [stdout] | [INFO] [stdout] 139 | ) -> 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:152:55 [INFO] [stdout] | [INFO] [stdout] 152 | 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:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | 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:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | 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:164:11 [INFO] [stdout] | [INFO] [stdout] 164 | 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:165:15 [INFO] [stdout] | [INFO] [stdout] 165 | _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:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | let mut class: WNDCLASSEXW = 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/window.rs:173:57 [INFO] [stdout] | [INFO] [stdout] 173 | class.cbSize = std::mem::size_of_val(&class) as UINT; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INT` in this scope [INFO] [stdout] --> src/window.rs:174:63 [INFO] [stdout] | [INFO] [stdout] 174 | class.cbWndExtra = std::mem::size_of::<*const T>() as INT; [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:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [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:176:42 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [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:176:59 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/window.rs:176:67 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [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:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | class.hInstance = c_try_nonnull!(GetModuleHandleW(NULL as LPWSTR))?; [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:179:20 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:35 [INFO] [stdout] | [INFO] [stdout] 179 | 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:179:20 [INFO] [stdout] | [INFO] [stdout] 179 | 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[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/window.rs:183:27 [INFO] [stdout] | [INFO] [stdout] 183 | atom: atom as LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [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:192:27 [INFO] [stdout] | [INFO] [stdout] 192 | 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:198:19 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 198 | 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:209:71 [INFO] [stdout] | [INFO] [stdout] 209 | 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:213:67 [INFO] [stdout] | [INFO] [stdout] 213 | 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:215:34 [INFO] [stdout] | [INFO] [stdout] 215 | 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:222:26 [INFO] [stdout] | [INFO] [stdout] 222 | 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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:230:16 [INFO] [stdout] | [INFO] [stdout] 230 | c_try!(RegisterRawInputDevices( [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:232:30 [INFO] [stdout] | [INFO] [stdout] 232 | devices.len() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/window.rs:233:33 [INFO] [stdout] | [INFO] [stdout] 201 | impl Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 233 | 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/window.rs:233:54 [INFO] [stdout] | [INFO] [stdout] 233 | std::mem::size_of::() as UINT [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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / c_try!(RegisterRawInputDevices( [INFO] [stdout] 231 | | devices.as_ptr(), [INFO] [stdout] 232 | | devices.len() as UINT, [INFO] [stdout] 233 | | std::mem::size_of::() as UINT [INFO] [stdout] 234 | | ))?; [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:245:30 [INFO] [stdout] | [INFO] [stdout] 245 | 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:246:33 [INFO] [stdout] | [INFO] [stdout] 246 | device.hwndTarget = NULL as HWND; [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:246:41 [INFO] [stdout] | [INFO] [stdout] 246 | device.hwndTarget = NULL as 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/window.rs:250:17 [INFO] [stdout] | [INFO] [stdout] 250 | 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:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | RegisterRawInputDevices( [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:253:43 [INFO] [stdout] | [INFO] [stdout] 253 | self.devices.len() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RAWINPUTDEVICE` in this scope [INFO] [stdout] --> src/window.rs:254:41 [INFO] [stdout] | [INFO] [stdout] 242 | impl Drop for Devices { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 254 | 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/window.rs:254:62 [INFO] [stdout] | [INFO] [stdout] 254 | std::mem::size_of::() as UINT [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:56:22 [INFO] [stdout] | [INFO] [stdout] 53 | struct TransportAgnosticTPMiddle<'a> { [INFO] [stdout] | - help: you might be missing a type parameter: `, HANDLE` [INFO] [stdout] ... [INFO] [stdout] 56 | 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/main.rs:137:15 [INFO] [stdout] | [INFO] [stdout] 137 | 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/main.rs:138:16 [INFO] [stdout] | [INFO] [stdout] 138 | 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/main.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | 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/main.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | 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/main.rs:143:50 [INFO] [stdout] | [INFO] [stdout] 143 | 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/main.rs:143:59 [INFO] [stdout] | [INFO] [stdout] 143 | 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 `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:144:41 [INFO] [stdout] | [INFO] [stdout] 144 | let handle = l_param as HANDLE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:172:50 [INFO] [stdout] | [INFO] [stdout] 172 | 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/main.rs:172:59 [INFO] [stdout] | [INFO] [stdout] 172 | 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 `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:173:41 [INFO] [stdout] | [INFO] [stdout] 173 | let handle = l_param as HANDLE; [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/main.rs:277:25 [INFO] [stdout] | [INFO] [stdout] 277 | fn try_main() -> Result { [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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[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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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 `SetPriorityClass` in this scope [INFO] [stdout] --> src/main.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/main.rs:288:29 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIGH_PRIORITY_CLASS` in this scope [INFO] [stdout] --> src/main.rs:288:50 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS))?; [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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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 `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/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | c_try!(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_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[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | devices: HashMap::new(), [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type for type parameter `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | devices: HashMap::new(), [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type for type parameter `K` [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[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/window.rs:40:51 [INFO] [stdout] | [INFO] [stdout] 40 | 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:170:51 [INFO] [stdout] | [INFO] [stdout] 170 | 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 336 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] [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] [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: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[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/window.rs:40:51 [INFO] [stdout] | [INFO] [stdout] 40 | 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:170:51 [INFO] [stdout] | [INFO] [stdout] 170 | 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 336 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" "34bc549a2607637017fcabfabafefe89f8e5fbec9f7238dab0e6389488aaaea8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34bc549a2607637017fcabfabafefe89f8e5fbec9f7238dab0e6389488aaaea8", kill_on_drop: false }` [INFO] [stdout] 34bc549a2607637017fcabfabafefe89f8e5fbec9f7238dab0e6389488aaaea8