[INFO] fetching crate wcolor 0.1.2... [INFO] checking wcolor-0.1.2 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] extracting crate wcolor 0.1.2 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate wcolor 0.1.2 on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate wcolor 0.1.2 [INFO] finished tweaking crates.io crate wcolor 0.1.2 [INFO] tweaked toml for crates.io crate wcolor 0.1.2 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate crates.io crate wcolor 0.1.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro-error v0.4.9 [INFO] [stderr] Downloaded hermit-abi v0.1.7 [INFO] [stderr] Downloaded proc-macro-error-attr v0.4.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 27f4a094bec2afbc3b91886c876004666556a705d5658784e7e4081ac11fe196 [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" "27f4a094bec2afbc3b91886c876004666556a705d5658784e7e4081ac11fe196", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "27f4a094bec2afbc3b91886c876004666556a705d5658784e7e4081ac11fe196", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27f4a094bec2afbc3b91886c876004666556a705d5658784e7e4081ac11fe196", kill_on_drop: false }` [INFO] [stdout] 27f4a094bec2afbc3b91886c876004666556a705d5658784e7e4081ac11fe196 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 12925b22b3f93d4bf94510637b512b951a7ab3a1005c78d4e06d4faf2783c60e [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" "12925b22b3f93d4bf94510637b512b951a7ab3a1005c78d4e06d4faf2783c60e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling rustversion v1.0.2 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking wio v0.2.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling proc-macro-error v0.4.9 [INFO] [stderr] Compiling proc-macro-error-attr v0.4.9 [INFO] [stderr] Compiling structopt-derive v0.4.2 [INFO] [stderr] Checking structopt v0.3.9 [INFO] [stderr] Checking wcolor v0.1.2 (/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 `shared` in `winapi` [INFO] [stdout] --> src/color.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | 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:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | 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:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | 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:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | 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[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 `shared` in `winapi` [INFO] [stdout] --> src/color.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | 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:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | 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:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | 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:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | 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[E0433]: failed to resolve: use of undeclared type `D3DCOLORVALUE` [INFO] [stdout] --> src/preview.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | let d3d_color = D3DCOLORVALUE::from(color); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `D3DCOLORVALUE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WNDCLASSW` [INFO] [stdout] --> src/preview.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | ..WNDCLASSW::default() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WNDCLASSW` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `POINT` [INFO] [stdout] --> src/preview.rs:123:21 [INFO] [stdout] | [INFO] [stdout] 123 | let mut p = POINT::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `POINT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ID2D1Factory2` [INFO] [stdout] --> src/preview.rs:203:66 [INFO] [stdout] | [INFO] [stdout] 203 | hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ID2D1Factory2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `D3DCOLORVALUE` [INFO] [stdout] --> src/preview.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | let d3d_color = D3DCOLORVALUE::from(color); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `D3DCOLORVALUE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IDXGIFactory2` [INFO] [stdout] --> src/preview.rs:224:100 [INFO] [stdout] | [INFO] [stdout] 224 | ...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[E0433]: failed to resolve: use of undeclared type `WNDCLASSW` [INFO] [stdout] --> src/preview.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | ..WNDCLASSW::default() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WNDCLASSW` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IDXGISurface2` [INFO] [stdout] --> src/preview.rs:255:40 [INFO] [stdout] | [INFO] [stdout] 255 | 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[E0433]: failed to resolve: use of undeclared type `POINT` [INFO] [stdout] --> src/preview.rs:123:21 [INFO] [stdout] | [INFO] [stdout] 123 | let mut p = POINT::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `POINT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IDCompositionDevice` [INFO] [stdout] --> src/preview.rs:277:55 [INFO] [stdout] | [INFO] [stdout] 277 | hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `IDCompositionDevice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MSG` [INFO] [stdout] --> src/main.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | let mut msg = MSG::default(); [INFO] [stdout] | ^^^ use of undeclared type `MSG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `POINT` [INFO] [stdout] --> src/main.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | let mut p = POINT::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `POINT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `POINT` [INFO] [stdout] --> src/main.rs:89:26 [INFO] [stdout] | [INFO] [stdout] 89 | let mut pt = POINT::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `POINT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MSG` [INFO] [stdout] --> src/main.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | let mut msg = MSG::default(); [INFO] [stdout] | ^^^ use of undeclared type `MSG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/win.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn hr(code: HRESULT) -> Result<(), HRESULT> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/win.rs:18:40 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn hr(code: HRESULT) -> 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] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win.rs:32:66 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win.rs:32:83 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win.rs:32:94 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [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[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn color_at(hdc: HDC, x: i32, y: i32) -> Color { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `COLORREF` in this scope [INFO] [stdout] --> src/win.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | let color: COLORREF = unsafe { GetPixel(hdc, x, y) }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetPixel` in this scope [INFO] [stdout] --> src/win.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | let color: COLORREF = unsafe { GetPixel(hdc, x, y) }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [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 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[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[E0412]: cannot find type `D3DCOLORVALUE` in this scope [INFO] [stdout] --> src/color.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | impl From for D3DCOLORVALUE { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D3DCOLORVALUE` in this scope [INFO] [stdout] --> src/color.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | D3DCOLORVALUE { r, g, b, a: 1.0 } [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D3DCOLORVALUE` in this scope [INFO] [stdout] --> src/color.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | impl From for Color { [INFO] [stdout] | - ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D3DCOLORVALUE` in this scope [INFO] [stdout] --> src/color.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | fn from(color: D3DCOLORVALUE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/preview.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | pub hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope [INFO] [stdout] --> src/preview.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 33 | pub hwnd: HWND, [INFO] [stdout] 34 | context: ComPtr, [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] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 35 | swap_chain: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionTarget` in this scope [INFO] [stdout] --> src/preview.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 36 | _target: ComPtr, [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:37:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 37 | brush: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope [INFO] [stdout] --> src/preview.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 38 | ellipse: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope [INFO] [stdout] --> src/preview.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 39 | stroke: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:58:31 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn draw(&mut self) -> HRESULT { [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:68:28 [INFO] [stdout] | [INFO] [stdout] 68 | let negative = D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 1.0 }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/preview.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe extern "system" fn window_proc(hwnd: HWND, msg: u32, wparam: usize, lparam: isize) -> LRESULT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/preview.rs:82:94 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe extern "system" fn window_proc(hwnd: HWND, msg: u32, wparam: usize, lparam: isize) -> LRESULT { [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:83:40 [INFO] [stdout] | [INFO] [stdout] 83 | 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[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/preview.rs:87:26 [INFO] [stdout] | [INFO] [stdout] 87 | let ps: *mut PAINTSTRUCT = 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 `BeginPaint` in this scope [INFO] [stdout] --> src/preview.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | 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:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | 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:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | 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:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | return DefWindowProcW(hwnd, msg, wparam, lparam); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/preview.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | let hwnd: HWND; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/preview.rs:111:25 [INFO] [stdout] | [INFO] [stdout] 111 | let hinstance = GetModuleHandleW(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:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | let wnd_class = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [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:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | 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:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | 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:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | hwnd = CreateWindowExW( [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:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | 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:127:41 [INFO] [stdout] | [INFO] [stdout] 127 | 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:127:60 [INFO] [stdout] | [INFO] [stdout] 127 | 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:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | 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:130:24 [INFO] [stdout] | [INFO] [stdout] 130 | 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:153:29 [INFO] [stdout] | [INFO] [stdout] 153 | 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:154:43 [INFO] [stdout] | [INFO] [stdout] 154 | (*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:154:117 [INFO] [stdout] | [INFO] [stdout] 154 | (*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:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | let center = D2D1_POINT_2F { x: radius + 2.0, y: radius + 2.0 }; [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:158:23 [INFO] [stdout] | [INFO] [stdout] 158 | 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:160:40 [INFO] [stdout] | [INFO] [stdout] 160 | let mut ellipse_geometry: *mut ID2D1EllipseGeometry = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope [INFO] [stdout] --> src/preview.rs:163:43 [INFO] [stdout] | [INFO] [stdout] 163 | let mut ellipse_realization: *mut ID2D1GeometryRealization = 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:164:75 [INFO] [stdout] | [INFO] [stdout] 164 | (*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[E0412]: cannot find type `ID2D1GeometryRealization` in this scope [INFO] [stdout] --> src/preview.rs:166:42 [INFO] [stdout] | [INFO] [stdout] 166 | let mut stroke_realization: *mut ID2D1GeometryRealization = 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:167:76 [INFO] [stdout] | [INFO] [stdout] 167 | ... (*context).CreateStrokedGeometryRealization(ellipse_geometry as _, D2D1_DEFAULT_FLATTENING_TOLERANCE, 0.75, 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:183:42 [INFO] [stdout] | [INFO] [stdout] 183 | 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] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:183:56 [INFO] [stdout] | [INFO] [stdout] 183 | 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] [INFO] [stdout] error[E0412]: cannot find type `ID3D11Device` in this scope [INFO] [stdout] --> src/preview.rs:185:30 [INFO] [stdout] | [INFO] [stdout] 185 | let mut device: *mut ID3D11Device = 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 `D3D11CreateDevice` in this scope [INFO] [stdout] --> src/preview.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | ... hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSI... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D3D_DRIVER_TYPE_HARDWARE` in this scope [INFO] [stdout] --> src/preview.rs:186:42 [INFO] [stdout] | [INFO] [stdout] 186 | ... hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSI... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D3D11_CREATE_DEVICE_BGRA_SUPPORT` in this scope [INFO] [stdout] --> src/preview.rs:186:80 [INFO] [stdout] | [INFO] [stdout] 186 | ... hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSI... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D3D11_SDK_VERSION` in this scope [INFO] [stdout] --> src/preview.rs:186:125 [INFO] [stdout] | [INFO] [stdout] 186 | ... D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSION, &mut device, null_mut(), null_mut()))?; [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:189:41 [INFO] [stdout] | [INFO] [stdout] 183 | fn create_dxgi_device() -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 189 | let dxgi_device = device.cast::()?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory2` in this scope [INFO] [stdout] --> src/preview.rs:195:38 [INFO] [stdout] | [INFO] [stdout] 195 | fn create_factory() -> 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] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:195:54 [INFO] [stdout] | [INFO] [stdout] 195 | fn create_factory() -> 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] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory2` in this scope [INFO] [stdout] --> src/preview.rs:196:31 [INFO] [stdout] | [INFO] [stdout] 196 | let mut d2d_factory: *mut ID2D1Factory2 = 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_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/preview.rs:198:19 [INFO] [stdout] | [INFO] [stdout] 198 | 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:199:49 [INFO] [stdout] | [INFO] [stdout] 199 | 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 function, tuple struct or tuple variant `D2D1CreateFactory` in this scope [INFO] [stdout] --> src/preview.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | 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[E0425]: cannot find value `D2D1_FACTORY_TYPE_SINGLE_THREADED` in this scope [INFO] [stdout] --> src/preview.rs:203:30 [INFO] [stdout] | [INFO] [stdout] 203 | 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 `ID2D1Factory2` in this scope [INFO] [stdout] --> src/preview.rs:203:120 [INFO] [stdout] | [INFO] [stdout] 203 | 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:209:47 [INFO] [stdout] | [INFO] [stdout] 209 | 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] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory2` in this scope [INFO] [stdout] --> src/preview.rs:209:78 [INFO] [stdout] | [INFO] [stdout] 209 | 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] [INFO] [stdout] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope [INFO] [stdout] --> src/preview.rs:209:111 [INFO] [stdout] | [INFO] [stdout] 209 | ...ice_context(dxgi_device: &ComPtr, factory: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:209:133 [INFO] [stdout] | [INFO] [stdout] 209 | ...context(dxgi_device: &ComPtr, factory: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Device1` in this scope [INFO] [stdout] --> src/preview.rs:211:34 [INFO] [stdout] | [INFO] [stdout] 211 | let mut d2d_device: *mut ID2D1Device1 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope [INFO] [stdout] --> src/preview.rs:214:26 [INFO] [stdout] | [INFO] [stdout] 214 | let mut dc: *mut ID2D1DeviceContext1 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_DEVICE_CONTEXT_OPTIONS_NONE` in this scope [INFO] [stdout] --> src/preview.rs:215:43 [INFO] [stdout] | [INFO] [stdout] 215 | (*d2d_device).CreateDeviceContext(D2D1_DEVICE_CONTEXT_OPTIONS_NONE, &mut dc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/preview.rs:221:28 [INFO] [stdout] | [INFO] [stdout] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [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:221:50 [INFO] [stdout] | [INFO] [stdout] 221 | 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] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:221:81 [INFO] [stdout] | [INFO] [stdout] 221 | 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] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:221:99 [INFO] [stdout] | [INFO] [stdout] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ 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:223:36 [INFO] [stdout] | [INFO] [stdout] 223 | let mut dxgi_factory: *mut IDXGIFactory2 = 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 `CreateDXGIFactory2` in this scope [INFO] [stdout] --> src/preview.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | ... hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_fact... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_CREATE_FACTORY_DEBUG` in this scope [INFO] [stdout] --> src/preview.rs:224:59 [INFO] [stdout] | [INFO] [stdout] 224 | ... hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_fact... [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:224:145 [INFO] [stdout] | [INFO] [stdout] 224 | ..., &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 `RECT` in this scope [INFO] [stdout] --> src/preview.rs:226:24 [INFO] [stdout] | [INFO] [stdout] 226 | let mut rect = RECT { left: 0, top: 0, right: 0, bottom: 0 }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/preview.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | GetClientRect(hwnd, &mut rect); [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:229:31 [INFO] [stdout] | [INFO] [stdout] 229 | 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_FORMAT_B8G8R8A8_UNORM` in this scope [INFO] [stdout] --> src/preview.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | Format: DXGI_FORMAT_B8G8R8A8_UNORM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DXGI_SAMPLE_DESC` in this scope [INFO] [stdout] --> src/preview.rs:234:25 [INFO] [stdout] | [INFO] [stdout] 234 | SampleDesc: DXGI_SAMPLE_DESC { Count: 1, Quality: 0, }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_USAGE_RENDER_TARGET_OUTPUT` in this scope [INFO] [stdout] --> src/preview.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 235 | BufferUsage: DXGI_USAGE_RENDER_TARGET_OUTPUT, [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:237:22 [INFO] [stdout] | [INFO] [stdout] 237 | 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:238:25 [INFO] [stdout] | [INFO] [stdout] 238 | 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:239:24 [INFO] [stdout] | [INFO] [stdout] 239 | 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:243:34 [INFO] [stdout] | [INFO] [stdout] 243 | 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 `ID2D1DeviceContext1` in this scope [INFO] [stdout] --> src/preview.rs:252:30 [INFO] [stdout] | [INFO] [stdout] 252 | 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] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:252:72 [INFO] [stdout] | [INFO] [stdout] 252 | 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] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Bitmap1` in this scope [INFO] [stdout] --> src/preview.rs:252:107 [INFO] [stdout] | [INFO] [stdout] 252 | fn create_bitmap(dc: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:252:122 [INFO] [stdout] | [INFO] [stdout] 252 | fn create_bitmap(dc: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ 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:254:35 [INFO] [stdout] | [INFO] [stdout] 254 | 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:255:84 [INFO] [stdout] | [INFO] [stdout] 255 | 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[E0422]: cannot find struct, variant or union type `D2D1_BITMAP_PROPERTIES1` in this scope [INFO] [stdout] --> src/preview.rs:257:26 [INFO] [stdout] | [INFO] [stdout] 257 | let properties = D2D1_BITMAP_PROPERTIES1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_PIXEL_FORMAT` in this scope [INFO] [stdout] --> src/preview.rs:258:26 [INFO] [stdout] | [INFO] [stdout] 258 | pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_FORMAT_B8G8R8A8_UNORM` in this scope [INFO] [stdout] --> src/preview.rs:258:54 [INFO] [stdout] | [INFO] [stdout] 258 | pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_ALPHA_MODE_PREMULTIPLIED` in this scope [INFO] [stdout] --> src/preview.rs:258:93 [INFO] [stdout] | [INFO] [stdout] 258 | pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_BITMAP_OPTIONS_TARGET` in this scope [INFO] [stdout] --> src/preview.rs:261:28 [INFO] [stdout] | [INFO] [stdout] 261 | bitmapOptions: D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_BITMAP_OPTIONS_CANNOT_DRAW` in this scope [INFO] [stdout] --> src/preview.rs:261:57 [INFO] [stdout] | [INFO] [stdout] 261 | bitmapOptions: D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Bitmap1` in this scope [INFO] [stdout] --> src/preview.rs:265:30 [INFO] [stdout] | [INFO] [stdout] 265 | let mut bitmap: *mut ID2D1Bitmap1 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/preview.rs:274:29 [INFO] [stdout] | [INFO] [stdout] 274 | fn create_composition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result src/preview.rs:274:51 [INFO] [stdout] | [INFO] [stdout] 274 | fn create_composition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:274:85 [INFO] [stdout] | [INFO] [stdout] 274 | fn create_composition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionTarget` in this scope [INFO] [stdout] --> src/preview.rs:274:120 [INFO] [stdout] | [INFO] [stdout] 274 | ...osition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:274:142 [INFO] [stdout] | [INFO] [stdout] 274 | ...ion(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionDevice` in this scope [INFO] [stdout] --> src/preview.rs:276:36 [INFO] [stdout] | [INFO] [stdout] 276 | let mut dcomp_device: *mut IDCompositionDevice = 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 `DCompositionCreateDevice` in this scope [INFO] [stdout] --> src/preview.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 277 | hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionDevice` in this scope [INFO] [stdout] --> src/preview.rs:277:106 [INFO] [stdout] | [INFO] [stdout] 277 | hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionTarget` in this scope [INFO] [stdout] --> src/preview.rs:279:30 [INFO] [stdout] | [INFO] [stdout] 279 | let mut target: *mut IDCompositionTarget = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionVisual` in this scope [INFO] [stdout] --> src/preview.rs:282:30 [INFO] [stdout] | [INFO] [stdout] 282 | let mut visual: *mut IDCompositionVisual = 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 `GetCurrentThreadId` in this scope [INFO] [stdout] --> src/main.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | let thread_id = unsafe { GetCurrentThreadId() }; [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:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | 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 `WH_MOUSE_LL` in this scope [INFO] [stdout] --> src/main.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | 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 function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | 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:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | 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:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | 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:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | 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:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | 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:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | 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 `WM_QUIT` in this scope [INFO] [stdout] --> src/main.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | 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:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | 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:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | 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:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | 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:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOSIZE); [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:94:88 [INFO] [stdout] | [INFO] [stdout] 94 | SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOSIZE); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | 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:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ID2D1Factory2` [INFO] [stdout] --> src/preview.rs:203:66 [INFO] [stdout] | [INFO] [stdout] 203 | hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?; [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ID2D1Factory2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IDXGIFactory2` [INFO] [stdout] --> src/preview.rs:224:100 [INFO] [stdout] | [INFO] [stdout] 224 | ...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[E0433]: failed to resolve: use of undeclared type `IDXGISurface2` [INFO] [stdout] --> src/preview.rs:255:40 [INFO] [stdout] | [INFO] [stdout] 255 | 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[E0433]: failed to resolve: use of undeclared type `IDCompositionDevice` [INFO] [stdout] --> src/preview.rs:277:55 [INFO] [stdout] | [INFO] [stdout] 277 | hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `IDCompositionDevice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MSG` [INFO] [stdout] --> src/main.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | let mut msg = MSG::default(); [INFO] [stdout] | ^^^ use of undeclared type `MSG` [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[E0433]: failed to resolve: use of undeclared type `POINT` [INFO] [stdout] --> src/main.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | let mut p = POINT::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `POINT` [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:106:37 [INFO] [stdout] | [INFO] [stdout] 106 | 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 `POINT` [INFO] [stdout] --> src/main.rs:89:26 [INFO] [stdout] | [INFO] [stdout] 89 | let mut pt = POINT::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `POINT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MSG` [INFO] [stdout] --> src/main.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | let mut msg = MSG::default(); [INFO] [stdout] | ^^^ use of undeclared type `MSG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/win.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn hr(code: HRESULT) -> Result<(), HRESULT> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/win.rs:18:40 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn hr(code: HRESULT) -> 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] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win.rs:32:66 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win.rs:32:83 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win.rs:32:94 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [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[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn color_at(hdc: HDC, x: i32, y: i32) -> Color { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `COLORREF` in this scope [INFO] [stdout] --> src/win.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | let color: COLORREF = unsafe { GetPixel(hdc, x, y) }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetPixel` in this scope [INFO] [stdout] --> src/win.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | let color: COLORREF = unsafe { GetPixel(hdc, x, y) }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [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 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[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[E0412]: cannot find type `D3DCOLORVALUE` in this scope [INFO] [stdout] --> src/color.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | impl From for D3DCOLORVALUE { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D3DCOLORVALUE` in this scope [INFO] [stdout] --> src/color.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | D3DCOLORVALUE { r, g, b, a: 1.0 } [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D3DCOLORVALUE` in this scope [INFO] [stdout] --> src/color.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | impl From for Color { [INFO] [stdout] | - ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D3DCOLORVALUE` in this scope [INFO] [stdout] --> src/color.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | fn from(color: D3DCOLORVALUE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/preview.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | pub hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope [INFO] [stdout] --> src/preview.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 33 | pub hwnd: HWND, [INFO] [stdout] 34 | context: ComPtr, [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] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 35 | swap_chain: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionTarget` in this scope [INFO] [stdout] --> src/preview.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 36 | _target: ComPtr, [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:37:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 37 | brush: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope [INFO] [stdout] --> src/preview.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 38 | ellipse: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope [INFO] [stdout] --> src/preview.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Preview { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 39 | stroke: ComPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:58:31 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn draw(&mut self) -> HRESULT { [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:68:28 [INFO] [stdout] | [INFO] [stdout] 68 | let negative = D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 1.0 }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/preview.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe extern "system" fn window_proc(hwnd: HWND, msg: u32, wparam: usize, lparam: isize) -> LRESULT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/preview.rs:82:94 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe extern "system" fn window_proc(hwnd: HWND, msg: u32, wparam: usize, lparam: isize) -> LRESULT { [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:83:40 [INFO] [stdout] | [INFO] [stdout] 83 | 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[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/preview.rs:87:26 [INFO] [stdout] | [INFO] [stdout] 87 | let ps: *mut PAINTSTRUCT = 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 `BeginPaint` in this scope [INFO] [stdout] --> src/preview.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | 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:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | 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:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | 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:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | return DefWindowProcW(hwnd, msg, wparam, lparam); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/preview.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | let hwnd: HWND; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/preview.rs:111:25 [INFO] [stdout] | [INFO] [stdout] 111 | let hinstance = GetModuleHandleW(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:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | let wnd_class = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [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:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | 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:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | 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:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | hwnd = CreateWindowExW( [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:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | 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:127:41 [INFO] [stdout] | [INFO] [stdout] 127 | 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:127:60 [INFO] [stdout] | [INFO] [stdout] 127 | 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:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | 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:130:24 [INFO] [stdout] | [INFO] [stdout] 130 | 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:153:29 [INFO] [stdout] | [INFO] [stdout] 153 | 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:154:43 [INFO] [stdout] | [INFO] [stdout] 154 | (*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:154:117 [INFO] [stdout] | [INFO] [stdout] 154 | (*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:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | let center = D2D1_POINT_2F { x: radius + 2.0, y: radius + 2.0 }; [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:158:23 [INFO] [stdout] | [INFO] [stdout] 158 | 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:160:40 [INFO] [stdout] | [INFO] [stdout] 160 | let mut ellipse_geometry: *mut ID2D1EllipseGeometry = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope [INFO] [stdout] --> src/preview.rs:163:43 [INFO] [stdout] | [INFO] [stdout] 163 | let mut ellipse_realization: *mut ID2D1GeometryRealization = 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:164:75 [INFO] [stdout] | [INFO] [stdout] 164 | (*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[E0412]: cannot find type `ID2D1GeometryRealization` in this scope [INFO] [stdout] --> src/preview.rs:166:42 [INFO] [stdout] | [INFO] [stdout] 166 | let mut stroke_realization: *mut ID2D1GeometryRealization = 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:167:76 [INFO] [stdout] | [INFO] [stdout] 167 | ... (*context).CreateStrokedGeometryRealization(ellipse_geometry as _, D2D1_DEFAULT_FLATTENING_TOLERANCE, 0.75, 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:183:42 [INFO] [stdout] | [INFO] [stdout] 183 | 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] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:183:56 [INFO] [stdout] | [INFO] [stdout] 183 | 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] [INFO] [stdout] error[E0412]: cannot find type `ID3D11Device` in this scope [INFO] [stdout] --> src/preview.rs:185:30 [INFO] [stdout] | [INFO] [stdout] 185 | let mut device: *mut ID3D11Device = 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 `D3D11CreateDevice` in this scope [INFO] [stdout] --> src/preview.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | ... hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSI... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D3D_DRIVER_TYPE_HARDWARE` in this scope [INFO] [stdout] --> src/preview.rs:186:42 [INFO] [stdout] | [INFO] [stdout] 186 | ... hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSI... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D3D11_CREATE_DEVICE_BGRA_SUPPORT` in this scope [INFO] [stdout] --> src/preview.rs:186:80 [INFO] [stdout] | [INFO] [stdout] 186 | ... hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSI... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D3D11_SDK_VERSION` in this scope [INFO] [stdout] --> src/preview.rs:186:125 [INFO] [stdout] | [INFO] [stdout] 186 | ... D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSION, &mut device, null_mut(), null_mut()))?; [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:189:41 [INFO] [stdout] | [INFO] [stdout] 183 | fn create_dxgi_device() -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 189 | let dxgi_device = device.cast::()?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory2` in this scope [INFO] [stdout] --> src/preview.rs:195:38 [INFO] [stdout] | [INFO] [stdout] 195 | fn create_factory() -> 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] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:195:54 [INFO] [stdout] | [INFO] [stdout] 195 | fn create_factory() -> 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] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory2` in this scope [INFO] [stdout] --> src/preview.rs:196:31 [INFO] [stdout] | [INFO] [stdout] 196 | let mut d2d_factory: *mut ID2D1Factory2 = 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_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/preview.rs:198:19 [INFO] [stdout] | [INFO] [stdout] 198 | 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:199:49 [INFO] [stdout] | [INFO] [stdout] 199 | 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 function, tuple struct or tuple variant `D2D1CreateFactory` in this scope [INFO] [stdout] --> src/preview.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | 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[E0425]: cannot find value `D2D1_FACTORY_TYPE_SINGLE_THREADED` in this scope [INFO] [stdout] --> src/preview.rs:203:30 [INFO] [stdout] | [INFO] [stdout] 203 | 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 `ID2D1Factory2` in this scope [INFO] [stdout] --> src/preview.rs:203:120 [INFO] [stdout] | [INFO] [stdout] 203 | 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:209:47 [INFO] [stdout] | [INFO] [stdout] 209 | 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] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory2` in this scope [INFO] [stdout] --> src/preview.rs:209:78 [INFO] [stdout] | [INFO] [stdout] 209 | 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] [INFO] [stdout] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope [INFO] [stdout] --> src/preview.rs:209:111 [INFO] [stdout] | [INFO] [stdout] 209 | ...ice_context(dxgi_device: &ComPtr, factory: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:209:133 [INFO] [stdout] | [INFO] [stdout] 209 | ...context(dxgi_device: &ComPtr, factory: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Device1` in this scope [INFO] [stdout] --> src/preview.rs:211:34 [INFO] [stdout] | [INFO] [stdout] 211 | let mut d2d_device: *mut ID2D1Device1 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope [INFO] [stdout] --> src/preview.rs:214:26 [INFO] [stdout] | [INFO] [stdout] 214 | let mut dc: *mut ID2D1DeviceContext1 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 184 previous errors [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 value `D2D1_DEVICE_CONTEXT_OPTIONS_NONE` in this scope [INFO] [stdout] --> src/preview.rs:215:43 [INFO] [stdout] | [INFO] [stdout] 215 | (*d2d_device).CreateDeviceContext(D2D1_DEVICE_CONTEXT_OPTIONS_NONE, &mut dc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/preview.rs:221:28 [INFO] [stdout] | [INFO] [stdout] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [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:221:50 [INFO] [stdout] | [INFO] [stdout] 221 | 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] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:221:81 [INFO] [stdout] | [INFO] [stdout] 221 | 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] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:221:99 [INFO] [stdout] | [INFO] [stdout] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ 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:223:36 [INFO] [stdout] | [INFO] [stdout] 223 | let mut dxgi_factory: *mut IDXGIFactory2 = 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 `CreateDXGIFactory2` in this scope [INFO] [stdout] --> src/preview.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | ... hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_fact... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_CREATE_FACTORY_DEBUG` in this scope [INFO] [stdout] --> src/preview.rs:224:59 [INFO] [stdout] | [INFO] [stdout] 224 | ... hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_fact... [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:224:145 [INFO] [stdout] | [INFO] [stdout] 224 | ..., &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 `RECT` in this scope [INFO] [stdout] --> src/preview.rs:226:24 [INFO] [stdout] | [INFO] [stdout] 226 | let mut rect = RECT { left: 0, top: 0, right: 0, bottom: 0 }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/preview.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | GetClientRect(hwnd, &mut rect); [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:229:31 [INFO] [stdout] | [INFO] [stdout] 229 | 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_FORMAT_B8G8R8A8_UNORM` in this scope [INFO] [stdout] --> src/preview.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | Format: DXGI_FORMAT_B8G8R8A8_UNORM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DXGI_SAMPLE_DESC` in this scope [INFO] [stdout] --> src/preview.rs:234:25 [INFO] [stdout] | [INFO] [stdout] 234 | SampleDesc: DXGI_SAMPLE_DESC { Count: 1, Quality: 0, }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_USAGE_RENDER_TARGET_OUTPUT` in this scope [INFO] [stdout] --> src/preview.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 235 | BufferUsage: DXGI_USAGE_RENDER_TARGET_OUTPUT, [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:237:22 [INFO] [stdout] | [INFO] [stdout] 237 | 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:238:25 [INFO] [stdout] | [INFO] [stdout] 238 | 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:239:24 [INFO] [stdout] | [INFO] [stdout] 239 | 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:243:34 [INFO] [stdout] | [INFO] [stdout] 243 | 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 `ID2D1DeviceContext1` in this scope [INFO] [stdout] --> src/preview.rs:252:30 [INFO] [stdout] | [INFO] [stdout] 252 | 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] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:252:72 [INFO] [stdout] | [INFO] [stdout] 252 | 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] [INFO] [stderr] error: could not compile `wcolor` [INFO] [stdout] error[E0412]: cannot find type `ID2D1Bitmap1` in this scope [INFO] [stdout] --> src/preview.rs:252:107 [INFO] [stdout] | [INFO] [stdout] 252 | fn create_bitmap(dc: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:252:122 [INFO] [stdout] | [INFO] [stdout] 252 | fn create_bitmap(dc: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] error[E0412]: cannot find type `IDXGISurface2` in this scope [INFO] [stdout] --> src/preview.rs:254:35 [INFO] [stdout] | [INFO] [stdout] 254 | let mut dxgi_buffer: *mut IDXGISurface2 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `IDXGISurface2` in this scope [INFO] [stdout] --> src/preview.rs:255:84 [INFO] [stdout] | [INFO] [stdout] 255 | 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[E0422]: cannot find struct, variant or union type `D2D1_BITMAP_PROPERTIES1` in this scope [INFO] [stdout] --> src/preview.rs:257:26 [INFO] [stdout] | [INFO] [stdout] 257 | let properties = D2D1_BITMAP_PROPERTIES1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_PIXEL_FORMAT` in this scope [INFO] [stdout] --> src/preview.rs:258:26 [INFO] [stdout] | [INFO] [stdout] 258 | pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_FORMAT_B8G8R8A8_UNORM` in this scope [INFO] [stdout] --> src/preview.rs:258:54 [INFO] [stdout] | [INFO] [stdout] 258 | pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_ALPHA_MODE_PREMULTIPLIED` in this scope [INFO] [stdout] --> src/preview.rs:258:93 [INFO] [stdout] | [INFO] [stdout] 258 | pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_BITMAP_OPTIONS_TARGET` in this scope [INFO] [stdout] --> src/preview.rs:261:28 [INFO] [stdout] | [INFO] [stdout] 261 | bitmapOptions: D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_BITMAP_OPTIONS_CANNOT_DRAW` in this scope [INFO] [stdout] --> src/preview.rs:261:57 [INFO] [stdout] | [INFO] [stdout] 261 | bitmapOptions: D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Bitmap1` in this scope [INFO] [stdout] --> src/preview.rs:265:30 [INFO] [stdout] | [INFO] [stdout] 265 | let mut bitmap: *mut ID2D1Bitmap1 = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/preview.rs:274:29 [INFO] [stdout] | [INFO] [stdout] 274 | fn create_composition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result src/preview.rs:274:51 [INFO] [stdout] | [INFO] [stdout] 274 | fn create_composition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDXGISwapChain1` in this scope [INFO] [stdout] --> src/preview.rs:274:85 [INFO] [stdout] | [INFO] [stdout] 274 | fn create_composition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionTarget` in this scope [INFO] [stdout] --> src/preview.rs:274:120 [INFO] [stdout] | [INFO] [stdout] 274 | ...osition(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/preview.rs:274:142 [INFO] [stdout] | [INFO] [stdout] 274 | ...ion(hwnd: HWND, device: &ComPtr, swap_chain: &ComPtr) -> Result, HRESULT> { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionDevice` in this scope [INFO] [stdout] --> src/preview.rs:276:36 [INFO] [stdout] | [INFO] [stdout] 276 | let mut dcomp_device: *mut IDCompositionDevice = 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 `DCompositionCreateDevice` in this scope [INFO] [stdout] --> src/preview.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 277 | hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionDevice` in this scope [INFO] [stdout] --> src/preview.rs:277:106 [INFO] [stdout] | [INFO] [stdout] 277 | hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionTarget` in this scope [INFO] [stdout] --> src/preview.rs:279:30 [INFO] [stdout] | [INFO] [stdout] 279 | let mut target: *mut IDCompositionTarget = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDCompositionVisual` in this scope [INFO] [stdout] --> src/preview.rs:282:30 [INFO] [stdout] | [INFO] [stdout] 282 | let mut visual: *mut IDCompositionVisual = 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 `GetCurrentThreadId` in this scope [INFO] [stdout] --> src/main.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | let thread_id = unsafe { GetCurrentThreadId() }; [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:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | 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 `WH_MOUSE_LL` in this scope [INFO] [stdout] --> src/main.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | 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 function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | 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:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | 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:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | 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:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | 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:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | 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:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | 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 `WM_QUIT` in this scope [INFO] [stdout] --> src/main.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | 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:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | 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:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | 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:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | 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:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOSIZE); [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:94:88 [INFO] [stdout] | [INFO] [stdout] 94 | SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOSIZE); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | 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:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | 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/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[E0599]: no method named `to_wide_null` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/preview.rs:106:37 [INFO] [stdout] | [INFO] [stdout] 106 | let name = OsStr::new("wcolor").to_wide_null(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 184 previous errors [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: build failed [INFO] running `Command { std: "docker" "inspect" "12925b22b3f93d4bf94510637b512b951a7ab3a1005c78d4e06d4faf2783c60e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12925b22b3f93d4bf94510637b512b951a7ab3a1005c78d4e06d4faf2783c60e", kill_on_drop: false }` [INFO] [stdout] 12925b22b3f93d4bf94510637b512b951a7ab3a1005c78d4e06d4faf2783c60e