[INFO] cloning repository https://github.com/Ratismal/window-arranger [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ratismal/window-arranger" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRatismal%2Fwindow-arranger", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRatismal%2Fwindow-arranger'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] acd346102d37304b35ace79ed5e5e64d3b858a35 [INFO] checking Ratismal/window-arranger against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRatismal%2Fwindow-arranger" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ratismal/window-arranger on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Ratismal/window-arranger [INFO] finished tweaking git repo https://github.com/Ratismal/window-arranger [INFO] tweaked toml for git repo https://github.com/Ratismal/window-arranger written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/Ratismal/window-arranger already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7bc22bae57e1519e8ead41a575749408117a7584fff3715ec065cb25a19cc6ac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7bc22bae57e1519e8ead41a575749408117a7584fff3715ec065cb25a19cc6ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7bc22bae57e1519e8ead41a575749408117a7584fff3715ec065cb25a19cc6ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bc22bae57e1519e8ead41a575749408117a7584fff3715ec065cb25a19cc6ac", kill_on_drop: false }` [INFO] [stdout] 7bc22bae57e1519e8ead41a575749408117a7584fff3715ec065cb25a19cc6ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] edc18cfdc7793ffd14b8dbf3d082d4ac082708bdfff79f81ac0ce63aa7fa2fd2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "edc18cfdc7793ffd14b8dbf3d082d4ac082708bdfff79f81ac0ce63aa7fa2fd2", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Checking window-arranger v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/api/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::minwindef::{BOOL, LPARAM}; [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/api/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::windef::{HDC, HMONITOR, HWND, LPRECT, RECT}; [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/api/mod.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::winuser::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/api/def.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::windef::{POINT, RECT}; [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/api/def.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::winuser::{MONITORINFO, TITLEBARINFO, WINDOWPLACEMENT}; [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/structs/program.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::windef::{HMONITOR, HWND}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/structs/program.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::winuser::{MONITORINFO, WINDOWPLACEMENT}; [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/api/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::minwindef::{BOOL, LPARAM}; [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/api/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::windef::{HDC, HMONITOR, HWND, LPRECT, RECT}; [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/api/mod.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::winuser::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/api/def.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::windef::{POINT, RECT}; [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/api/def.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::winuser::{MONITORINFO, TITLEBARINFO, WINDOWPLACEMENT}; [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/structs/program.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::windef::{HMONITOR, HWND}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/structs/program.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::winuser::{MONITORINFO, WINDOWPLACEMENT}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFO` in this scope [INFO] [stdout] --> src/api/def.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn monitor_info() -> MONITORINFO { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MONITORINFO` in this scope [INFO] [stdout] --> src/api/def.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | MONITORINFO { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `POINT` in this scope [INFO] [stdout] --> src/api/def.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn point() -> POINT { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `POINT` in this scope [INFO] [stdout] --> src/api/def.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | POINT { x: 0, y: 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/api/def.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn rect() -> RECT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RECT` in this scope [INFO] [stdout] --> src/api/def.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | RECT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/def.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn window_placement() -> WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/def.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/def.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn clone_window_placement(p: WINDOWPLACEMENT) -> WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/def.rs:37:54 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn clone_window_placement(p: WINDOWPLACEMENT) -> WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/def.rs:38:3 [INFO] [stdout] | [INFO] [stdout] 38 | WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TITLEBARINFO` in this scope [INFO] [stdout] --> src/api/def.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn titlebar_info() -> TITLEBARINFO { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TITLEBARINFO` in this scope [INFO] [stdout] --> src/api/def.rs:49:3 [INFO] [stdout] | [INFO] [stdout] 49 | TITLEBARINFO { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMONITOR` in this scope [INFO] [stdout] --> src/api/mod.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | _: HMONITOR, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/api/mod.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | _: HDC, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPRECT` in this scope [INFO] [stdout] --> src/api/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | rect: LPRECT, [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/api/mod.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | l_param: LPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/api/mod.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | ) -> BOOL { [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/api/mod.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 18 | unsafe extern "system" fn monitor_enum_proc( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 24 | let vec = &mut *(l_param as *mut Vec); [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/api/mod.rs:29:34 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_all_monitors() -> Vec { [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/api/mod.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_all_monitors() -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 30 | let mut vec: Vec = Vec::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORENUMPROC` in this scope [INFO] [stdout] --> src/api/mod.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | let proc: MONITORENUMPROC = Some(monitor_enum_proc); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumDisplayMonitors` in this scope [INFO] [stdout] --> src/api/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | EnumDisplayMonitors( [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/api/mod.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_all_monitors() -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 38 | &mut vec as *mut Vec 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/api/mod.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | &mut vec as *mut Vec 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/api/mod.rs:44:50 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe extern "system" fn window_enum_proc(hwnd: HWND, l_param: LPARAM) -> BOOL { [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/api/mod.rs:44:65 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe extern "system" fn window_enum_proc(hwnd: HWND, l_param: LPARAM) -> BOOL { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/api/mod.rs:44:76 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe extern "system" fn window_enum_proc(hwnd: HWND, l_param: LPARAM) -> BOOL { [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/api/mod.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe extern "system" fn window_enum_proc(hwnd: HWND, l_param: LPARAM) -> BOOL { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 45 | let vec = &mut *(l_param as *mut Vec); [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/api/mod.rs:52:33 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_all_windows() -> Vec { [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/api/mod.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_all_windows() -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 53 | let mut vec: Vec = Vec::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDENUMPROC` in this scope [INFO] [stdout] --> src/api/mod.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | let proc: WNDENUMPROC = Some(window_enum_proc); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumWindows` in this scope [INFO] [stdout] --> src/api/mod.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | EnumWindows(proc, &mut vec as *mut Vec 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/api/mod.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_all_windows() -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 57 | EnumWindows(proc, &mut vec as *mut Vec 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/api/mod.rs:57:53 [INFO] [stdout] | [INFO] [stdout] 57 | EnumWindows(proc, &mut vec as *mut Vec 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/api/mod.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn get_window_text(hwnd: HWND) -> String { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowTextW` in this scope [INFO] [stdout] --> src/api/mod.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | let read_len = GetWindowTextW(hwnd, name.as_mut_ptr(), size); [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/api/mod.rs:74:35 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_window_placement(hwnd: HWND, placement: &mut WINDOWPLACEMENT) -> bool { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/mod.rs:74:57 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_window_placement(hwnd: HWND, placement: &mut WINDOWPLACEMENT) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowPlacement` in this scope [INFO] [stdout] --> src/api/mod.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | if GetWindowPlacement(hwnd, placement) == 1 { [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/api/mod.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | GetWindowRect(hwnd, &mut placement.rcNormalPosition); [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/api/mod.rs:96:32 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn restore_placement(hwnd: HWND, p: WINDOWPLACEMENT) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/mod.rs:96:41 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn restore_placement(hwnd: HWND, p: WINDOWPLACEMENT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWMINIMIZED` in this scope [INFO] [stdout] --> src/api/mod.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | if cmd == SW_SHOWMINIMIZED as u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWMINNOACTIVE` in this scope [INFO] [stdout] --> src/api/mod.rs:108:27 [INFO] [stdout] | [INFO] [stdout] 108 | placement.showCmd = SW_SHOWMINNOACTIVE as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WPF_ASYNCWINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/mod.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | placement.flags |= WPF_ASYNCWINDOWPLACEMENT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPlacement` in this scope [INFO] [stdout] --> src/api/mod.rs:110:7 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_window_placement(hwnd: HWND, placement: &mut WINDOWPLACEMENT) -> bool { [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named function `get_window_placement` defined here [INFO] [stdout] ... [INFO] [stdout] 110 | SetWindowPlacement(hwnd, &placement); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_window_placement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWMAXIMIZED` in this scope [INFO] [stdout] --> src/api/mod.rs:111:22 [INFO] [stdout] | [INFO] [stdout] 111 | } else if cmd == SW_SHOWMAXIMIZED 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 `ShowWindowAsync` in this scope [INFO] [stdout] --> src/api/mod.rs:113:7 [INFO] [stdout] | [INFO] [stdout] 113 | ShowWindowAsync(hwnd, SW_SHOWNOACTIVATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNOACTIVATE` in this scope [INFO] [stdout] --> src/api/mod.rs:113:29 [INFO] [stdout] | [INFO] [stdout] 113 | ShowWindowAsync(hwnd, SW_SHOWNOACTIVATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNOACTIVATE` in this scope [INFO] [stdout] --> src/api/mod.rs:116:27 [INFO] [stdout] | [INFO] [stdout] 116 | placement.showCmd = SW_SHOWNOACTIVATE as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WPF_ASYNCWINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/mod.rs:117:26 [INFO] [stdout] | [INFO] [stdout] 117 | placement.flags |= WPF_ASYNCWINDOWPLACEMENT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPlacement` in this scope [INFO] [stdout] --> src/api/mod.rs:118:7 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_window_placement(hwnd: HWND, placement: &mut WINDOWPLACEMENT) -> bool { [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named function `get_window_placement` defined here [INFO] [stdout] ... [INFO] [stdout] 118 | SetWindowPlacement(hwnd, &placement); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_window_placement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindowAsync` in this scope [INFO] [stdout] --> src/api/mod.rs:121:7 [INFO] [stdout] | [INFO] [stdout] 121 | ShowWindowAsync(hwnd, SW_SHOWMAXIMIZED); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWMAXIMIZED` in this scope [INFO] [stdout] --> src/api/mod.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | ShowWindowAsync(hwnd, SW_SHOWMAXIMIZED); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNOACTIVATE` in this scope [INFO] [stdout] --> src/api/mod.rs:123:27 [INFO] [stdout] | [INFO] [stdout] 123 | placement.showCmd = SW_SHOWNOACTIVATE as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WPF_ASYNCWINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/mod.rs:124:26 [INFO] [stdout] | [INFO] [stdout] 124 | placement.flags |= WPF_ASYNCWINDOWPLACEMENT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPlacement` in this scope [INFO] [stdout] --> src/api/mod.rs:125:7 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_window_placement(hwnd: HWND, placement: &mut WINDOWPLACEMENT) -> bool { [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named function `get_window_placement` defined here [INFO] [stdout] ... [INFO] [stdout] 125 | SetWindowPlacement(hwnd, &placement); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_window_placement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/api/mod.rs:130:36 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn is_application_window(hwnd: HWND) -> bool { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindow` in this scope [INFO] [stdout] --> src/api/mod.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | if IsWindow(hwnd) == 0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetShellWindow` in this scope [INFO] [stdout] --> src/api/mod.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 136 | if hwnd == GetShellWindow() { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindowVisible` in this scope [INFO] [stdout] --> src/api/mod.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | if IsWindowVisible(hwnd) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsIconic` in this scope [INFO] [stdout] --> src/api/mod.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | if IsIconic(hwnd) == 1 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/api/mod.rs:148:24 [INFO] [stdout] | [INFO] [stdout] 148 | let mut hwnd_walk: HWND = GetAncestor(hwnd, GA_ROOTOWNER); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAncestor` in this scope [INFO] [stdout] --> src/api/mod.rs:148:31 [INFO] [stdout] | [INFO] [stdout] 148 | let mut hwnd_walk: HWND = GetAncestor(hwnd, GA_ROOTOWNER); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GA_ROOTOWNER` in this scope [INFO] [stdout] --> src/api/mod.rs:148:49 [INFO] [stdout] | [INFO] [stdout] 148 | let mut hwnd_walk: HWND = GetAncestor(hwnd, GA_ROOTOWNER); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastActivePopup` in this scope [INFO] [stdout] --> src/api/mod.rs:149:24 [INFO] [stdout] | [INFO] [stdout] 149 | let mut hwnd_try = GetLastActivePopup(hwnd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindowVisible` in this scope [INFO] [stdout] --> src/api/mod.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | if IsWindowVisible(hwnd_try) == 1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastActivePopup` in this scope [INFO] [stdout] --> src/api/mod.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | hwnd_try = GetLastActivePopup(hwnd_walk); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTitleBarInfo` in this scope [INFO] [stdout] --> src/api/mod.rs:164:5 [INFO] [stdout] | [INFO] [stdout] 164 | GetTitleBarInfo(hwnd, &mut ti); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATE_SYSTEM_INVISIBLE` in this scope [INFO] [stdout] --> src/api/mod.rs:165:25 [INFO] [stdout] | [INFO] [stdout] 165 | if (ti.rgstate[0] & STATE_SYSTEM_INVISIBLE) > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongW` in this scope [INFO] [stdout] --> src/api/mod.rs:169:18 [INFO] [stdout] | [INFO] [stdout] 169 | let exlong = GetWindowLongW(hwnd, GWL_EXSTYLE) as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_EXSTYLE` in this scope [INFO] [stdout] --> src/api/mod.rs:169:39 [INFO] [stdout] | [INFO] [stdout] 169 | let exlong = GetWindowLongW(hwnd, GWL_EXSTYLE) 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 `GetWindowLongW` in this scope [INFO] [stdout] --> src/api/mod.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | let long = GetWindowLongW(hwnd, GWL_STYLE) as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_STYLE` in this scope [INFO] [stdout] --> src/api/mod.rs:170:37 [INFO] [stdout] | [INFO] [stdout] 170 | let long = GetWindowLongW(hwnd, GWL_STYLE) as u32; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOOLWINDOW` in this scope [INFO] [stdout] --> src/api/mod.rs:172:18 [INFO] [stdout] | [INFO] [stdout] 172 | if (exlong & WS_EX_TOOLWINDOW) > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_POPUP` in this scope [INFO] [stdout] --> src/api/mod.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | if (long & WS_POPUP) > 0 { [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/api/mod.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 178 | if (long & WS_CHILD) > 0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetParent` in this scope [INFO] [stdout] --> src/api/mod.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | let parent = GetParent(hwnd); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindow` in this scope [INFO] [stdout] --> src/api/mod.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | if IsWindow(parent) == 1 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/api/mod.rs:197:33 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn get_window_monitor(hwdn: HWND) -> HMONITOR { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMONITOR` in this scope [INFO] [stdout] --> src/api/mod.rs:197:42 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn get_window_monitor(hwdn: HWND) -> HMONITOR { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MonitorFromWindow` in this scope [INFO] [stdout] --> src/api/mod.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | unsafe { MonitorFromWindow(hwdn, MONITOR_DEFAULTTONEAREST) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MONITOR_DEFAULTTONEAREST` in this scope [INFO] [stdout] --> src/api/mod.rs:198:36 [INFO] [stdout] | [INFO] [stdout] 198 | unsafe { MonitorFromWindow(hwdn, MONITOR_DEFAULTTONEAREST) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMONITOR` in this scope [INFO] [stdout] --> src/api/mod.rs:201:35 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn get_monitor_info(hmonitor: HMONITOR) -> MONITORINFO { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFO` in this scope [INFO] [stdout] --> src/api/mod.rs:201:48 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn get_monitor_info(hmonitor: HMONITOR) -> MONITORINFO { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMonitorInfoW` in this scope [INFO] [stdout] --> src/api/mod.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 205 | GetMonitorInfoW(hmonitor, &mut info); [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/structs/program.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub window: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/structs/program.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | pub placement: WINDOWPLACEMENT, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMONITOR` in this scope [INFO] [stdout] --> src/structs/program.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub monitor: HMONITOR, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFO` in this scope [INFO] [stdout] --> src/structs/program.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub monitor_info: MONITORINFO, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFO` in this scope [INFO] [stdout] --> src/api/def.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn monitor_info() -> MONITORINFO { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MONITORINFO` in this scope [INFO] [stdout] --> src/api/def.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | MONITORINFO { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `POINT` in this scope [INFO] [stdout] --> src/api/def.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn point() -> POINT { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `POINT` in this scope [INFO] [stdout] --> src/api/def.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | POINT { x: 0, y: 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/api/def.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn rect() -> RECT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RECT` in this scope [INFO] [stdout] --> src/api/def.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | RECT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/def.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn window_placement() -> WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/def.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/def.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn clone_window_placement(p: WINDOWPLACEMENT) -> WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/def.rs:37:54 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn clone_window_placement(p: WINDOWPLACEMENT) -> WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/def.rs:38:3 [INFO] [stdout] | [INFO] [stdout] 38 | WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TITLEBARINFO` in this scope [INFO] [stdout] --> src/api/def.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn titlebar_info() -> TITLEBARINFO { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TITLEBARINFO` in this scope [INFO] [stdout] --> src/api/def.rs:49:3 [INFO] [stdout] | [INFO] [stdout] 49 | TITLEBARINFO { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMONITOR` in this scope [INFO] [stdout] --> src/api/mod.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | _: HMONITOR, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/api/mod.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | _: HDC, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPRECT` in this scope [INFO] [stdout] --> src/api/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | rect: LPRECT, [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/api/mod.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | l_param: LPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/api/mod.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | ) -> BOOL { [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/api/mod.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 18 | unsafe extern "system" fn monitor_enum_proc( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 24 | let vec = &mut *(l_param as *mut Vec); [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/api/mod.rs:29:34 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_all_monitors() -> Vec { [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/api/mod.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_all_monitors() -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 30 | let mut vec: Vec = Vec::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORENUMPROC` in this scope [INFO] [stdout] --> src/api/mod.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | let proc: MONITORENUMPROC = Some(monitor_enum_proc); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumDisplayMonitors` in this scope [INFO] [stdout] --> src/api/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | EnumDisplayMonitors( [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/api/mod.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_all_monitors() -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 38 | &mut vec as *mut Vec 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/api/mod.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | &mut vec as *mut Vec 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/api/mod.rs:44:50 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe extern "system" fn window_enum_proc(hwnd: HWND, l_param: LPARAM) -> BOOL { [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/api/mod.rs:44:65 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe extern "system" fn window_enum_proc(hwnd: HWND, l_param: LPARAM) -> BOOL { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/api/mod.rs:44:76 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe extern "system" fn window_enum_proc(hwnd: HWND, l_param: LPARAM) -> BOOL { [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/api/mod.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe extern "system" fn window_enum_proc(hwnd: HWND, l_param: LPARAM) -> BOOL { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 45 | let vec = &mut *(l_param as *mut Vec); [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/api/mod.rs:52:33 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_all_windows() -> Vec { [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/api/mod.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_all_windows() -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 53 | let mut vec: Vec = Vec::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDENUMPROC` in this scope [INFO] [stdout] --> src/api/mod.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | let proc: WNDENUMPROC = Some(window_enum_proc); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumWindows` in this scope [INFO] [stdout] --> src/api/mod.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | EnumWindows(proc, &mut vec as *mut Vec 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/api/mod.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_all_windows() -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 57 | EnumWindows(proc, &mut vec as *mut Vec 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/api/mod.rs:57:53 [INFO] [stdout] | [INFO] [stdout] 57 | EnumWindows(proc, &mut vec as *mut Vec 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/api/mod.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn get_window_text(hwnd: HWND) -> String { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowTextW` in this scope [INFO] [stdout] --> src/api/mod.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | let read_len = GetWindowTextW(hwnd, name.as_mut_ptr(), size); [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/api/mod.rs:74:35 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_window_placement(hwnd: HWND, placement: &mut WINDOWPLACEMENT) -> bool { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/mod.rs:74:57 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_window_placement(hwnd: HWND, placement: &mut WINDOWPLACEMENT) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowPlacement` in this scope [INFO] [stdout] --> src/api/mod.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | if GetWindowPlacement(hwnd, placement) == 1 { [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/api/mod.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | GetWindowRect(hwnd, &mut placement.rcNormalPosition); [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/api/mod.rs:96:32 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn restore_placement(hwnd: HWND, p: WINDOWPLACEMENT) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/mod.rs:96:41 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn restore_placement(hwnd: HWND, p: WINDOWPLACEMENT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWMINIMIZED` in this scope [INFO] [stdout] --> src/api/mod.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | if cmd == SW_SHOWMINIMIZED as u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWMINNOACTIVE` in this scope [INFO] [stdout] --> src/api/mod.rs:108:27 [INFO] [stdout] | [INFO] [stdout] 108 | placement.showCmd = SW_SHOWMINNOACTIVE as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WPF_ASYNCWINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/mod.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | placement.flags |= WPF_ASYNCWINDOWPLACEMENT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPlacement` in this scope [INFO] [stdout] --> src/api/mod.rs:110:7 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_window_placement(hwnd: HWND, placement: &mut WINDOWPLACEMENT) -> bool { [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named function `get_window_placement` defined here [INFO] [stdout] ... [INFO] [stdout] 110 | SetWindowPlacement(hwnd, &placement); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_window_placement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWMAXIMIZED` in this scope [INFO] [stdout] --> src/api/mod.rs:111:22 [INFO] [stdout] | [INFO] [stdout] 111 | } else if cmd == SW_SHOWMAXIMIZED 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 `ShowWindowAsync` in this scope [INFO] [stdout] --> src/api/mod.rs:113:7 [INFO] [stdout] | [INFO] [stdout] 113 | ShowWindowAsync(hwnd, SW_SHOWNOACTIVATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNOACTIVATE` in this scope [INFO] [stdout] --> src/api/mod.rs:113:29 [INFO] [stdout] | [INFO] [stdout] 113 | ShowWindowAsync(hwnd, SW_SHOWNOACTIVATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNOACTIVATE` in this scope [INFO] [stdout] --> src/api/mod.rs:116:27 [INFO] [stdout] | [INFO] [stdout] 116 | placement.showCmd = SW_SHOWNOACTIVATE as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WPF_ASYNCWINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/mod.rs:117:26 [INFO] [stdout] | [INFO] [stdout] 117 | placement.flags |= WPF_ASYNCWINDOWPLACEMENT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPlacement` in this scope [INFO] [stdout] --> src/api/mod.rs:118:7 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_window_placement(hwnd: HWND, placement: &mut WINDOWPLACEMENT) -> bool { [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named function `get_window_placement` defined here [INFO] [stdout] ... [INFO] [stdout] 118 | SetWindowPlacement(hwnd, &placement); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_window_placement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindowAsync` in this scope [INFO] [stdout] --> src/api/mod.rs:121:7 [INFO] [stdout] | [INFO] [stdout] 121 | ShowWindowAsync(hwnd, SW_SHOWMAXIMIZED); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWMAXIMIZED` in this scope [INFO] [stdout] --> src/api/mod.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | ShowWindowAsync(hwnd, SW_SHOWMAXIMIZED); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNOACTIVATE` in this scope [INFO] [stdout] --> src/api/mod.rs:123:27 [INFO] [stdout] | [INFO] [stdout] 123 | placement.showCmd = SW_SHOWNOACTIVATE as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WPF_ASYNCWINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/api/mod.rs:124:26 [INFO] [stdout] | [INFO] [stdout] 124 | placement.flags |= WPF_ASYNCWINDOWPLACEMENT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPlacement` in this scope [INFO] [stdout] --> src/api/mod.rs:125:7 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_window_placement(hwnd: HWND, placement: &mut WINDOWPLACEMENT) -> bool { [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named function `get_window_placement` defined here [INFO] [stdout] ... [INFO] [stdout] 125 | SetWindowPlacement(hwnd, &placement); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_window_placement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/api/mod.rs:130:36 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn is_application_window(hwnd: HWND) -> bool { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindow` in this scope [INFO] [stdout] --> src/api/mod.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | if IsWindow(hwnd) == 0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetShellWindow` in this scope [INFO] [stdout] --> src/api/mod.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 136 | if hwnd == GetShellWindow() { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindowVisible` in this scope [INFO] [stdout] --> src/api/mod.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | if IsWindowVisible(hwnd) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsIconic` in this scope [INFO] [stdout] --> src/api/mod.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | if IsIconic(hwnd) == 1 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/api/mod.rs:148:24 [INFO] [stdout] | [INFO] [stdout] 148 | let mut hwnd_walk: HWND = GetAncestor(hwnd, GA_ROOTOWNER); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAncestor` in this scope [INFO] [stdout] --> src/api/mod.rs:148:31 [INFO] [stdout] | [INFO] [stdout] 148 | let mut hwnd_walk: HWND = GetAncestor(hwnd, GA_ROOTOWNER); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GA_ROOTOWNER` in this scope [INFO] [stdout] --> src/api/mod.rs:148:49 [INFO] [stdout] | [INFO] [stdout] 148 | let mut hwnd_walk: HWND = GetAncestor(hwnd, GA_ROOTOWNER); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastActivePopup` in this scope [INFO] [stdout] --> src/api/mod.rs:149:24 [INFO] [stdout] | [INFO] [stdout] 149 | let mut hwnd_try = GetLastActivePopup(hwnd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindowVisible` in this scope [INFO] [stdout] --> src/api/mod.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | if IsWindowVisible(hwnd_try) == 1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastActivePopup` in this scope [INFO] [stdout] --> src/api/mod.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | hwnd_try = GetLastActivePopup(hwnd_walk); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTitleBarInfo` in this scope [INFO] [stdout] --> src/api/mod.rs:164:5 [INFO] [stdout] | [INFO] [stdout] 164 | GetTitleBarInfo(hwnd, &mut ti); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATE_SYSTEM_INVISIBLE` in this scope [INFO] [stdout] --> src/api/mod.rs:165:25 [INFO] [stdout] | [INFO] [stdout] 165 | if (ti.rgstate[0] & STATE_SYSTEM_INVISIBLE) > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongW` in this scope [INFO] [stdout] --> src/api/mod.rs:169:18 [INFO] [stdout] | [INFO] [stdout] 169 | let exlong = GetWindowLongW(hwnd, GWL_EXSTYLE) as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_EXSTYLE` in this scope [INFO] [stdout] --> src/api/mod.rs:169:39 [INFO] [stdout] | [INFO] [stdout] 169 | let exlong = GetWindowLongW(hwnd, GWL_EXSTYLE) 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 `GetWindowLongW` in this scope [INFO] [stdout] --> src/api/mod.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | let long = GetWindowLongW(hwnd, GWL_STYLE) as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_STYLE` in this scope [INFO] [stdout] --> src/api/mod.rs:170:37 [INFO] [stdout] | [INFO] [stdout] 170 | let long = GetWindowLongW(hwnd, GWL_STYLE) as u32; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOOLWINDOW` in this scope [INFO] [stdout] --> src/api/mod.rs:172:18 [INFO] [stdout] | [INFO] [stdout] 172 | if (exlong & WS_EX_TOOLWINDOW) > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_POPUP` in this scope [INFO] [stdout] --> src/api/mod.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | if (long & WS_POPUP) > 0 { [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/api/mod.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 178 | if (long & WS_CHILD) > 0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetParent` in this scope [INFO] [stdout] --> src/api/mod.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | let parent = GetParent(hwnd); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindow` in this scope [INFO] [stdout] --> src/api/mod.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | if IsWindow(parent) == 1 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/api/mod.rs:197:33 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn get_window_monitor(hwdn: HWND) -> HMONITOR { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMONITOR` in this scope [INFO] [stdout] --> src/api/mod.rs:197:42 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn get_window_monitor(hwdn: HWND) -> HMONITOR { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MonitorFromWindow` in this scope [INFO] [stdout] --> src/api/mod.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | unsafe { MonitorFromWindow(hwdn, MONITOR_DEFAULTTONEAREST) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MONITOR_DEFAULTTONEAREST` in this scope [INFO] [stdout] --> src/api/mod.rs:198:36 [INFO] [stdout] | [INFO] [stdout] 198 | unsafe { MonitorFromWindow(hwdn, MONITOR_DEFAULTTONEAREST) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMONITOR` in this scope [INFO] [stdout] --> src/api/mod.rs:201:35 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn get_monitor_info(hmonitor: HMONITOR) -> MONITORINFO { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFO` in this scope [INFO] [stdout] --> src/api/mod.rs:201:48 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn get_monitor_info(hmonitor: HMONITOR) -> MONITORINFO { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMonitorInfoW` in this scope [INFO] [stdout] --> src/api/mod.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 205 | GetMonitorInfoW(hmonitor, &mut info); [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/structs/program.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub window: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/structs/program.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | pub placement: WINDOWPLACEMENT, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMONITOR` in this scope [INFO] [stdout] --> src/structs/program.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub monitor: HMONITOR, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFO` in this scope [INFO] [stdout] --> src/structs/program.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub monitor_info: MONITORINFO, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 98 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 98 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `window-arranger` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "edc18cfdc7793ffd14b8dbf3d082d4ac082708bdfff79f81ac0ce63aa7fa2fd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edc18cfdc7793ffd14b8dbf3d082d4ac082708bdfff79f81ac0ce63aa7fa2fd2", kill_on_drop: false }` [INFO] [stdout] edc18cfdc7793ffd14b8dbf3d082d4ac082708bdfff79f81ac0ce63aa7fa2fd2