[INFO] cloning repository https://github.com/genbyte/winsetsize [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/genbyte/winsetsize" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgenbyte%2Fwinsetsize", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgenbyte%2Fwinsetsize'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d5d82b71795fc43cb28b3161934a5135605ee017 [INFO] checking genbyte/winsetsize against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgenbyte%2Fwinsetsize" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/genbyte/winsetsize on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/genbyte/winsetsize [INFO] finished tweaking git repo https://github.com/genbyte/winsetsize [INFO] tweaked toml for git repo https://github.com/genbyte/winsetsize written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/genbyte/winsetsize already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11876422b5ccf6fd80fc706d481e7d54f472ca843128da03a9eae87b8a7e8766 [INFO] running `Command { std: "docker" "start" "-a" "11876422b5ccf6fd80fc706d481e7d54f472ca843128da03a9eae87b8a7e8766", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11876422b5ccf6fd80fc706d481e7d54f472ca843128da03a9eae87b8a7e8766", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11876422b5ccf6fd80fc706d481e7d54f472ca843128da03a9eae87b8a7e8766", kill_on_drop: false }` [INFO] [stdout] 11876422b5ccf6fd80fc706d481e7d54f472ca843128da03a9eae87b8a7e8766 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10246ef294382660ad68c637817ed9b620a36ef724b4f09b76b6f1fccb6af5c7 [INFO] running `Command { std: "docker" "start" "-a" "10246ef294382660ad68c637817ed9b620a36ef724b4f09b76b6f1fccb6af5c7", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking winsetsize v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | os::windows::ffi::{OsStrExt, OsStringExt}, [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 16 | shared::{ [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:20:2 [INFO] [stdout] | [INFO] [stdout] 20 | um::{ [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/main.rs:38:2 [INFO] [stdout] | [INFO] [stdout] 38 | shared::{ [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:42:2 [INFO] [stdout] | [INFO] [stdout] 42 | um::winuser::{CreateWindowExW, RegisterClassExW, WNDCLASSEXW}, [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:14 [INFO] [stdout] | [INFO] [stdout] 116 | use winapi::um::winuser::{MessageBoxW, MB_OK}; [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:15:2 [INFO] [stdout] | [INFO] [stdout] 15 | ctypes::c_void, [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:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | os::windows::ffi::{OsStrExt, OsStringExt}, [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 16 | shared::{ [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:20:2 [INFO] [stdout] | [INFO] [stdout] 20 | um::{ [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/main.rs:38:2 [INFO] [stdout] | [INFO] [stdout] 38 | shared::{ [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:42:2 [INFO] [stdout] | [INFO] [stdout] 42 | um::winuser::{CreateWindowExW, RegisterClassExW, WNDCLASSEXW}, [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:14 [INFO] [stdout] | [INFO] [stdout] 116 | use winapi::um::winuser::{MessageBoxW, MB_OK}; [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:15:2 [INFO] [stdout] | [INFO] [stdout] 15 | ctypes::c_void, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | static mut hwnd_main: HWND = 0 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/main.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | static mut hwnd_main: HWND = 0 as HWND; [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/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | hinstance: HINSTANCE, [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/main.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 58 | struct WindowData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 59 | hinstance: HINSTANCE, [INFO] [stdout] 60 | hook_handle: Option, [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:61:25 [INFO] [stdout] | [INFO] [stdout] 58 | struct WindowData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 61 | message_handle: Option, [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:62:25 [INFO] [stdout] | [INFO] [stdout] 58 | struct WindowData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 62 | clicked_handle: Option, [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:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_window_ptr(handle: &HWND, lparam: &LPARAM) -> *mut WindowData { [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:66:44 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_window_ptr(handle: &HWND, lparam: &LPARAM) -> *mut WindowData { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCREATESTRUCTW` in this scope [INFO] [stdout] --> src/main.rs:67:49 [INFO] [stdout] | [INFO] [stdout] 67 | let window_data_void = unsafe { (*(*lparam as LPCREATESTRUCTW)).lpCreateParams }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/main.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { SetWindowLongPtrW(*handle, GWL_USERDATA, window_data_void as LPARAM) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_USERDATA` in this scope [INFO] [stdout] --> src/main.rs:68:39 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { SetWindowLongPtrW(*handle, GWL_USERDATA, window_data_void as 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/main.rs:68:73 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { SetWindowLongPtrW(*handle, GWL_USERDATA, window_data_void as 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/main.rs:72:29 [INFO] [stdout] | [INFO] [stdout] 72 | fn get_window_ptr(handle: &HWND) -> *mut WindowData { [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/main.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { GetWindowLongPtrW(*handle, GWL_USERDATA) as *mut WindowData } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_USERDATA` in this scope [INFO] [stdout] --> src/main.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { GetWindowLongPtrW(*handle, GWL_USERDATA) as *mut WindowData } [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut rect: RECT = unsafe { MaybeUninit::zeroed().assume_init() }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowRect` in this scope [INFO] [stdout] --> src/main.rs:83:16 [INFO] [stdout] | [INFO] [stdout] 83 | if !unsafe { GetWindowRect(handle, &mut rect as *mut RECT) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:83:56 [INFO] [stdout] | [INFO] [stdout] 83 | if !unsafe { GetWindowRect(handle, &mut rect as *mut RECT) } == 0 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/main.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | if !unsafe { GetClientRect(handle, &mut rect as *mut RECT) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:89:56 [INFO] [stdout] | [INFO] [stdout] 89 | if !unsafe { GetClientRect(handle, &mut rect as *mut RECT) } == 0 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MoveWindow` in this scope [INFO] [stdout] --> src/main.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { MoveWindow(handle, x, y, width, height, 1) != 0 } [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MessageBoxW` in this scope [INFO] [stdout] --> src/main.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | let ret = unsafe { MessageBoxW(null_mut(), wide.as_ptr(), wide.as_ptr(), MB_OK) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MB_OK` in this scope [INFO] [stdout] --> src/main.rs:119:75 [INFO] [stdout] | [INFO] [stdout] 119 | let ret = unsafe { MessageBoxW(null_mut(), wide.as_ptr(), wide.as_ptr(), MB_OK) }; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/main.rs:132:28 [INFO] [stdout] | [INFO] [stdout] 132 | let hintstance = unsafe { GetModuleHandleW(null()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/main.rs:135:14 [INFO] [stdout] | [INFO] [stdout] 135 | let class = WNDCLASSEXW { [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/main.rs:136:31 [INFO] [stdout] | [INFO] [stdout] 136 | cbSize: std::mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stdout] --> src/main.rs:149:11 [INFO] [stdout] | [INFO] [stdout] 149 | unsafe { 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 `CreateWindowExW` in this scope [INFO] [stdout] --> src/main.rs:155:3 [INFO] [stdout] | [INFO] [stdout] 155 | CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_MINIMIZEBOX` in this scope [INFO] [stdout] --> src/main.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | WS_MINIMIZEBOX | WS_SYSMENU, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_SYSMENU` in this scope [INFO] [stdout] --> src/main.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | WS_MINIMIZEBOX | WS_SYSMENU, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/main.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | CW_USEDEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | CW_USEDEFAULT, [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/main.rs:182:3 [INFO] [stdout] | [INFO] [stdout] 182 | ShowWindow(window, SW_SHOWNORMAL); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNORMAL` in this scope [INFO] [stdout] --> src/main.rs:182:22 [INFO] [stdout] | [INFO] [stdout] 182 | ShowWindow(window, SW_SHOWNORMAL); [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/main.rs:184:16 [INFO] [stdout] | [INFO] [stdout] 184 | let mut msg: MSG = MaybeUninit::zeroed().assume_init(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | while GetMessageW(&mut msg as *mut MSG, null_mut(), 0, 0) > 0 { [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/main.rs:185:38 [INFO] [stdout] | [INFO] [stdout] 185 | while GetMessageW(&mut msg as *mut MSG, null_mut(), 0, 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 `TranslateMessage` in this scope [INFO] [stdout] --> src/main.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | TranslateMessage(&mut msg as *mut MSG); [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/main.rs:186:38 [INFO] [stdout] | [INFO] [stdout] 186 | TranslateMessage(&mut msg as *mut MSG); [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/main.rs:187:4 [INFO] [stdout] | [INFO] [stdout] 187 | DispatchMessageW(&mut msg as *mut MSG); [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/main.rs:187:38 [INFO] [stdout] | [INFO] [stdout] 187 | DispatchMessageW(&mut msg as *mut MSG); [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:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | hwnd: HWND, [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:198:10 [INFO] [stdout] | [INFO] [stdout] 198 | wparam: 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:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | lparam: 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/main.rs:200:6 [INFO] [stdout] | [INFO] [stdout] 200 | ) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/main.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | let hinstance = GetModuleHandleW(null()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:207:18 [INFO] [stdout] | [INFO] [stdout] 207 | let mut rect: RECT = MaybeUninit::zeroed().assume_init(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/main.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | GetClientRect(hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:208:42 [INFO] [stdout] | [INFO] [stdout] 208 | GetClientRect(hwnd, &mut rect as *mut RECT); [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/main.rs:224:20 [INFO] [stdout] | [INFO] [stdout] 224 | CREATE_HOOK 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/main.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | SET_SIZE as HMENU, [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/main.rs:245:4 [INFO] [stdout] | [INFO] [stdout] 245 | DestroyWindow(hwnd); [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/main.rs:251:28 [INFO] [stdout] | [INFO] [stdout] 251 | let window_data_ptr = GetWindowLongPtrW(hwnd, GWL_USERDATA) as *mut WindowData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_USERDATA` in this scope [INFO] [stdout] --> src/main.rs:251:52 [INFO] [stdout] | [INFO] [stdout] 251 | let window_data_ptr = GetWindowLongPtrW(hwnd, GWL_USERDATA) as *mut WindowData; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope [INFO] [stdout] --> src/main.rs:253:19 [INFO] [stdout] | [INFO] [stdout] 253 | let hhook = SetWindowsHookExW(WH_MOUSE_LL, Some(mouseproc), null_mut(), 0); [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/main.rs:253:37 [INFO] [stdout] | [INFO] [stdout] 253 | let hhook = SetWindowsHookExW(WH_MOUSE_LL, Some(mouseproc), null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> src/main.rs:257:7 [INFO] [stdout] | [INFO] [stdout] 257 | SetWindowTextW((*window_data_ptr).message_handle.unwrap(), temp.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> src/main.rs:260:7 [INFO] [stdout] | [INFO] [stdout] 260 | SetWindowTextW((*window_data_ptr).message_handle.unwrap(), temp.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> src/main.rs:275:6 [INFO] [stdout] | [INFO] [stdout] 275 | SetWindowTextW((*wdata).message_handle.unwrap(), message.as_ptr()); [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/main.rs:282:26 [INFO] [stdout] | [INFO] [stdout] 282 | let window_data_ptr = GetWindowLongPtrW(hwnd, GWL_USERDATA) as *mut WindowData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_USERDATA` in this scope [INFO] [stdout] --> src/main.rs:282:50 [INFO] [stdout] | [INFO] [stdout] 282 | let window_data_ptr = GetWindowLongPtrW(hwnd, GWL_USERDATA) as *mut WindowData; [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:285:33 [INFO] [stdout] | [INFO] [stdout] 285 | let clicked_hwnd = lparam as HWND; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendMessageW` in this scope [INFO] [stdout] --> src/main.rs:291:14 [INFO] [stdout] | [INFO] [stdout] 291 | let len = SendMessageW(clicked_hwnd, WM_GETTEXTLENGTH, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_GETTEXTLENGTH` in this scope [INFO] [stdout] --> src/main.rs:291:41 [INFO] [stdout] | [INFO] [stdout] 291 | let len = SendMessageW(clicked_hwnd, WM_GETTEXTLENGTH, 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 `SendMessageW` in this scope [INFO] [stdout] --> src/main.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | SendMessageW( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_GETTEXT` in this scope [INFO] [stdout] --> src/main.rs:297:6 [INFO] [stdout] | [INFO] [stdout] 297 | WM_GETTEXT, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope [INFO] [stdout] --> src/main.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | UnhookWindowsHookEx((*window_data_ptr).hook_handle.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> src/main.rs:306:4 [INFO] [stdout] | [INFO] [stdout] 306 | SetWindowTextW((*window_data_ptr).message_handle.unwrap(), buffer.as_ptr()); [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/main.rs:311:4 [INFO] [stdout] | [INFO] [stdout] 311 | PostQuitMessage(0); [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/main.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | _ => DefWindowProcW(hwnd, msg, wparam, 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/main.rs:319:8 [INFO] [stdout] | [INFO] [stdout] 319 | hwnd: HWND, [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/main.rs:320:13 [INFO] [stdout] | [INFO] [stdout] 320 | hinstance: HINSTANCE, [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/main.rs:321:11 [INFO] [stdout] | [INFO] [stdout] 321 | message: HMENU, [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:327:6 [INFO] [stdout] | [INFO] [stdout] 327 | ) -> HWND { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/main.rs:334:2 [INFO] [stdout] | [INFO] [stdout] 334 | CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BS_TEXT` in this scope [INFO] [stdout] --> src/main.rs:338:3 [INFO] [stdout] | [INFO] [stdout] 338 | BS_TEXT | WS_CHILD | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_CHILD` in this scope [INFO] [stdout] --> src/main.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | BS_TEXT | WS_CHILD | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/main.rs:338:24 [INFO] [stdout] | [INFO] [stdout] 338 | BS_TEXT | WS_CHILD | WS_VISIBLE, [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:351:8 [INFO] [stdout] | [INFO] [stdout] 351 | hwnd: HWND, [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/main.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 352 | hinstance: HINSTANCE, [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:358:6 [INFO] [stdout] | [INFO] [stdout] 358 | ) -> HWND { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/main.rs:362:2 [INFO] [stdout] | [INFO] [stdout] 362 | CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SS_CENTER` in this scope [INFO] [stdout] --> src/main.rs:366:3 [INFO] [stdout] | [INFO] [stdout] 366 | SS_CENTER | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SS_CENTERIMAGE` in this scope [INFO] [stdout] --> src/main.rs:366:15 [INFO] [stdout] | [INFO] [stdout] 366 | SS_CENTER | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_CHILD` in this scope [INFO] [stdout] --> src/main.rs:366:32 [INFO] [stdout] | [INFO] [stdout] 366 | SS_CENTER | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/main.rs:366:43 [INFO] [stdout] | [INFO] [stdout] 366 | SS_CENTER | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, [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:378:63 [INFO] [stdout] | [INFO] [stdout] 378 | pub unsafe extern "system" fn mouseproc(ncode: c_int, wparam: WPARAM, lparam: 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/main.rs:378:79 [INFO] [stdout] | [INFO] [stdout] 378 | pub unsafe extern "system" fn mouseproc(ncode: c_int, wparam: WPARAM, lparam: 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/main.rs:378:90 [INFO] [stdout] | [INFO] [stdout] 378 | pub unsafe extern "system" fn mouseproc(ncode: c_int, wparam: WPARAM, lparam: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_LBUTTONDOWN` in this scope [INFO] [stdout] --> src/main.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | if wparam == (WM_LBUTTONDOWN as usize) { [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/main.rs:382:40 [INFO] [stdout] | [INFO] [stdout] 382 | let mouse_struct = lparam as *const MSLLHOOKSTRUCT; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WindowFromPoint` in this scope [INFO] [stdout] --> src/main.rs:383:15 [INFO] [stdout] | [INFO] [stdout] 383 | let hwnd = WindowFromPoint((*mouse_struct).pt); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope [INFO] [stdout] --> src/main.rs:384:4 [INFO] [stdout] | [INFO] [stdout] 384 | PostMessageW(hwnd_main, HOOK_FIRED, 0, hwnd as isize); [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/main.rs:386:10 [INFO] [stdout] | [INFO] [stdout] 386 | return CallNextHookEx(null_mut(), ncode, wparam, lparam); [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/main.rs:388:10 [INFO] [stdout] | [INFO] [stdout] 388 | return CallNextHookEx(null_mut(), ncode, wparam, lparam); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OsString` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | ffi::{OsStr, OsString}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | static mut hwnd_main: HWND = 0 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/main.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | static mut hwnd_main: HWND = 0 as HWND; [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/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | hinstance: HINSTANCE, [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/main.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 58 | struct WindowData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 59 | hinstance: HINSTANCE, [INFO] [stdout] 60 | hook_handle: Option, [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:61:25 [INFO] [stdout] | [INFO] [stdout] 58 | struct WindowData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 61 | message_handle: Option, [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:62:25 [INFO] [stdout] | [INFO] [stdout] 58 | struct WindowData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 62 | clicked_handle: Option, [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:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_window_ptr(handle: &HWND, lparam: &LPARAM) -> *mut WindowData { [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:66:44 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_window_ptr(handle: &HWND, lparam: &LPARAM) -> *mut WindowData { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCREATESTRUCTW` in this scope [INFO] [stdout] --> src/main.rs:67:49 [INFO] [stdout] | [INFO] [stdout] 67 | let window_data_void = unsafe { (*(*lparam as LPCREATESTRUCTW)).lpCreateParams }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/main.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { SetWindowLongPtrW(*handle, GWL_USERDATA, window_data_void as LPARAM) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_USERDATA` in this scope [INFO] [stdout] --> src/main.rs:68:39 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { SetWindowLongPtrW(*handle, GWL_USERDATA, window_data_void as 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/main.rs:68:73 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { SetWindowLongPtrW(*handle, GWL_USERDATA, window_data_void as 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/main.rs:72:29 [INFO] [stdout] | [INFO] [stdout] 72 | fn get_window_ptr(handle: &HWND) -> *mut WindowData { [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/main.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { GetWindowLongPtrW(*handle, GWL_USERDATA) as *mut WindowData } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_USERDATA` in this scope [INFO] [stdout] --> src/main.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { GetWindowLongPtrW(*handle, GWL_USERDATA) as *mut WindowData } [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut rect: RECT = unsafe { MaybeUninit::zeroed().assume_init() }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowRect` in this scope [INFO] [stdout] --> src/main.rs:83:16 [INFO] [stdout] | [INFO] [stdout] 83 | if !unsafe { GetWindowRect(handle, &mut rect as *mut RECT) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:83:56 [INFO] [stdout] | [INFO] [stdout] 83 | if !unsafe { GetWindowRect(handle, &mut rect as *mut RECT) } == 0 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/main.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | if !unsafe { GetClientRect(handle, &mut rect as *mut RECT) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:89:56 [INFO] [stdout] | [INFO] [stdout] 89 | if !unsafe { GetClientRect(handle, &mut rect as *mut RECT) } == 0 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MoveWindow` in this scope [INFO] [stdout] --> src/main.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { MoveWindow(handle, x, y, width, height, 1) != 0 } [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MessageBoxW` in this scope [INFO] [stdout] --> src/main.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | let ret = unsafe { MessageBoxW(null_mut(), wide.as_ptr(), wide.as_ptr(), MB_OK) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MB_OK` in this scope [INFO] [stdout] --> src/main.rs:119:75 [INFO] [stdout] | [INFO] [stdout] 119 | let ret = unsafe { MessageBoxW(null_mut(), wide.as_ptr(), wide.as_ptr(), MB_OK) }; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/main.rs:132:28 [INFO] [stdout] | [INFO] [stdout] 132 | let hintstance = unsafe { GetModuleHandleW(null()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/main.rs:135:14 [INFO] [stdout] | [INFO] [stdout] 135 | let class = WNDCLASSEXW { [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/main.rs:136:31 [INFO] [stdout] | [INFO] [stdout] 136 | cbSize: std::mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stdout] --> src/main.rs:149:11 [INFO] [stdout] | [INFO] [stdout] 149 | unsafe { 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 `CreateWindowExW` in this scope [INFO] [stdout] --> src/main.rs:155:3 [INFO] [stdout] | [INFO] [stdout] 155 | CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_MINIMIZEBOX` in this scope [INFO] [stdout] --> src/main.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | WS_MINIMIZEBOX | WS_SYSMENU, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_SYSMENU` in this scope [INFO] [stdout] --> src/main.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | WS_MINIMIZEBOX | WS_SYSMENU, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/main.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | CW_USEDEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | CW_USEDEFAULT, [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/main.rs:182:3 [INFO] [stdout] | [INFO] [stdout] 182 | ShowWindow(window, SW_SHOWNORMAL); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNORMAL` in this scope [INFO] [stdout] --> src/main.rs:182:22 [INFO] [stdout] | [INFO] [stdout] 182 | ShowWindow(window, SW_SHOWNORMAL); [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/main.rs:184:16 [INFO] [stdout] | [INFO] [stdout] 184 | let mut msg: MSG = MaybeUninit::zeroed().assume_init(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | while GetMessageW(&mut msg as *mut MSG, null_mut(), 0, 0) > 0 { [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/main.rs:185:38 [INFO] [stdout] | [INFO] [stdout] 185 | while GetMessageW(&mut msg as *mut MSG, null_mut(), 0, 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 `TranslateMessage` in this scope [INFO] [stdout] --> src/main.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | TranslateMessage(&mut msg as *mut MSG); [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/main.rs:186:38 [INFO] [stdout] | [INFO] [stdout] 186 | TranslateMessage(&mut msg as *mut MSG); [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/main.rs:187:4 [INFO] [stdout] | [INFO] [stdout] 187 | DispatchMessageW(&mut msg as *mut MSG); [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/main.rs:187:38 [INFO] [stdout] | [INFO] [stdout] 187 | DispatchMessageW(&mut msg as *mut MSG); [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:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | hwnd: HWND, [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:198:10 [INFO] [stdout] | [INFO] [stdout] 198 | wparam: 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:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | lparam: 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/main.rs:200:6 [INFO] [stdout] | [INFO] [stdout] 200 | ) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/main.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | let hinstance = GetModuleHandleW(null()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:207:18 [INFO] [stdout] | [INFO] [stdout] 207 | let mut rect: RECT = MaybeUninit::zeroed().assume_init(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/main.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | GetClientRect(hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:208:42 [INFO] [stdout] | [INFO] [stdout] 208 | GetClientRect(hwnd, &mut rect as *mut RECT); [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/main.rs:224:20 [INFO] [stdout] | [INFO] [stdout] 224 | CREATE_HOOK 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/main.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | SET_SIZE as HMENU, [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/main.rs:245:4 [INFO] [stdout] | [INFO] [stdout] 245 | DestroyWindow(hwnd); [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/main.rs:251:28 [INFO] [stdout] | [INFO] [stdout] 251 | let window_data_ptr = GetWindowLongPtrW(hwnd, GWL_USERDATA) as *mut WindowData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_USERDATA` in this scope [INFO] [stdout] --> src/main.rs:251:52 [INFO] [stdout] | [INFO] [stdout] 251 | let window_data_ptr = GetWindowLongPtrW(hwnd, GWL_USERDATA) as *mut WindowData; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope [INFO] [stdout] --> src/main.rs:253:19 [INFO] [stdout] | [INFO] [stdout] 253 | let hhook = SetWindowsHookExW(WH_MOUSE_LL, Some(mouseproc), null_mut(), 0); [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/main.rs:253:37 [INFO] [stdout] | [INFO] [stdout] 253 | let hhook = SetWindowsHookExW(WH_MOUSE_LL, Some(mouseproc), null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> src/main.rs:257:7 [INFO] [stdout] | [INFO] [stdout] 257 | SetWindowTextW((*window_data_ptr).message_handle.unwrap(), temp.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> src/main.rs:260:7 [INFO] [stdout] | [INFO] [stdout] 260 | SetWindowTextW((*window_data_ptr).message_handle.unwrap(), temp.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> src/main.rs:275:6 [INFO] [stdout] | [INFO] [stdout] 275 | SetWindowTextW((*wdata).message_handle.unwrap(), message.as_ptr()); [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/main.rs:282:26 [INFO] [stdout] | [INFO] [stdout] 282 | let window_data_ptr = GetWindowLongPtrW(hwnd, GWL_USERDATA) as *mut WindowData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_USERDATA` in this scope [INFO] [stdout] --> src/main.rs:282:50 [INFO] [stdout] | [INFO] [stdout] 282 | let window_data_ptr = GetWindowLongPtrW(hwnd, GWL_USERDATA) as *mut WindowData; [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:285:33 [INFO] [stdout] | [INFO] [stdout] 285 | let clicked_hwnd = lparam as HWND; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendMessageW` in this scope [INFO] [stdout] --> src/main.rs:291:14 [INFO] [stdout] | [INFO] [stdout] 291 | let len = SendMessageW(clicked_hwnd, WM_GETTEXTLENGTH, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_GETTEXTLENGTH` in this scope [INFO] [stdout] --> src/main.rs:291:41 [INFO] [stdout] | [INFO] [stdout] 291 | let len = SendMessageW(clicked_hwnd, WM_GETTEXTLENGTH, 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 `SendMessageW` in this scope [INFO] [stdout] --> src/main.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | SendMessageW( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_GETTEXT` in this scope [INFO] [stdout] --> src/main.rs:297:6 [INFO] [stdout] | [INFO] [stdout] 297 | WM_GETTEXT, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope [INFO] [stdout] --> src/main.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | UnhookWindowsHookEx((*window_data_ptr).hook_handle.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> src/main.rs:306:4 [INFO] [stdout] | [INFO] [stdout] 306 | SetWindowTextW((*window_data_ptr).message_handle.unwrap(), buffer.as_ptr()); [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/main.rs:311:4 [INFO] [stdout] | [INFO] [stdout] 311 | PostQuitMessage(0); [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/main.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | _ => DefWindowProcW(hwnd, msg, wparam, 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/main.rs:319:8 [INFO] [stdout] | [INFO] [stdout] 319 | hwnd: HWND, [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/main.rs:320:13 [INFO] [stdout] | [INFO] [stdout] 320 | hinstance: HINSTANCE, [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/main.rs:321:11 [INFO] [stdout] | [INFO] [stdout] 321 | message: HMENU, [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:327:6 [INFO] [stdout] | [INFO] [stdout] 327 | ) -> HWND { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/main.rs:334:2 [INFO] [stdout] | [INFO] [stdout] 334 | CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BS_TEXT` in this scope [INFO] [stdout] --> src/main.rs:338:3 [INFO] [stdout] | [INFO] [stdout] 338 | BS_TEXT | WS_CHILD | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_CHILD` in this scope [INFO] [stdout] --> src/main.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | BS_TEXT | WS_CHILD | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/main.rs:338:24 [INFO] [stdout] | [INFO] [stdout] 338 | BS_TEXT | WS_CHILD | WS_VISIBLE, [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:351:8 [INFO] [stdout] | [INFO] [stdout] 351 | hwnd: HWND, [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/main.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 352 | hinstance: HINSTANCE, [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:358:6 [INFO] [stdout] | [INFO] [stdout] 358 | ) -> HWND { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/main.rs:362:2 [INFO] [stdout] | [INFO] [stdout] 362 | CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SS_CENTER` in this scope [INFO] [stdout] --> src/main.rs:366:3 [INFO] [stdout] | [INFO] [stdout] 366 | SS_CENTER | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SS_CENTERIMAGE` in this scope [INFO] [stdout] --> src/main.rs:366:15 [INFO] [stdout] | [INFO] [stdout] 366 | SS_CENTER | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_CHILD` in this scope [INFO] [stdout] --> src/main.rs:366:32 [INFO] [stdout] | [INFO] [stdout] 366 | SS_CENTER | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/main.rs:366:43 [INFO] [stdout] | [INFO] [stdout] 366 | SS_CENTER | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, [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:378:63 [INFO] [stdout] | [INFO] [stdout] 378 | pub unsafe extern "system" fn mouseproc(ncode: c_int, wparam: WPARAM, lparam: 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/main.rs:378:79 [INFO] [stdout] | [INFO] [stdout] 378 | pub unsafe extern "system" fn mouseproc(ncode: c_int, wparam: WPARAM, lparam: 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/main.rs:378:90 [INFO] [stdout] | [INFO] [stdout] 378 | pub unsafe extern "system" fn mouseproc(ncode: c_int, wparam: WPARAM, lparam: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_LBUTTONDOWN` in this scope [INFO] [stdout] --> src/main.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | if wparam == (WM_LBUTTONDOWN as usize) { [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/main.rs:382:40 [INFO] [stdout] | [INFO] [stdout] 382 | let mouse_struct = lparam as *const MSLLHOOKSTRUCT; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WindowFromPoint` in this scope [INFO] [stdout] --> src/main.rs:383:15 [INFO] [stdout] | [INFO] [stdout] 383 | let hwnd = WindowFromPoint((*mouse_struct).pt); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope [INFO] [stdout] --> src/main.rs:384:4 [INFO] [stdout] | [INFO] [stdout] 384 | PostMessageW(hwnd_main, HOOK_FIRED, 0, hwnd as isize); [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/main.rs:386:10 [INFO] [stdout] | [INFO] [stdout] 386 | return CallNextHookEx(null_mut(), ncode, wparam, lparam); [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/main.rs:388:10 [INFO] [stdout] | [INFO] [stdout] 388 | return CallNextHookEx(null_mut(), ncode, wparam, lparam); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OsString` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | ffi::{OsStr, OsString}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | let wide: Vec = OsStr::new(msg).encode_wide().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/main.rs:128:18 [INFO] [stdout] | [INFO] [stdout] 128 | OsStr::new(rst).encode_wide().chain(Some(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/main.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | let wide: Vec = OsStr::new(msg).encode_wide().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/main.rs:128:18 [INFO] [stdout] | [INFO] [stdout] 128 | OsStr::new(rst).encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 104 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 104 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `winsetsize` due to 105 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "10246ef294382660ad68c637817ed9b620a36ef724b4f09b76b6f1fccb6af5c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10246ef294382660ad68c637817ed9b620a36ef724b4f09b76b6f1fccb6af5c7", kill_on_drop: false }` [INFO] [stdout] 10246ef294382660ad68c637817ed9b620a36ef724b4f09b76b6f1fccb6af5c7