[INFO] cloning repository https://github.com/litmajor/keylogger [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/litmajor/keylogger" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flitmajor%2Fkeylogger", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flitmajor%2Fkeylogger'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cdddb27e9cc6184cebc7cd4c48f7ff1067003f7c [INFO] checking litmajor/keylogger against try#4c525d43052e921548191f82f6ed9e2f9e98dcb1 for pr-136988 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flitmajor%2Fkeylogger" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/litmajor/keylogger on toolchain 4c525d43052e921548191f82f6ed9e2f9e98dcb1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4c525d43052e921548191f82f6ed9e2f9e98dcb1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/litmajor/keylogger [INFO] finished tweaking git repo https://github.com/litmajor/keylogger [INFO] tweaked toml for git repo https://github.com/litmajor/keylogger written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/litmajor/keylogger already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4c525d43052e921548191f82f6ed9e2f9e98dcb1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking litmajor/keylogger against try#4c525d43052e921548191f82f6ed9e2f9e98dcb1 for pr-136988 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flitmajor%2Fkeylogger" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/litmajor/keylogger on toolchain 4c525d43052e921548191f82f6ed9e2f9e98dcb1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4c525d43052e921548191f82f6ed9e2f9e98dcb1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/litmajor/keylogger [INFO] finished tweaking git repo https://github.com/litmajor/keylogger [INFO] tweaked toml for git repo https://github.com/litmajor/keylogger written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/litmajor/keylogger already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4c525d43052e921548191f82f6ed9e2f9e98dcb1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rdev v0.5.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+4c525d43052e921548191f82f6ed9e2f9e98dcb1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 139f63af161ed00d8f505db87aca622627cc2d5405317a20c1d4d99946a728cf [INFO] running `Command { std: "docker" "start" "-a" "139f63af161ed00d8f505db87aca622627cc2d5405317a20c1d4d99946a728cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "139f63af161ed00d8f505db87aca622627cc2d5405317a20c1d4d99946a728cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "139f63af161ed00d8f505db87aca622627cc2d5405317a20c1d4d99946a728cf", kill_on_drop: false }` [INFO] [stdout] 139f63af161ed00d8f505db87aca622627cc2d5405317a20c1d4d99946a728cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+4c525d43052e921548191f82f6ed9e2f9e98dcb1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e6b4e8f0fe607121f1434fbbe7aa6d436ddbe328d9f7ec7be899f501870aad68 [INFO] running `Command { std: "docker" "start" "-a" "e6b4e8f0fe607121f1434fbbe7aa6d436ddbe328d9f7ec7be899f501870aad68", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking widestring v1.1.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling x11 v2.21.0 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Checking rdev v0.5.3 [INFO] [stderr] Checking keylogger v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/4c525d43052e921548191f82f6ed9e2f9e98dcb1/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/4c525d43052e921548191f82f6ed9e2f9e98dcb1/library/std/src/os/mod.rs:55:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/4c525d43052e921548191f82f6ed9e2f9e98dcb1/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/4c525d43052e921548191f82f6ed9e2f9e98dcb1/library/std/src/os/mod.rs:120:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::shared::minwindef::{LPARAM, LRESULT, UINT, WPARAM}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::shared::windef::HWINEVENTHOOK__; [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:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::shared::windef::{HHOOK, HWND, POINT}; [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: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/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::winbase::{GlobalLock, GlobalUnlock}; [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:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::um::winuser::MapVirtualKeyA; [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:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | 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/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | 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 `windows` in `os` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/4c525d43052e921548191f82f6ed9e2f9e98dcb1/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/4c525d43052e921548191f82f6ed9e2f9e98dcb1/library/std/src/os/mod.rs:55:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/4c525d43052e921548191f82f6ed9e2f9e98dcb1/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/4c525d43052e921548191f82f6ed9e2f9e98dcb1/library/std/src/os/mod.rs:120:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::shared::minwindef::{LPARAM, LRESULT, UINT, WPARAM}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::shared::windef::HWINEVENTHOOK__; [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:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::shared::windef::{HHOOK, HWND, POINT}; [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: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/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::winbase::{GlobalLock, GlobalUnlock}; [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:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::um::winuser::MapVirtualKeyA; [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:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | 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/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | 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/main.rs:116:31 [INFO] [stdout] | [INFO] [stdout] 116 | if vk_code == winapi::um::winuser::VK_C && GetAsyncKeyState(winapi::um::winuser::VK_CONTROL) < 0 { [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:116:77 [INFO] [stdout] | [INFO] [stdout] 116 | if vk_code == winapi::um::winuser::VK_C && GetAsyncKeyState(winapi::um::winuser::VK_CONTROL) < 0 { [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:129:41 [INFO] [stdout] | [INFO] [stdout] 129 | const DEFAULT_WINDOW_PROC: *mut winapi::um::winuser::WNDPROC = std::ptr::null_mut(); [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:175:23 [INFO] [stdout] | [INFO] [stdout] 175 | if msg == winapi::um::winuser::WM_CLIPBOARDUPDATE { [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:183:47 [INFO] [stdout] | [INFO] [stdout] 183 | if IsClipboardFormatAvailable(winapi::um::winuser::CF_UNICODETEXT) != 0 { [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:185:53 [INFO] [stdout] | [INFO] [stdout] 185 | let data = GetClipboardData(winapi::um::winuser::CF_UNICODETEXT); [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:217:25 [INFO] [stdout] | [INFO] [stdout] 217 | if event == winapi::um::winuser::EVENT_SYSTEM_FOREGROUND { [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:116:31 [INFO] [stdout] | [INFO] [stdout] 116 | if vk_code == winapi::um::winuser::VK_C && GetAsyncKeyState(winapi::um::winuser::VK_CONTROL) < 0 { [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:250:57 [INFO] [stdout] | [INFO] [stdout] 250 | let caps_lock_on = GetAsyncKeyState(winapi::um::winuser::VK_CAPITAL) & 0x0001 != 0; [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:116:77 [INFO] [stdout] | [INFO] [stdout] 116 | if vk_code == winapi::um::winuser::VK_C && GetAsyncKeyState(winapi::um::winuser::VK_CONTROL) < 0 { [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:129:41 [INFO] [stdout] | [INFO] [stdout] 129 | const DEFAULT_WINDOW_PROC: *mut winapi::um::winuser::WNDPROC = std::ptr::null_mut(); [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:251:58 [INFO] [stdout] | [INFO] [stdout] 251 | let shift_pressed = GetAsyncKeyState(winapi::um::winuser::VK_SHIFT) < 0; [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:175:23 [INFO] [stdout] | [INFO] [stdout] 175 | if msg == winapi::um::winuser::WM_CLIPBOARDUPDATE { [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:255:59 [INFO] [stdout] | [INFO] [stdout] 255 | MapVirtualKeyA(key_stroke as u32, winapi::um::winuser::MAPVK_VK_TO_CHAR) as u8; [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:183:47 [INFO] [stdout] | [INFO] [stdout] 183 | if IsClipboardFormatAvailable(winapi::um::winuser::CF_UNICODETEXT) != 0 { [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:309:21 [INFO] [stdout] | [INFO] [stdout] 309 | winapi::um::winuser::WS_OVERLAPPEDWINDOW, [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:185:53 [INFO] [stdout] | [INFO] [stdout] 185 | let data = GetClipboardData(winapi::um::winuser::CF_UNICODETEXT); [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:322:21 [INFO] [stdout] | [INFO] [stdout] 322 | winapi::um::winuser::GWLP_WNDPROC, [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:217:25 [INFO] [stdout] | [INFO] [stdout] 217 | if event == winapi::um::winuser::EVENT_SYSTEM_FOREGROUND { [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:250:57 [INFO] [stdout] | [INFO] [stdout] 250 | let caps_lock_on = GetAsyncKeyState(winapi::um::winuser::VK_CAPITAL) & 0x0001 != 0; [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:329:21 [INFO] [stdout] | [INFO] [stdout] 329 | winapi::um::winuser::EVENT_SYSTEM_FOREGROUND, [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:330:21 [INFO] [stdout] | [INFO] [stdout] 330 | winapi::um::winuser::EVENT_SYSTEM_FOREGROUND, [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:251:58 [INFO] [stdout] | [INFO] [stdout] 251 | let shift_pressed = GetAsyncKeyState(winapi::um::winuser::VK_SHIFT) < 0; [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:335:21 [INFO] [stdout] | [INFO] [stdout] 335 | winapi::um::winuser::WINEVENT_OUTOFCONTEXT, [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:255:59 [INFO] [stdout] | [INFO] [stdout] 255 | MapVirtualKeyA(key_stroke as u32, winapi::um::winuser::MAPVK_VK_TO_CHAR) as u8; [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:309:21 [INFO] [stdout] | [INFO] [stdout] 309 | winapi::um::winuser::WS_OVERLAPPEDWINDOW, [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:479:21 [INFO] [stdout] | [INFO] [stdout] 479 | winapi::um::winuser::MB_OK | winapi::um::winuser::MB_ICONINFORMATION, [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:322:21 [INFO] [stdout] | [INFO] [stdout] 322 | winapi::um::winuser::GWLP_WNDPROC, [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:479:50 [INFO] [stdout] | [INFO] [stdout] 479 | winapi::um::winuser::MB_OK | winapi::um::winuser::MB_ICONINFORMATION, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWINEVENTHOOK` in this scope [INFO] [stdout] --> src/main.rs:93:45 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 93 | | static ref WIN_EVENT_HOOK: Mutex> = Mutex::new(None); [INFO] [stdout] | | ^^^^^^^^^^^^^ help: a struct with a similar name exists: `WIN_EVENT_HOOK` [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- similarly named struct `WIN_EVENT_HOOK` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:329:21 [INFO] [stdout] | [INFO] [stdout] 329 | winapi::um::winuser::EVENT_SYSTEM_FOREGROUND, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `listen` [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use rdev::{listen, Event, EventType, Key}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::atomic::AtomicBool` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::atomic::AtomicBool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:330:21 [INFO] [stdout] | [INFO] [stdout] 330 | winapi::um::winuser::EVENT_SYSTEM_FOREGROUND, [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:335:21 [INFO] [stdout] | [INFO] [stdout] 335 | winapi::um::winuser::WINEVENT_OUTOFCONTEXT, [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:479:21 [INFO] [stdout] | [INFO] [stdout] 479 | winapi::um::winuser::MB_OK | winapi::um::winuser::MB_ICONINFORMATION, [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:479:50 [INFO] [stdout] | [INFO] [stdout] 479 | winapi::um::winuser::MB_OK | winapi::um::winuser::MB_ICONINFORMATION, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWINEVENTHOOK` in this scope [INFO] [stdout] --> src/main.rs:93:45 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 93 | | static ref WIN_EVENT_HOOK: Mutex> = Mutex::new(None); [INFO] [stdout] | | ^^^^^^^^^^^^^ help: a struct with a similar name exists: `WIN_EVENT_HOOK` [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- similarly named struct `WIN_EVENT_HOOK` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `listen` [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use rdev::{listen, Event, EventType, Key}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::atomic::AtomicBool` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::atomic::AtomicBool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `MOUSE_HOOK` in the current scope [INFO] [stdout] --> src/main.rs:295:21 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 295 | *MOUSE_HOOK.lock().unwrap() = Some(mouse_hook); [INFO] [stdout] | ^^^^ method not found in `MOUSE_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `MOUSE_HOOK` in the current scope [INFO] [stdout] --> src/main.rs:295:21 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 295 | *MOUSE_HOOK.lock().unwrap() = Some(mouse_hook); [INFO] [stdout] | ^^^^ method not found in `MOUSE_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:304:18 [INFO] [stdout] | [INFO] [stdout] 303 | / OsStr::new("STATIC") [INFO] [stdout] 304 | | .encode_wide() [INFO] [stdout] | | -^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:304:18 [INFO] [stdout] | [INFO] [stdout] 303 | / OsStr::new("STATIC") [INFO] [stdout] 304 | | .encode_wide() [INFO] [stdout] | | -^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `CLIPBOARD_WINDOW` in the current scope [INFO] [stdout] --> src/main.rs:319:27 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 319 | *CLIPBOARD_WINDOW.lock().unwrap() = Some(hwnd); [INFO] [stdout] | ^^^^ method not found in `CLIPBOARD_WINDOW` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `CLIPBOARD_WINDOW` in the current scope [INFO] [stdout] --> src/main.rs:319:27 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 319 | *CLIPBOARD_WINDOW.lock().unwrap() = Some(hwnd); [INFO] [stdout] | ^^^^ method not found in `CLIPBOARD_WINDOW` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `WIN_EVENT_HOOK` in the current scope [INFO] [stdout] --> src/main.rs:337:25 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 337 | *WIN_EVENT_HOOK.lock().unwrap() = Some(win_event_hook); [INFO] [stdout] | ^^^^ method not found in `WIN_EVENT_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Enter` found for enum `Key` in the current scope [INFO] [stdout] --> src/main.rs:377:18 [INFO] [stdout] | [INFO] [stdout] 377 | Key::Enter => "[Enter]\n".to_string(), [INFO] [stdout] | ^^^^^ variant or associated item not found in `Key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `WIN_EVENT_HOOK` in the current scope [INFO] [stdout] --> src/main.rs:337:25 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 337 | *WIN_EVENT_HOOK.lock().unwrap() = Some(win_event_hook); [INFO] [stdout] | ^^^^ method not found in `WIN_EVENT_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `MOUSE_HOOK` in the current scope [INFO] [stdout] --> src/main.rs:441:43 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 441 | let mouse_hook_guard = MOUSE_HOOK.lock().unwrap(); [INFO] [stdout] | ^^^^ method not found in `MOUSE_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Enter` found for enum `Key` in the current scope [INFO] [stdout] --> src/main.rs:377:18 [INFO] [stdout] | [INFO] [stdout] 377 | Key::Enter => "[Enter]\n".to_string(), [INFO] [stdout] | ^^^^^ variant or associated item not found in `Key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `CLIPBOARD_WINDOW` in the current scope [INFO] [stdout] --> src/main.rs:485:42 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 485 | if let Some(hwnd) = CLIPBOARD_WINDOW.lock().unwrap().take() { [INFO] [stdout] | ^^^^ method not found in `CLIPBOARD_WINDOW` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `MOUSE_HOOK` in the current scope [INFO] [stdout] --> src/main.rs:441:43 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 441 | let mouse_hook_guard = MOUSE_HOOK.lock().unwrap(); [INFO] [stdout] | ^^^^ method not found in `MOUSE_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `MOUSE_HOOK` in the current scope [INFO] [stdout] --> src/main.rs:495:36 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 495 | if let Some(hook) = MOUSE_HOOK.lock().unwrap().take() { [INFO] [stdout] | ^^^^ method not found in `MOUSE_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `CLIPBOARD_WINDOW` in the current scope [INFO] [stdout] --> src/main.rs:485:42 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 485 | if let Some(hwnd) = CLIPBOARD_WINDOW.lock().unwrap().take() { [INFO] [stdout] | ^^^^ method not found in `CLIPBOARD_WINDOW` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `WIN_EVENT_HOOK` in the current scope [INFO] [stdout] --> src/main.rs:499:40 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 499 | if let Some(hook) = WIN_EVENT_HOOK.lock().unwrap().take() { [INFO] [stdout] | ^^^^ method not found in `WIN_EVENT_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 85 | map.insert(i, &char::from_u32(i as u32).unwrap().to_string()); [INFO] [stdout] | --------------------------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 88 | map [INFO] [stdout] | ^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `MOUSE_HOOK` in the current scope [INFO] [stdout] --> src/main.rs:495:36 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 495 | if let Some(hook) = MOUSE_HOOK.lock().unwrap().take() { [INFO] [stdout] | ^^^^ method not found in `MOUSE_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433, E0515, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for struct `WIN_EVENT_HOOK` in the current scope [INFO] [stdout] --> src/main.rs:499:40 [INFO] [stdout] | [INFO] [stdout] 40 | / lazy_static! { [INFO] [stdout] 41 | | static ref KEY_NAME: HashMap = { [INFO] [stdout] 42 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | }; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_- method `lock` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 499 | if let Some(hook) = WIN_EVENT_HOOK.lock().unwrap().take() { [INFO] [stdout] | ^^^^ method not found in `WIN_EVENT_HOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 85 | map.insert(i, &char::from_u32(i as u32).unwrap().to_string()); [INFO] [stdout] | --------------------------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 88 | map [INFO] [stdout] | ^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `keylogger` (bin "keylogger") due to 37 previous errors; 4 warnings emitted [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433, E0515, E0599. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `keylogger` (bin "keylogger" test) due to 37 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e6b4e8f0fe607121f1434fbbe7aa6d436ddbe328d9f7ec7be899f501870aad68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6b4e8f0fe607121f1434fbbe7aa6d436ddbe328d9f7ec7be899f501870aad68", kill_on_drop: false }` [INFO] [stdout] e6b4e8f0fe607121f1434fbbe7aa6d436ddbe328d9f7ec7be899f501870aad68