[INFO] fetching crate wcolor 0.1.5... [INFO] checking wcolor-0.1.5 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate wcolor 0.1.5 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate wcolor 0.1.5 [INFO] finished tweaking crates.io crate wcolor 0.1.5 [INFO] tweaked toml for crates.io crate wcolor 0.1.5 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate wcolor 0.1.5 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate wcolor 0.1.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b550ee4a15f285b45632e69116228a60ba1b124ed3bf841359278e58fe99ebf7 [INFO] running `Command { std: "docker" "start" "-a" "b550ee4a15f285b45632e69116228a60ba1b124ed3bf841359278e58fe99ebf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b550ee4a15f285b45632e69116228a60ba1b124ed3bf841359278e58fe99ebf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b550ee4a15f285b45632e69116228a60ba1b124ed3bf841359278e58fe99ebf7", kill_on_drop: false }` [INFO] [stdout] b550ee4a15f285b45632e69116228a60ba1b124ed3bf841359278e58fe99ebf7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6484c571e7460c1f4854431f4f562f1b2437529d7ab61a819c6f852179dcf6d0 [INFO] running `Command { std: "docker" "start" "-a" "6484c571e7460c1f4854431f4f562f1b2437529d7ab61a819c6f852179dcf6d0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling syn v1.0.54 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking wio v0.2.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Checking structopt v0.3.21 [INFO] [stderr] Checking wcolor v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/win.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::wingdi::GetPixel; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/win.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winnt::HRESULT; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/win.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | 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/win.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::minwindef::{LPARAM, LRESULT, WPARAM}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/win.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::shared::windef::{HDC, COLORREF}; [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/win.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::shared::winerror::S_OK; [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/win.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::wingdi::GetPixel; [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/color.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::d3d9types::D3DCOLORVALUE; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `wio::wide` [INFO] [stdout] --> src/win.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | use wio::wide::ToWide; [INFO] [stdout] | ^^^^ could not find `wide` in `wio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `wio::com` [INFO] [stdout] --> src/preview.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | use wio::com::ComPtr; [INFO] [stdout] | ^^^ could not find `com` in `wio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/win.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winnt::HRESULT; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/win.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | 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/win.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::minwindef::{LPARAM, LRESULT, WPARAM}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/win.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::shared::windef::{HDC, COLORREF}; [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/win.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::shared::winerror::S_OK; [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/color.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::d3d9types::D3DCOLORVALUE; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `wio::wide` [INFO] [stdout] --> src/win.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | use wio::wide::ToWide; [INFO] [stdout] | ^^^^ could not find `wide` in `wio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `wio::com` [INFO] [stdout] --> src/preview.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | use wio::com::ComPtr; [INFO] [stdout] | ^^^ could not find `com` in `wio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `wio::wide` [INFO] [stdout] --> src/preview.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | use wio::wide::ToWide; [INFO] [stdout] | ^^^^ could not find `wide` in `wio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::dcommon::{D2D1_PIXEL_FORMAT, D2D1_ALPHA_MODE_PREMULTIPLIED}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::um::dcomp::{DCompositionCreateDevice, IDCompositionDevice, IDCompositionTarget, IDCompositionVisual}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::d3dcommon::D3D_DRIVER_TYPE_HARDWARE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::libloaderapi::GetModuleHandleW; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::d2d1::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::d2d1_1::{ID2D1Bitmap1, D2D1_BITMAP_PROPERTIES1, D2D1_DEVICE_CONTEXT_OPTIONS_NONE, D2D1_BITMAP_OPTIONS_TARGET, D2D1_BITMAP... [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::d2d1_2::{ID2D1Device1, ID2D1Factory2, ID2D1DeviceContext1, ID2D1GeometryRealization}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::um::d3d11::{D3D11CreateDevice, ID3D11Device, D3D11_CREATE_DEVICE_BGRA_SUPPORT, D3D11_SDK_VERSION}; [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/preview.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::shared::winerror::HRESULT; [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/preview.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::shared::windef::{HWND, RECT, POINT}; [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/preview.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::shared::minwindef::LRESULT; [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/preview.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | use winapi::shared::dxgi::*; [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/preview.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | use winapi::shared::dxgi1_2::*; [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/preview.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | use winapi::shared::dxgi1_3::{CreateDXGIFactory2, DXGI_CREATE_FACTORY_DEBUG}; [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/preview.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | use winapi::shared::dxgiformat::DXGI_FORMAT_B8G8R8A8_UNORM; [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/preview.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | use winapi::shared::d3d9types::D3DCOLORVALUE; [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/preview.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | use winapi::shared::dxgitype::{DXGI_SAMPLE_DESC, DXGI_USAGE_RENDER_TARGET_OUTPUT}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::windef::POINT; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::processthreadsapi::GetCurrentThreadId; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::Interface` [INFO] [stdout] --> src/preview.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::Interface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `Interface` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `wio::wide` [INFO] [stdout] --> src/preview.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | use wio::wide::ToWide; [INFO] [stdout] | ^^^^ could not find `wide` in `wio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::dcommon::{D2D1_PIXEL_FORMAT, D2D1_ALPHA_MODE_PREMULTIPLIED}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::um::dcomp::{DCompositionCreateDevice, IDCompositionDevice, IDCompositionTarget, IDCompositionVisual}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::d3dcommon::D3D_DRIVER_TYPE_HARDWARE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::libloaderapi::GetModuleHandleW; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::d2d1::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::d2d1_1::{ID2D1Bitmap1, D2D1_BITMAP_PROPERTIES1, D2D1_DEVICE_CONTEXT_OPTIONS_NONE, D2D1_BITMAP_OPTIONS_TARGET, D2D1_BITMAP... [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::d2d1_2::{ID2D1Device1, ID2D1Factory2, ID2D1DeviceContext1, ID2D1GeometryRealization}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/preview.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::um::d3d11::{D3D11CreateDevice, ID3D11Device, D3D11_CREATE_DEVICE_BGRA_SUPPORT, D3D11_SDK_VERSION}; [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/preview.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::shared::winerror::HRESULT; [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/preview.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::shared::windef::{HWND, RECT, POINT}; [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/preview.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::shared::minwindef::LRESULT; [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/preview.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | use winapi::shared::dxgi::*; [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/preview.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | use winapi::shared::dxgi1_2::*; [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/preview.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | use winapi::shared::dxgi1_3::{CreateDXGIFactory2, DXGI_CREATE_FACTORY_DEBUG}; [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/preview.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | use winapi::shared::dxgiformat::DXGI_FORMAT_B8G8R8A8_UNORM; [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/preview.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | use winapi::shared::d3d9types::D3DCOLORVALUE; [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/preview.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | use winapi::shared::dxgitype::{DXGI_SAMPLE_DESC, DXGI_USAGE_RENDER_TARGET_OUTPUT}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::windef::POINT; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::processthreadsapi::GetCurrentThreadId; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::Interface` [INFO] [stdout] --> src/preview.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::Interface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `Interface` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CF_UNICODETEXT` in this scope [INFO] [stdout] --> src/win.rs:60:26 [INFO] [stdout] | [INFO] [stdout] 60 | SetClipboardData(CF_UNICODETEXT, text_wide.as_mut_ptr() as _); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | swap_chain: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stdout] --> src/preview.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | brush: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stdout] --> src/preview.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | context.Clear(&D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stdout] --> src/preview.rs:70:28 [INFO] [stdout] | [INFO] [stdout] 70 | let negative = D2D1_COLOR_F { r: 0.1, g: 0.1, b: 0.1, a: 1.0 }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/preview.rs:89:26 [INFO] [stdout] | [INFO] [stdout] 89 | let ps: *mut PAINTSTRUCT = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope [INFO] [stdout] --> src/preview.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | let wnd_class = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_NOREDIRECTIONBITMAP` in this scope [INFO] [stdout] --> src/preview.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST, [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/preview.rs:131:41 [INFO] [stdout] | [INFO] [stdout] 131 | WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOPMOST` in this scope [INFO] [stdout] --> src/preview.rs:131:60 [INFO] [stdout] | [INFO] [stdout] 131 | WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST, [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/preview.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | WS_POPUP | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/preview.rs:134:24 [INFO] [stdout] | [INFO] [stdout] 134 | WS_POPUP | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stdout] --> src/preview.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 157 | let mut brush: *mut ID2D1SolidColorBrush = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stdout] --> src/preview.rs:158:43 [INFO] [stdout] | [INFO] [stdout] 158 | (*context).CreateSolidColorBrush(&D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }, null_mut(), void!(brush, ID2D1SolidColorBrush)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stdout] --> src/preview.rs:158:117 [INFO] [stdout] | [INFO] [stdout] 158 | (*context).CreateSolidColorBrush(&D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }, null_mut(), void!(brush, ID2D1SolidColorBrush)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_POINT_2F` in this scope [INFO] [stdout] --> src/preview.rs:161:22 [INFO] [stdout] | [INFO] [stdout] 161 | let center = D2D1_POINT_2F { x: radius + border_size as f32, y: radius + border_size as f32 }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_ELLIPSE` in this scope [INFO] [stdout] --> src/preview.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 162 | let ellipse = D2D1_ELLIPSE { point: center, radiusX: radius, radiusY: radius }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1EllipseGeometry` in this scope [INFO] [stdout] --> src/preview.rs:164:40 [INFO] [stdout] | [INFO] [stdout] 164 | let mut ellipse_geometry: *mut ID2D1EllipseGeometry = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_DEFAULT_FLATTENING_TOLERANCE` in this scope [INFO] [stdout] --> src/preview.rs:168:75 [INFO] [stdout] | [INFO] [stdout] 168 | (*context).CreateFilledGeometryRealization(ellipse_geometry as _, D2D1_DEFAULT_FLATTENING_TOLERANCE, &mut ellipse_realization); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_DEFAULT_FLATTENING_TOLERANCE` in this scope [INFO] [stdout] --> src/preview.rs:171:76 [INFO] [stdout] | [INFO] [stdout] 171 | ... (*context).CreateStrokedGeometryRealization(ellipse_geometry as _, D2D1_DEFAULT_FLATTENING_TOLERANCE, 1.3, null_mut(), &mut stroke_... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIDevice` in this scope [INFO] [stdout] --> src/preview.rs:187:42 [INFO] [stdout] | [INFO] [stdout] 187 | fn create_dxgi_device() -> Result, HRESULT> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 187 | fn create_dxgi_device() -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIDevice` in this scope [INFO] [stdout] --> src/preview.rs:193:41 [INFO] [stdout] | [INFO] [stdout] 193 | let dxgi_device = device.cast::()?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 187 | fn create_dxgi_device() -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/preview.rs:202:19 [INFO] [stdout] | [INFO] [stdout] 202 | let options = D2D1_FACTORY_OPTIONS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_DEBUG_LEVEL_INFORMATION` in this scope [INFO] [stdout] --> src/preview.rs:203:49 [INFO] [stdout] | [INFO] [stdout] 203 | debugLevel: if cfg!(debug_assertions) { D2D1_DEBUG_LEVEL_INFORMATION } else { 0 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_SINGLE_THREADED` in this scope [INFO] [stdout] --> src/preview.rs:207:30 [INFO] [stdout] | [INFO] [stdout] 207 | hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIDevice` in this scope [INFO] [stdout] --> src/preview.rs:213:47 [INFO] [stdout] | [INFO] [stdout] 213 | fn create_device_context(dxgi_device: &ComPtr, factory: &ComPtr) -> Result, HRESU... [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 213 | fn create_device_context(dxgi_device: &ComPtr, factory: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIDevice` in this scope [INFO] [stdout] --> src/preview.rs:225:50 [INFO] [stdout] | [INFO] [stdout] 225 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 225 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:225:81 [INFO] [stdout] | [INFO] [stdout] 225 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 225 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIFactory2` in this scope [INFO] [stdout] --> src/preview.rs:227:36 [INFO] [stdout] | [INFO] [stdout] 227 | let mut dxgi_factory: *mut IDXGIFactory2 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIFactory2` in this scope [INFO] [stdout] --> src/preview.rs:228:145 [INFO] [stdout] | [INFO] [stdout] 228 | ..., &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DXGI_SWAP_CHAIN_DESC1` in this scope [INFO] [stdout] --> src/preview.rs:233:31 [INFO] [stdout] | [INFO] [stdout] 233 | let swap_chain_desc = DXGI_SWAP_CHAIN_DESC1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_SCALING_STRETCH` in this scope [INFO] [stdout] --> src/preview.rs:241:22 [INFO] [stdout] | [INFO] [stdout] 241 | Scaling: DXGI_SCALING_STRETCH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL` in this scope [INFO] [stdout] --> src/preview.rs:242:25 [INFO] [stdout] | [INFO] [stdout] 242 | SwapEffect: DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_ALPHA_MODE_PREMULTIPLIED` in this scope [INFO] [stdout] --> src/preview.rs:243:24 [INFO] [stdout] | [INFO] [stdout] 243 | AlphaMode: DXGI_ALPHA_MODE_PREMULTIPLIED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:247:34 [INFO] [stdout] | [INFO] [stdout] 247 | let mut swap_chain: *mut IDXGISwapChain1 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:256:72 [INFO] [stdout] | [INFO] [stdout] 256 | fn create_bitmap(dc: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 256 | fn create_bitmap(dc: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISurface2` in this scope [INFO] [stdout] --> src/preview.rs:258:35 [INFO] [stdout] | [INFO] [stdout] 258 | let mut dxgi_buffer: *mut IDXGISurface2 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISurface2` in this scope [INFO] [stdout] --> src/preview.rs:259:84 [INFO] [stdout] | [INFO] [stdout] 259 | hr((*swap_chain).GetBuffer(0, &IDXGISurface2::uuidof(), void!(dxgi_buffer, IDXGISurface2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIDevice` in this scope [INFO] [stdout] --> src/preview.rs:278:51 [INFO] [stdout] | [INFO] [stdout] 278 | fn create_composition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:278:85 [INFO] [stdout] | [INFO] [stdout] 278 | fn create_composition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WH_MOUSE_LL` in this scope [INFO] [stdout] --> src/main.rs:45:38 [INFO] [stdout] | [INFO] [stdout] 45 | let hook = SetWindowsHookExW(WH_MOUSE_LL, Some(win::low_mouse_proc), null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_QUIT` in this scope [INFO] [stdout] --> src/main.rs:79:39 [INFO] [stdout] | [INFO] [stdout] 79 | PostThreadMessageW(thread_id, WM_QUIT, 0,0); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOACTIVATE` in this scope [INFO] [stdout] --> src/main.rs:100:88 [INFO] [stdout] | [INFO] [stdout] 100 | ... SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SW... [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOCOPYBITS` in this scope [INFO] [stdout] --> src/main.rs:100:105 [INFO] [stdout] | [INFO] [stdout] 100 | ... SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SW... [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOSIZE` in this scope [INFO] [stdout] --> src/main.rs:100:122 [INFO] [stdout] | [INFO] [stdout] 100 | ...t.y + 15, 0, 0, SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SWP_NOZORDER); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOREDRAW` in this scope [INFO] [stdout] --> src/main.rs:100:135 [INFO] [stdout] | [INFO] [stdout] 100 | ..., SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SWP_NOZORDER); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOZORDER` in this scope [INFO] [stdout] --> src/main.rs:100:150 [INFO] [stdout] | [INFO] [stdout] 100 | ...E | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SWP_NOZORDER); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope [INFO] [stdout] --> src/win.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | return CallNextHookEx(null_mut(), code, w_param, l_param); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/win.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope [INFO] [stdout] --> src/win.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | return CallNextHookEx(null_mut(), code, w_param, l_param); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CF_UNICODETEXT` in this scope [INFO] [stdout] --> src/win.rs:60:26 [INFO] [stdout] | [INFO] [stdout] 60 | SetClipboardData(CF_UNICODETEXT, text_wide.as_mut_ptr() as _); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | swap_chain: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stdout] --> src/preview.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | brush: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stdout] --> src/preview.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | context.Clear(&D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stdout] --> src/preview.rs:70:28 [INFO] [stdout] | [INFO] [stdout] 70 | let negative = D2D1_COLOR_F { r: 0.1, g: 0.1, b: 0.1, a: 1.0 }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/preview.rs:89:26 [INFO] [stdout] | [INFO] [stdout] 89 | let ps: *mut PAINTSTRUCT = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope [INFO] [stdout] --> src/preview.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | let wnd_class = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_NOREDIRECTIONBITMAP` in this scope [INFO] [stdout] --> src/preview.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST, [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/preview.rs:131:41 [INFO] [stdout] | [INFO] [stdout] 131 | WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOPMOST` in this scope [INFO] [stdout] --> src/preview.rs:131:60 [INFO] [stdout] | [INFO] [stdout] 131 | WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST, [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/preview.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | WS_POPUP | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/preview.rs:134:24 [INFO] [stdout] | [INFO] [stdout] 134 | WS_POPUP | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stdout] --> src/preview.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 157 | let mut brush: *mut ID2D1SolidColorBrush = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stdout] --> src/preview.rs:158:43 [INFO] [stdout] | [INFO] [stdout] 158 | (*context).CreateSolidColorBrush(&D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }, null_mut(), void!(brush, ID2D1SolidColorBrush)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stdout] --> src/preview.rs:158:117 [INFO] [stdout] | [INFO] [stdout] 158 | (*context).CreateSolidColorBrush(&D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }, null_mut(), void!(brush, ID2D1SolidColorBrush)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_POINT_2F` in this scope [INFO] [stdout] --> src/preview.rs:161:22 [INFO] [stdout] | [INFO] [stdout] 161 | let center = D2D1_POINT_2F { x: radius + border_size as f32, y: radius + border_size as f32 }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_ELLIPSE` in this scope [INFO] [stdout] --> src/preview.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 162 | let ellipse = D2D1_ELLIPSE { point: center, radiusX: radius, radiusY: radius }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1EllipseGeometry` in this scope [INFO] [stdout] --> src/preview.rs:164:40 [INFO] [stdout] | [INFO] [stdout] 164 | let mut ellipse_geometry: *mut ID2D1EllipseGeometry = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_DEFAULT_FLATTENING_TOLERANCE` in this scope [INFO] [stdout] --> src/preview.rs:168:75 [INFO] [stdout] | [INFO] [stdout] 168 | (*context).CreateFilledGeometryRealization(ellipse_geometry as _, D2D1_DEFAULT_FLATTENING_TOLERANCE, &mut ellipse_realization); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_DEFAULT_FLATTENING_TOLERANCE` in this scope [INFO] [stdout] --> src/preview.rs:171:76 [INFO] [stdout] | [INFO] [stdout] 171 | ... (*context).CreateStrokedGeometryRealization(ellipse_geometry as _, D2D1_DEFAULT_FLATTENING_TOLERANCE, 1.3, null_mut(), &mut stroke_... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIDevice` in this scope [INFO] [stdout] --> src/preview.rs:187:42 [INFO] [stdout] | [INFO] [stdout] 187 | fn create_dxgi_device() -> Result, HRESULT> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 187 | fn create_dxgi_device() -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIDevice` in this scope [INFO] [stdout] --> src/preview.rs:193:41 [INFO] [stdout] | [INFO] [stdout] 193 | let dxgi_device = device.cast::()?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 187 | fn create_dxgi_device() -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/preview.rs:202:19 [INFO] [stdout] | [INFO] [stdout] 202 | let options = D2D1_FACTORY_OPTIONS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_DEBUG_LEVEL_INFORMATION` in this scope [INFO] [stdout] --> src/preview.rs:203:49 [INFO] [stdout] | [INFO] [stdout] 203 | debugLevel: if cfg!(debug_assertions) { D2D1_DEBUG_LEVEL_INFORMATION } else { 0 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_SINGLE_THREADED` in this scope [INFO] [stdout] --> src/preview.rs:207:30 [INFO] [stdout] | [INFO] [stdout] 207 | hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIDevice` in this scope [INFO] [stdout] --> src/preview.rs:213:47 [INFO] [stdout] | [INFO] [stdout] 213 | fn create_device_context(dxgi_device: &ComPtr, factory: &ComPtr) -> Result, HRESU... [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 213 | fn create_device_context(dxgi_device: &ComPtr, factory: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIDevice` in this scope [INFO] [stdout] --> src/preview.rs:225:50 [INFO] [stdout] | [INFO] [stdout] 225 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 225 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:225:81 [INFO] [stdout] | [INFO] [stdout] 225 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 225 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIFactory2` in this scope [INFO] [stdout] --> src/preview.rs:227:36 [INFO] [stdout] | [INFO] [stdout] 227 | let mut dxgi_factory: *mut IDXGIFactory2 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIFactory2` in this scope [INFO] [stdout] --> src/preview.rs:228:145 [INFO] [stdout] | [INFO] [stdout] 228 | ..., &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DXGI_SWAP_CHAIN_DESC1` in this scope [INFO] [stdout] --> src/preview.rs:233:31 [INFO] [stdout] | [INFO] [stdout] 233 | let swap_chain_desc = DXGI_SWAP_CHAIN_DESC1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_SCALING_STRETCH` in this scope [INFO] [stdout] --> src/preview.rs:241:22 [INFO] [stdout] | [INFO] [stdout] 241 | Scaling: DXGI_SCALING_STRETCH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL` in this scope [INFO] [stdout] --> src/preview.rs:242:25 [INFO] [stdout] | [INFO] [stdout] 242 | SwapEffect: DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_ALPHA_MODE_PREMULTIPLIED` in this scope [INFO] [stdout] --> src/preview.rs:243:24 [INFO] [stdout] | [INFO] [stdout] 243 | AlphaMode: DXGI_ALPHA_MODE_PREMULTIPLIED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:247:34 [INFO] [stdout] | [INFO] [stdout] 247 | let mut swap_chain: *mut IDXGISwapChain1 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:256:72 [INFO] [stdout] | [INFO] [stdout] 256 | fn create_bitmap(dc: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 256 | fn create_bitmap(dc: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISurface2` in this scope [INFO] [stdout] --> src/preview.rs:258:35 [INFO] [stdout] | [INFO] [stdout] 258 | let mut dxgi_buffer: *mut IDXGISurface2 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISurface2` in this scope [INFO] [stdout] --> src/preview.rs:259:84 [INFO] [stdout] | [INFO] [stdout] 259 | hr((*swap_chain).GetBuffer(0, &IDXGISurface2::uuidof(), void!(dxgi_buffer, IDXGISurface2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGIDevice` in this scope [INFO] [stdout] --> src/preview.rs:278:51 [INFO] [stdout] | [INFO] [stdout] 278 | fn create_composition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:278:85 [INFO] [stdout] | [INFO] [stdout] 278 | fn create_composition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WH_MOUSE_LL` in this scope [INFO] [stdout] --> src/main.rs:45:38 [INFO] [stdout] | [INFO] [stdout] 45 | let hook = SetWindowsHookExW(WH_MOUSE_LL, Some(win::low_mouse_proc), null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_QUIT` in this scope [INFO] [stdout] --> src/main.rs:79:39 [INFO] [stdout] | [INFO] [stdout] 79 | PostThreadMessageW(thread_id, WM_QUIT, 0,0); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOACTIVATE` in this scope [INFO] [stdout] --> src/main.rs:100:88 [INFO] [stdout] | [INFO] [stdout] 100 | ... SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SW... [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOCOPYBITS` in this scope [INFO] [stdout] --> src/main.rs:100:105 [INFO] [stdout] | [INFO] [stdout] 100 | ... SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SW... [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOSIZE` in this scope [INFO] [stdout] --> src/main.rs:100:122 [INFO] [stdout] | [INFO] [stdout] 100 | ...t.y + 15, 0, 0, SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SWP_NOZORDER); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOREDRAW` in this scope [INFO] [stdout] --> src/main.rs:100:135 [INFO] [stdout] | [INFO] [stdout] 100 | ..., SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SWP_NOZORDER); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOZORDER` in this scope [INFO] [stdout] --> src/main.rs:100:150 [INFO] [stdout] | [INFO] [stdout] 100 | ...E | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SWP_NOZORDER); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_wide_null` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/win.rs:55:42 [INFO] [stdout] | [INFO] [stdout] 55 | let mut text_wide = OsStr::new(text).to_wide_null(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenClipboard` in this scope [INFO] [stdout] --> src/win.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | OpenClipboard(null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EmptyClipboard` in this scope [INFO] [stdout] --> src/win.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | EmptyClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetClipboardData` in this scope [INFO] [stdout] --> src/win.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | SetClipboardData(CF_UNICODETEXT, text_wide.as_mut_ptr() as _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseClipboard` in this scope [INFO] [stdout] --> src/win.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope [INFO] [stdout] --> src/win.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | return CallNextHookEx(null_mut(), code, w_param, l_param); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope [INFO] [stdout] --> src/preview.rs:85:40 [INFO] [stdout] | [INFO] [stdout] 85 | let preview: &mut Preview = &mut *(GetWindowLongPtrW(hwnd, 0) as *mut Preview); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BeginPaint` in this scope [INFO] [stdout] --> src/preview.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | BeginPaint(hwnd, ps); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EndPaint` in this scope [INFO] [stdout] --> src/preview.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | EndPaint(hwnd, ps); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/preview.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> src/preview.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | return DefWindowProcW(hwnd, msg, wparam, lparam); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/win.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope [INFO] [stdout] --> src/win.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | return CallNextHookEx(null_mut(), code, w_param, l_param); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_wide_null` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/preview.rs:108:37 [INFO] [stdout] | [INFO] [stdout] 108 | let name = OsStr::new("wcolor").to_wide_null(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WNDCLASSW` [INFO] [stdout] --> src/preview.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | ..WNDCLASSW::default() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WNDCLASSW` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope [INFO] [stdout] --> src/preview.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | RegisterClassW(&wnd_class); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope [INFO] [stdout] --> src/preview.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | GetCursorPos(&mut p); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/preview.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 130 | hwnd = CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `D2D1CreateFactory` in this scope [INFO] [stdout] --> src/preview.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_wide_null` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/win.rs:55:42 [INFO] [stdout] | [INFO] [stdout] 55 | let mut text_wide = OsStr::new(text).to_wide_null(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenClipboard` in this scope [INFO] [stdout] --> src/win.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | OpenClipboard(null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EmptyClipboard` in this scope [INFO] [stdout] --> src/win.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | EmptyClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IDXGIFactory2` [INFO] [stdout] --> src/preview.rs:228:100 [INFO] [stdout] | [INFO] [stdout] 228 | ...DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `IDXGIFactory2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetClipboardData` in this scope [INFO] [stdout] --> src/win.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | SetClipboardData(CF_UNICODETEXT, text_wide.as_mut_ptr() as _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/preview.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | GetClientRect(hwnd, &mut rect); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseClipboard` in this scope [INFO] [stdout] --> src/win.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IDXGISurface2` [INFO] [stdout] --> src/preview.rs:259:40 [INFO] [stdout] | [INFO] [stdout] 259 | hr((*swap_chain).GetBuffer(0, &IDXGISurface2::uuidof(), void!(dxgi_buffer, IDXGISurface2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `IDXGISurface2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope [INFO] [stdout] --> src/preview.rs:85:40 [INFO] [stdout] | [INFO] [stdout] 85 | let preview: &mut Preview = &mut *(GetWindowLongPtrW(hwnd, 0) as *mut Preview); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BeginPaint` in this scope [INFO] [stdout] --> src/preview.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | BeginPaint(hwnd, ps); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EndPaint` in this scope [INFO] [stdout] --> src/preview.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | EndPaint(hwnd, ps); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/preview.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> src/preview.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | return DefWindowProcW(hwnd, msg, wparam, lparam); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope [INFO] [stdout] --> src/main.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | let hook = SetWindowsHookExW(WH_MOUSE_LL, Some(win::low_mouse_proc), null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MSG` [INFO] [stdout] --> src/main.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let mut msg = MSG::default(); [INFO] [stdout] | ^^^ use of undeclared type `MSG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | GetMessageW(&mut msg, null_mut(), 0, 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | UnhookWindowsHookEx(hook); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | GetCursorPos(&mut p); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope [INFO] [stdout] --> src/main.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | let dc = GetDC(null_mut()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReleaseDC` in this scope [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | ReleaseDC(null_mut(), dc); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostThreadMessageW` in this scope [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | PostThreadMessageW(thread_id, WM_QUIT, 0,0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/main.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | SetWindowLongPtrW(preview.hwnd, 0 , &mut preview as *mut Preview as _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope [INFO] [stdout] --> src/main.rs:93:31 [INFO] [stdout] | [INFO] [stdout] 93 | let dc = unsafe { GetDC(null_mut()) }; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope [INFO] [stdout] --> src/main.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | GetCursorPos(&mut pt); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope [INFO] [stdout] --> src/main.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | ... SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SW... [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MSG` [INFO] [stdout] --> src/main.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | let mut msg = MSG::default(); [INFO] [stdout] | ^^^ use of undeclared type `MSG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:116:15 [INFO] [stdout] | [INFO] [stdout] 116 | while GetMessageW(&mut msg, null_mut(), 0, 0) != 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> src/main.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_wide_null` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/preview.rs:108:37 [INFO] [stdout] | [INFO] [stdout] 108 | let name = OsStr::new("wcolor").to_wide_null(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WNDCLASSW` [INFO] [stdout] --> src/preview.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | ..WNDCLASSW::default() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WNDCLASSW` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope [INFO] [stdout] --> src/preview.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | RegisterClassW(&wnd_class); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope [INFO] [stdout] --> src/preview.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | GetCursorPos(&mut p); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/preview.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 130 | hwnd = CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `D2D1CreateFactory` in this scope [INFO] [stdout] --> src/preview.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IDXGIFactory2` [INFO] [stdout] --> src/preview.rs:228:100 [INFO] [stdout] | [INFO] [stdout] 228 | ...DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `IDXGIFactory2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/preview.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | GetClientRect(hwnd, &mut rect); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IDXGISurface2` [INFO] [stdout] --> src/preview.rs:259:40 [INFO] [stdout] | [INFO] [stdout] 259 | hr((*swap_chain).GetBuffer(0, &IDXGISurface2::uuidof(), void!(dxgi_buffer, IDXGISurface2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `IDXGISurface2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wcolor` (bin "wcolor" test) due to 116 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope [INFO] [stdout] --> src/main.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | let hook = SetWindowsHookExW(WH_MOUSE_LL, Some(win::low_mouse_proc), null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MSG` [INFO] [stdout] --> src/main.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let mut msg = MSG::default(); [INFO] [stdout] | ^^^ use of undeclared type `MSG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | GetMessageW(&mut msg, null_mut(), 0, 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | UnhookWindowsHookEx(hook); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | GetCursorPos(&mut p); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope [INFO] [stdout] --> src/main.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | let dc = GetDC(null_mut()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReleaseDC` in this scope [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | ReleaseDC(null_mut(), dc); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostThreadMessageW` in this scope [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | PostThreadMessageW(thread_id, WM_QUIT, 0,0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/main.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | SetWindowLongPtrW(preview.hwnd, 0 , &mut preview as *mut Preview as _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope [INFO] [stdout] --> src/main.rs:93:31 [INFO] [stdout] | [INFO] [stdout] 93 | let dc = unsafe { GetDC(null_mut()) }; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope [INFO] [stdout] --> src/main.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | GetCursorPos(&mut pt); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope [INFO] [stdout] --> src/main.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | ... SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOREDRAW | SW... [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MSG` [INFO] [stdout] --> src/main.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | let mut msg = MSG::default(); [INFO] [stdout] | ^^^ use of undeclared type `MSG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:116:15 [INFO] [stdout] | [INFO] [stdout] 116 | while GetMessageW(&mut msg, null_mut(), 0, 0) != 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> src/main.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wcolor` (bin "wcolor") due to 116 previous errors [INFO] running `Command { std: "docker" "inspect" "6484c571e7460c1f4854431f4f562f1b2437529d7ab61a819c6f852179dcf6d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6484c571e7460c1f4854431f4f562f1b2437529d7ab61a819c6f852179dcf6d0", kill_on_drop: false }` [INFO] [stdout] 6484c571e7460c1f4854431f4f562f1b2437529d7ab61a819c6f852179dcf6d0