[INFO] cloning repository https://github.com/polds/winshot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/polds/winshot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpolds%2Fwinshot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpolds%2Fwinshot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9115337c6650f33922caf73a33de51dfb44c49ef [INFO] checking polds/winshot against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpolds%2Fwinshot" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/polds/winshot on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/polds/winshot [INFO] finished tweaking git repo https://github.com/polds/winshot [INFO] tweaked toml for git repo https://github.com/polds/winshot written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/polds/winshot already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-7/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c910fb8cb50553888f6d1565f82895ea7caa2a5b6d01155e1a4fb2a8c8f61b49 [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" "c910fb8cb50553888f6d1565f82895ea7caa2a5b6d01155e1a4fb2a8c8f61b49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c910fb8cb50553888f6d1565f82895ea7caa2a5b6d01155e1a4fb2a8c8f61b49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c910fb8cb50553888f6d1565f82895ea7caa2a5b6d01155e1a4fb2a8c8f61b49", kill_on_drop: false }` [INFO] [stdout] c910fb8cb50553888f6d1565f82895ea7caa2a5b6d01155e1a4fb2a8c8f61b49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f04deff5faf9a870a573d5f3a3e56fb4f942f86450e78a1c479ec09546f034c2 [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" "f04deff5faf9a870a573d5f3a3e56fb4f942f86450e78a1c479ec09546f034c2", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Compiling user32-sys v0.2.0 [INFO] [stderr] Compiling gdi32-sys v0.2.0 [INFO] [stderr] Compiling kernel32-sys v0.1.4 [INFO] [stderr] Checking winshot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::windef::HWND; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::windef::HMENU; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::windef::HBRUSH; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::minwindef::HINSTANCE; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::minwindef::UINT; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::minwindef::DWORD; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::minwindef::WPARAM; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::minwindef::LPARAM; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::minwindef::LRESULT; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::minwindef::BOOL; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winnt` [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::winnt::LPCWSTR; [INFO] [stdout] | ^^^^^ could not find `winnt` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::winuser::WS_OVERLAPPEDWINDOW; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::winuser::WS_VISIBLE; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::winuser::WNDCLASSW; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::winuser::CF_BITMAP; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | use winapi::winuser::*; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::windef::HWND; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::windef::HMENU; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::windef::HBRUSH; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::minwindef::HINSTANCE; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::minwindef::UINT; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::minwindef::DWORD; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::minwindef::WPARAM; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::minwindef::LPARAM; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::minwindef::LRESULT; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::minwindef::BOOL; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winnt` [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::winnt::LPCWSTR; [INFO] [stdout] | ^^^^^ could not find `winnt` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::winuser::WS_OVERLAPPEDWINDOW; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::winuser::WS_VISIBLE; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::winuser::WNDCLASSW; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::winuser::CF_BITMAP; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | use winapi::winuser::*; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:91:50 [INFO] [stdout] | [INFO] [stdout] 91 | x /* left */: user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:92:49 [INFO] [stdout] | [INFO] [stdout] 92 | y /* top */: user32::GetSystemMetrics(winapi::winuser::SM_YVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:93:52 [INFO] [stdout] | [INFO] [stdout] 93 | x2 /* right */: user32::GetSystemMetrics(winapi::winuser::SM_CXVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSC... [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:93:116 [INFO] [stdout] | [INFO] [stdout] 93 | ...EN) + user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:94:53 [INFO] [stdout] | [INFO] [stdout] 94 | y2 /* bottom */: user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUAL... [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:94:117 [INFO] [stdout] | [INFO] [stdout] 94 | ...EN) + user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:91:50 [INFO] [stdout] | [INFO] [stdout] 91 | x /* left */: user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:92:49 [INFO] [stdout] | [INFO] [stdout] 92 | y /* top */: user32::GetSystemMetrics(winapi::winuser::SM_YVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:93:52 [INFO] [stdout] | [INFO] [stdout] 93 | x2 /* right */: user32::GetSystemMetrics(winapi::winuser::SM_CXVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSC... [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:93:116 [INFO] [stdout] | [INFO] [stdout] 93 | ...EN) + user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:94:53 [INFO] [stdout] | [INFO] [stdout] 94 | y2 /* bottom */: user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUAL... [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:94:117 [INFO] [stdout] | [INFO] [stdout] 94 | ...EN) + user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:145:19 [INFO] [stdout] | [INFO] [stdout] 145 | style: winapi::winuser::CS_HREDRAW | winapi::winuser::CS_VREDRAW, [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:145:49 [INFO] [stdout] | [INFO] [stdout] 145 | style: winapi::winuser::CS_HREDRAW | winapi::winuser::CS_VREDRAW, [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:147:57 [INFO] [stdout] | [INFO] [stdout] 147 | hCursor: user32::LoadCursorW(0 as HINSTANCE, winapi::winuser::IDC_CROSS), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:145:19 [INFO] [stdout] | [INFO] [stdout] 145 | style: winapi::winuser::CS_HREDRAW | winapi::winuser::CS_VREDRAW, [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:148:53 [INFO] [stdout] | [INFO] [stdout] 148 | hIcon: user32::LoadIconW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:153:25 [INFO] [stdout] | [INFO] [stdout] 153 | let exstyle = winapi::winuser::WS_EX_TRANSPARENT; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:154:23 [INFO] [stdout] | [INFO] [stdout] 154 | let style = winapi::winuser::WS_POPUP; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:145:49 [INFO] [stdout] | [INFO] [stdout] 145 | style: winapi::winuser::CS_HREDRAW | winapi::winuser::CS_VREDRAW, [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:147:57 [INFO] [stdout] | [INFO] [stdout] 147 | hCursor: user32::LoadCursorW(0 as HINSTANCE, winapi::winuser::IDC_CROSS), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:148:53 [INFO] [stdout] | [INFO] [stdout] 148 | hIcon: user32::LoadIconW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:153:25 [INFO] [stdout] | [INFO] [stdout] 153 | let exstyle = winapi::winuser::WS_EX_TRANSPARENT; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:154:23 [INFO] [stdout] | [INFO] [stdout] 154 | let style = winapi::winuser::WS_POPUP; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:168:35 [INFO] [stdout] | [INFO] [stdout] 168 | user32::ShowWindow(win, winapi::winuser::SW_SHOW); [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:169:35 [INFO] [stdout] | [INFO] [stdout] 169 | user32::ShowWindow(win, winapi::winuser::SW_SHOWMAXIMIZED); [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in crate `user32` [INFO] [stdout] --> src/main.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | user32::PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in crate `user32` [INFO] [stdout] --> src/main.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | return user32::DefWindowProcW(h_wnd, msg, w_param, l_param); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | x /* left */: user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | y /* top */: user32::GetSystemMetrics(winapi::winuser::SM_YVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:93:27 [INFO] [stdout] | [INFO] [stdout] 93 | x2 /* right */: user32::GetSystemMetrics(winapi::winuser::SM_CXVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSC... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:93:91 [INFO] [stdout] | [INFO] [stdout] 93 | x2 /* right */: user32::GetSystemMetrics(winapi::winuser::SM_CXVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSC... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | y2 /* bottom */: user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUAL... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:94:92 [INFO] [stdout] | [INFO] [stdout] 94 | ...i::winuser::SM_CYVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in crate `user32` [INFO] [stdout] --> src/main.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 104 | let screen_dc = user32::GetDC(0 as HWND); [INFO] [stdout] | ^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleDC` in crate `gdi32` [INFO] [stdout] --> src/main.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | let shot_dc = gdi32::CreateCompatibleDC(screen_dc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleBitmap` in crate `gdi32` [INFO] [stdout] --> src/main.rs:106:27 [INFO] [stdout] | [INFO] [stdout] 106 | let shot_bitmap = gdi32::CreateCompatibleBitmap(screen_dc, w, h); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in crate `gdi32` [INFO] [stdout] --> src/main.rs:107:23 [INFO] [stdout] | [INFO] [stdout] 107 | let old_obj = gdi32::SelectObject(shot_dc, shot_bitmap); [INFO] [stdout] | ^^^^^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BitBlt` in crate `gdi32` [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | if !gdi32::BitBlt(shot_dc, 0, 0, w, h, screen_dc, rect.x, rect.y, 0 as DWORD) { [INFO] [stdout] | ^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenClipboard` in crate `user32` [INFO] [stdout] --> src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | if user32::OpenClipboard(hwnd) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EmptyClipboard` in crate `user32` [INFO] [stdout] --> src/main.rs:116:14 [INFO] [stdout] | [INFO] [stdout] 116 | if user32::EmptyClipboard() != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetClipboardData` in crate `user32` [INFO] [stdout] --> src/main.rs:117:15 [INFO] [stdout] | [INFO] [stdout] 117 | if user32::SetClipboardData(CF_BITMAP, shot_bitmap) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseClipboard` in crate `user32` [INFO] [stdout] --> src/main.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | user32::CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteDC` in crate `gdi32` [INFO] [stdout] --> src/main.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | gdi32::DeleteDC(shot_dc); [INFO] [stdout] | ^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteDC` in crate `gdi32` [INFO] [stdout] --> src/main.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | gdi32::DeleteDC(screen_dc); [INFO] [stdout] | ^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in crate `gdi32` [INFO] [stdout] --> src/main.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | gdi32::SelectObject(shot_dc, old_obj); [INFO] [stdout] | ^^^^^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in crate `kernel32` [INFO] [stdout] --> src/main.rs:136:29 [INFO] [stdout] | [INFO] [stdout] 136 | let hInstance = kernel32::GetModuleHandleW(0 as LPCWSTR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in crate `user32` [INFO] [stdout] --> src/main.rs:147:21 [INFO] [stdout] | [INFO] [stdout] 147 | hCursor: user32::LoadCursorW(0 as HINSTANCE, winapi::winuser::IDC_CROSS), [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadIconW` in crate `user32` [INFO] [stdout] --> src/main.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 148 | hIcon: user32::LoadIconW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in crate `user32` [INFO] [stdout] --> src/main.rs:151:11 [INFO] [stdout] | [INFO] [stdout] 151 | user32::RegisterClassW(&wnd); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in crate `user32` [INFO] [stdout] --> src/main.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | let win = user32::CreateWindowExW(exstyle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:168:11 [INFO] [stdout] | [INFO] [stdout] 168 | user32::ShowWindow(win, winapi::winuser::SW_SHOW); [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:169:11 [INFO] [stdout] | [INFO] [stdout] 169 | user32::ShowWindow(win, winapi::winuser::SW_SHOWMAXIMIZED); [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetForegroundWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:170:11 [INFO] [stdout] | [INFO] [stdout] 170 | user32::SetForegroundWindow(win); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:179:11 [INFO] [stdout] | [INFO] [stdout] 179 | user32::DestroyWindow(win); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:168:35 [INFO] [stdout] | [INFO] [stdout] 168 | user32::ShowWindow(win, winapi::winuser::SW_SHOW); [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:169:35 [INFO] [stdout] | [INFO] [stdout] 169 | user32::ShowWindow(win, winapi::winuser::SW_SHOWMAXIMIZED); [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in crate `user32` [INFO] [stdout] --> src/main.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | user32::PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in crate `user32` [INFO] [stdout] --> src/main.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | return user32::DefWindowProcW(h_wnd, msg, w_param, l_param); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | x /* left */: user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | y /* top */: user32::GetSystemMetrics(winapi::winuser::SM_YVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:93:27 [INFO] [stdout] | [INFO] [stdout] 93 | x2 /* right */: user32::GetSystemMetrics(winapi::winuser::SM_CXVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSC... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:93:91 [INFO] [stdout] | [INFO] [stdout] 93 | x2 /* right */: user32::GetSystemMetrics(winapi::winuser::SM_CXVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_XVIRTUALSC... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | y2 /* bottom */: user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUAL... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in crate `user32` [INFO] [stdout] --> src/main.rs:94:92 [INFO] [stdout] | [INFO] [stdout] 94 | ...i::winuser::SM_CYVIRTUALSCREEN) + user32::GetSystemMetrics(winapi::winuser::SM_CYVIRTUALSCREEN), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in crate `user32` [INFO] [stdout] --> src/main.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 104 | let screen_dc = user32::GetDC(0 as HWND); [INFO] [stdout] | ^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleDC` in crate `gdi32` [INFO] [stdout] --> src/main.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | let shot_dc = gdi32::CreateCompatibleDC(screen_dc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleBitmap` in crate `gdi32` [INFO] [stdout] --> src/main.rs:106:27 [INFO] [stdout] | [INFO] [stdout] 106 | let shot_bitmap = gdi32::CreateCompatibleBitmap(screen_dc, w, h); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in crate `gdi32` [INFO] [stdout] --> src/main.rs:107:23 [INFO] [stdout] | [INFO] [stdout] 107 | let old_obj = gdi32::SelectObject(shot_dc, shot_bitmap); [INFO] [stdout] | ^^^^^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BitBlt` in crate `gdi32` [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | if !gdi32::BitBlt(shot_dc, 0, 0, w, h, screen_dc, rect.x, rect.y, 0 as DWORD) { [INFO] [stdout] | ^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenClipboard` in crate `user32` [INFO] [stdout] --> src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | if user32::OpenClipboard(hwnd) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EmptyClipboard` in crate `user32` [INFO] [stdout] --> src/main.rs:116:14 [INFO] [stdout] | [INFO] [stdout] 116 | if user32::EmptyClipboard() != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetClipboardData` in crate `user32` [INFO] [stdout] --> src/main.rs:117:15 [INFO] [stdout] | [INFO] [stdout] 117 | if user32::SetClipboardData(CF_BITMAP, shot_bitmap) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseClipboard` in crate `user32` [INFO] [stdout] --> src/main.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | user32::CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteDC` in crate `gdi32` [INFO] [stdout] --> src/main.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | gdi32::DeleteDC(shot_dc); [INFO] [stdout] | ^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteDC` in crate `gdi32` [INFO] [stdout] --> src/main.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | gdi32::DeleteDC(screen_dc); [INFO] [stdout] | ^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in crate `gdi32` [INFO] [stdout] --> src/main.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | gdi32::SelectObject(shot_dc, old_obj); [INFO] [stdout] | ^^^^^^^^^^^^ not found in `gdi32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in crate `kernel32` [INFO] [stdout] --> src/main.rs:136:29 [INFO] [stdout] | [INFO] [stdout] 136 | let hInstance = kernel32::GetModuleHandleW(0 as LPCWSTR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in crate `user32` [INFO] [stdout] --> src/main.rs:147:21 [INFO] [stdout] | [INFO] [stdout] 147 | hCursor: user32::LoadCursorW(0 as HINSTANCE, winapi::winuser::IDC_CROSS), [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadIconW` in crate `user32` [INFO] [stdout] --> src/main.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 148 | hIcon: user32::LoadIconW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in crate `user32` [INFO] [stdout] --> src/main.rs:151:11 [INFO] [stdout] | [INFO] [stdout] 151 | user32::RegisterClassW(&wnd); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in crate `user32` [INFO] [stdout] --> src/main.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | let win = user32::CreateWindowExW(exstyle, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:168:11 [INFO] [stdout] | [INFO] [stdout] 168 | user32::ShowWindow(win, winapi::winuser::SW_SHOW); [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:169:11 [INFO] [stdout] | [INFO] [stdout] 169 | user32::ShowWindow(win, winapi::winuser::SW_SHOWMAXIMIZED); [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetForegroundWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:170:11 [INFO] [stdout] | [INFO] [stdout] 170 | user32::SetForegroundWindow(win); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:179:11 [INFO] [stdout] | [INFO] [stdout] 179 | user32::DestroyWindow(win); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `user32` [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:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | let v: Vec = OsStr::new(str).encode_wide() . chain(Some(0).into_iter()).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:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | let v: Vec = OsStr::new(str).encode_wide() . chain(Some(0).into_iter()).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 61 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 61 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `winshot` [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" "f04deff5faf9a870a573d5f3a3e56fb4f942f86450e78a1c479ec09546f034c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f04deff5faf9a870a573d5f3a3e56fb4f942f86450e78a1c479ec09546f034c2", kill_on_drop: false }` [INFO] [stdout] f04deff5faf9a870a573d5f3a3e56fb4f942f86450e78a1c479ec09546f034c2