[INFO] cloning repository https://github.com/hummingly/rust-directwrite-multiformatted_text_example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hummingly/rust-directwrite-multiformatted_text_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhummingly%2Frust-directwrite-multiformatted_text_example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhummingly%2Frust-directwrite-multiformatted_text_example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 88afbfc99fb42051001ba15bf284360f30821bec [INFO] checking hummingly/rust-directwrite-multiformatted_text_example against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhummingly%2Frust-directwrite-multiformatted_text_example" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hummingly/rust-directwrite-multiformatted_text_example on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hummingly/rust-directwrite-multiformatted_text_example [INFO] finished tweaking git repo https://github.com/hummingly/rust-directwrite-multiformatted_text_example [INFO] tweaked toml for git repo https://github.com/hummingly/rust-directwrite-multiformatted_text_example written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/hummingly/rust-directwrite-multiformatted_text_example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 55ffefa10faeeea260fadbba45047ae189576a69ab506e2104d07b8e5fe68d0a [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" "55ffefa10faeeea260fadbba45047ae189576a69ab506e2104d07b8e5fe68d0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55ffefa10faeeea260fadbba45047ae189576a69ab506e2104d07b8e5fe68d0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55ffefa10faeeea260fadbba45047ae189576a69ab506e2104d07b8e5fe68d0a", kill_on_drop: false }` [INFO] [stdout] 55ffefa10faeeea260fadbba45047ae189576a69ab506e2104d07b8e5fe68d0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 073dce6d5cbf3499bc97c6deacdae61fb7d7b201724cc12189992d3d880abe9d [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" "073dce6d5cbf3499bc97c6deacdae61fb7d7b201724cc12189992d3d880abe9d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling gdi32-sys v0.2.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling user32-sys v0.2.0 [INFO] [stderr] Checking directwrite v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/utils.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `kernel32::GetLastError`, `kernel32::GetModuleHandleW`, `kernel32::GetProcAddress`, `kernel32::LoadLibraryW` [INFO] [stdout] --> src/utils.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use kernel32::{GetLastError, GetModuleHandleW, GetProcAddress, LoadLibraryW}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `LoadLibraryW` in the root [INFO] [stdout] | | | | [INFO] [stdout] | | | no `GetProcAddress` in the root [INFO] [stdout] | | no `GetModuleHandleW` in the root [INFO] [stdout] | no `GetLastError` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `user32::MessageBoxW` [INFO] [stdout] --> src/utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use user32::MessageBoxW; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `MessageBoxW` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::d2d1` [INFO] [stdout] --> src/utils.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::d2d1::*; [INFO] [stdout] | ^^^^ could not find `d2d1` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::dwrite` [INFO] [stdout] --> src/utils.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::dwrite::*; [INFO] [stdout] | ^^^^^^ could not find `dwrite` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::dcommon` [INFO] [stdout] --> src/utils.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::dcommon::{D2D1_ALPHA_MODE_IGNORE, D2D1_PIXEL_FORMAT}; [INFO] [stdout] | ^^^^^^^ could not find `dcommon` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::dxgiformat` [INFO] [stdout] --> src/utils.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::dxgiformat::DXGI_FORMAT; [INFO] [stdout] | ^^^^^^^^^^ could not find `dxgiformat` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::c_void` [INFO] [stdout] --> src/utils.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::c_void; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `c_void` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::guiddef` [INFO] [stdout] --> src/utils.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::guiddef::{IID, REFIID}; [INFO] [stdout] | ^^^^^^^ could not find `guiddef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/utils.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::minwindef::HMODULE; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::unknwnbase` [INFO] [stdout] --> src/utils.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::unknwnbase::IUnknown; [INFO] [stdout] | ^^^^^^^^^^ could not find `unknwnbase` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/utils.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::windef::{POINT, RECT}; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winerror` [INFO] [stdout] --> src/utils.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::winerror::HRESULT; [INFO] [stdout] | ^^^^^^^^ could not find `winerror` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/utils.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::winuser::{MB_OK, MSG, PAINTSTRUCT}; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gdi32::GetDeviceCaps` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use gdi32::GetDeviceCaps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no `GetDeviceCaps` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/utils.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `kernel32::GetLastError`, `kernel32::GetModuleHandleW`, `kernel32::GetProcAddress`, `kernel32::LoadLibraryW` [INFO] [stdout] --> src/utils.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use kernel32::{GetLastError, GetModuleHandleW, GetProcAddress, LoadLibraryW}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `LoadLibraryW` in the root [INFO] [stdout] | | | | [INFO] [stdout] | | | no `GetProcAddress` in the root [INFO] [stdout] | | no `GetModuleHandleW` in the root [INFO] [stdout] | no `GetLastError` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `user32::MessageBoxW` [INFO] [stdout] --> src/utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use user32::MessageBoxW; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `MessageBoxW` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::d2d1` [INFO] [stdout] --> src/utils.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::d2d1::*; [INFO] [stdout] | ^^^^ could not find `d2d1` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::dwrite` [INFO] [stdout] --> src/utils.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::dwrite::*; [INFO] [stdout] | ^^^^^^ could not find `dwrite` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::dcommon` [INFO] [stdout] --> src/utils.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::dcommon::{D2D1_ALPHA_MODE_IGNORE, D2D1_PIXEL_FORMAT}; [INFO] [stdout] | ^^^^^^^ could not find `dcommon` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::dxgiformat` [INFO] [stdout] --> src/utils.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::dxgiformat::DXGI_FORMAT; [INFO] [stdout] | ^^^^^^^^^^ could not find `dxgiformat` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::c_void` [INFO] [stdout] --> src/utils.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::c_void; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `c_void` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::guiddef` [INFO] [stdout] --> src/utils.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::guiddef::{IID, REFIID}; [INFO] [stdout] | ^^^^^^^ could not find `guiddef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/utils.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::minwindef::HMODULE; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::unknwnbase` [INFO] [stdout] --> src/utils.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::unknwnbase::IUnknown; [INFO] [stdout] | ^^^^^^^^^^ could not find `unknwnbase` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/utils.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::windef::{POINT, RECT}; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winerror` [INFO] [stdout] --> src/utils.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::winerror::HRESULT; [INFO] [stdout] | ^^^^^^^^ could not find `winerror` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/utils.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::winuser::{MB_OK, MSG, PAINTSTRUCT}; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gdi32::GetDeviceCaps` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use gdi32::GetDeviceCaps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no `GetDeviceCaps` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_FACTORY_TYPE` in this scope [INFO] [stdout] --> src/utils.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | factoryType: D2D1_FACTORY_TYPE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/utils.rs:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | pFactoryOptions: *const D2D1_FACTORY_OPTIONS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWRITE_FACTORY_TYPE` in this scope [INFO] [stdout] --> src/utils.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | factoryType: DWRITE_FACTORY_TYPE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_FACTORY_TYPE` in this scope [INFO] [stdout] --> src/utils.rs:103:19 [INFO] [stdout] | [INFO] [stdout] 103 | factory_type: D2D1_FACTORY_TYPE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/utils.rs:105:31 [INFO] [stdout] | [INFO] [stdout] 105 | p_factory_options: *const D2D1_FACTORY_OPTIONS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWRITE_FACTORY_TYPE` in this scope [INFO] [stdout] --> src/utils.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | factory_type: DWRITE_FACTORY_TYPE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/utils.rs:171:20 [INFO] [stdout] | [INFO] [stdout] 171 | impl WinStruct for D2D1_RENDER_TARGET_PROPERTIES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/utils.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | D2D1_RENDER_TARGET_PROPERTIES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_RENDER_TARGET_TYPE_DEFAULT` in this scope [INFO] [stdout] --> src/utils.rs:174:20 [INFO] [stdout] | [INFO] [stdout] 174 | _type: D2D1_RENDER_TARGET_TYPE_DEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE` in this scope [INFO] [stdout] --> src/utils.rs:178:20 [INFO] [stdout] | [INFO] [stdout] 178 | usage: D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_FEATURE_LEVEL_DEFAULT` in this scope [INFO] [stdout] --> src/utils.rs:179:23 [INFO] [stdout] | [INFO] [stdout] 179 | minLevel: D2D1_FEATURE_LEVEL_DEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stdout] --> src/utils.rs:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | impl WinStruct for D2D1_MATRIX_3X2_F { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stdout] --> src/utils.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | D2D1_MATRIX_3X2_F { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_POINT_2F` in this scope [INFO] [stdout] --> src/utils.rs:201:20 [INFO] [stdout] | [INFO] [stdout] 201 | impl WinStruct for D2D1_POINT_2F { [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/utils.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | D2D1_POINT_2F { x: 0.0, y: 0.0 } [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_COLOR_F` in this scope [INFO] [stdout] --> src/utils.rs:211:16 [INFO] [stdout] | [INFO] [stdout] 211 | impl Brush for D2D1_COLOR_F { [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/utils.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | D2D1_COLOR_F { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | hwnd: HWND, [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/main.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | brush: *mut ID2D1SolidColorBrush, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stdout] --> src/main.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | render_target: *mut ID2D1HwndRenderTarget, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stdout] --> src/main.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | d2d1_factory: *mut ID2D1Factory, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteFactory` in this scope [INFO] [stdout] --> src/main.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | dwrite_factory: *mut IDWriteFactory, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTextFormat` in this scope [INFO] [stdout] --> src/main.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | text_format: *mut IDWriteTextFormat, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTextLayout` in this scope [INFO] [stdout] --> src/main.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | text_layout: *mut IDWriteTextLayout, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/main.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | let mut d2_factory: *mut c_void = null_mut(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 7 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/main.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | let factory_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_NONE` in this scope [INFO] [stdout] --> src/main.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | debugLevel: D2D1_DEBUG_LEVEL_NONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_MULTI_THREADED` in this scope [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | D2D1_FACTORY_TYPE_MULTI_THREADED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UuidOfID2D1Factory` in this scope [INFO] [stdout] --> src/main.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | &UuidOfID2D1Factory, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UuidOfIDWriteFactory` [INFO] [stdout] | [INFO] [stdout] ::: src/utils.rs:122:1 [INFO] [stdout] | [INFO] [stdout] 122 | pub const UuidOfIDWriteFactory: IID = IID { [INFO] [stdout] | ----------------------------------------- similarly named constant `UuidOfIDWriteFactory` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/main.rs:57:40 [INFO] [stdout] | [INFO] [stdout] 57 | &factory_options as *const D2D1_FACTORY_OPTIONS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | if d2d1_factory != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stdout] --> src/main.rs:64:51 [INFO] [stdout] | [INFO] [stdout] 64 | app.d2d1_factory = d2_factory as *mut ID2D1Factory; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IUnknown` in this scope [INFO] [stdout] --> src/main.rs:67:34 [INFO] [stdout] | [INFO] [stdout] 67 | let mut dw_factory: *mut IUnknown = null_mut(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_FACTORY_TYPE_SHARED` in this scope [INFO] [stdout] --> src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | DWRITE_FACTORY_TYPE_SHARED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | if dwrite_factory != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteFactory` in this scope [INFO] [stdout] --> src/main.rs:78:53 [INFO] [stdout] | [INFO] [stdout] 78 | app.dwrite_factory = dw_factory as *mut IDWriteFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteFactory` in this scope [INFO] [stdout] --> src/main.rs:85:34 [INFO] [stdout] | [INFO] [stdout] 85 | let dwrite_factory: &mut IDWriteFactory = &mut *app.dwrite_factory; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_WEIGHT_REGULAR` in this scope [INFO] [stdout] --> src/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | DWRITE_FONT_WEIGHT_REGULAR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_STYLE_NORMAL` in this scope [INFO] [stdout] --> src/main.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | DWRITE_FONT_STYLE_NORMAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_STRETCH_NORMAL` in this scope [INFO] [stdout] --> src/main.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | DWRITE_FONT_STRETCH_NORMAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | ) != S_OK [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTextFormat` in this scope [INFO] [stdout] --> src/main.rs:101:31 [INFO] [stdout] | [INFO] [stdout] 101 | let text_format: &mut IDWriteTextFormat = &mut *app.text_format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_TEXT_ALIGNMENT_CENTER` in this scope [INFO] [stdout] --> src/main.rs:103:41 [INFO] [stdout] | [INFO] [stdout] 103 | if text_format.SetTextAlignment(DWRITE_TEXT_ALIGNMENT_CENTER) != S_OK { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:103:74 [INFO] [stdout] | [INFO] [stdout] 103 | if text_format.SetTextAlignment(DWRITE_TEXT_ALIGNMENT_CENTER) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_PARAGRAPH_ALIGNMENT_CENTER` in this scope [INFO] [stdout] --> src/main.rs:107:46 [INFO] [stdout] | [INFO] [stdout] 107 | if text_format.SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT_CENTER) != S_OK { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:107:84 [INFO] [stdout] | [INFO] [stdout] 107 | if text_format.SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT_CENTER) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:111:23 [INFO] [stdout] | [INFO] [stdout] 111 | let mut rect: RECT = WinStruct::default(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:112:51 [INFO] [stdout] | [INFO] [stdout] 112 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | ) != S_OK [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTextLayout` in this scope [INFO] [stdout] --> src/main.rs:129:31 [INFO] [stdout] | [INFO] [stdout] 129 | let text_layout: &mut IDWriteTextLayout = &mut *app.text_layout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DWRITE_TEXT_RANGE` in this scope [INFO] [stdout] --> src/main.rs:131:27 [INFO] [stdout] | [INFO] [stdout] 131 | let text_range1 = DWRITE_TEXT_RANGE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DWRITE_TEXT_RANGE` in this scope [INFO] [stdout] --> src/main.rs:135:27 [INFO] [stdout] | [INFO] [stdout] 135 | let text_range2 = DWRITE_TEXT_RANGE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DWRITE_TEXT_RANGE` in this scope [INFO] [stdout] --> src/main.rs:139:30 [INFO] [stdout] | [INFO] [stdout] 139 | let text_range_all = DWRITE_TEXT_RANGE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:144:59 [INFO] [stdout] | [INFO] [stdout] 144 | if text_layout.SetFontSize(100.0, text_range1) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/main.rs:148:37 [INFO] [stdout] | [INFO] [stdout] 148 | if text_layout.SetUnderline(TRUE, text_range2) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:148:59 [INFO] [stdout] | [INFO] [stdout] 148 | if text_layout.SetUnderline(TRUE, text_range2) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_WEIGHT_BOLD` in this scope [INFO] [stdout] --> src/main.rs:152:38 [INFO] [stdout] | [INFO] [stdout] 152 | if text_layout.SetFontWeight(DWRITE_FONT_WEIGHT_BOLD, text_range2) != S_OK { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:152:79 [INFO] [stdout] | [INFO] [stdout] 152 | if text_layout.SetFontWeight(DWRITE_FONT_WEIGHT_BOLD, text_range2) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTypography` in this scope [INFO] [stdout] --> src/main.rs:156:38 [INFO] [stdout] | [INFO] [stdout] 156 | let mut typography_ptr: *mut IDWriteTypography = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:158:68 [INFO] [stdout] | [INFO] [stdout] 158 | if dwrite_factory.CreateTypography(&mut typography_ptr) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DWRITE_FONT_FEATURE` in this scope [INFO] [stdout] --> src/main.rs:162:28 [INFO] [stdout] | [INFO] [stdout] 162 | let font_feature = DWRITE_FONT_FEATURE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DWRITE_FONT_FEATURE_TAG` in this scope [INFO] [stdout] --> src/main.rs:163:22 [INFO] [stdout] | [INFO] [stdout] 163 | nameTag: DWRITE_FONT_FEATURE_TAG(0x3730_7373), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTypography` in this scope [INFO] [stdout] --> src/main.rs:167:30 [INFO] [stdout] | [INFO] [stdout] 167 | let typography: &mut IDWriteTypography = &mut *typography_ptr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:169:55 [INFO] [stdout] | [INFO] [stdout] 169 | if typography.AddFontFeature(font_feature) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:173:73 [INFO] [stdout] | [INFO] [stdout] 173 | if text_layout.SetTypography(typography_ptr, text_range_all) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:184:27 [INFO] [stdout] | [INFO] [stdout] 184 | let mut rect: RECT = WinStruct::default(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/main.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:186:55 [INFO] [stdout] | [INFO] [stdout] 186 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_U` in this scope [INFO] [stdout] --> src/main.rs:188:28 [INFO] [stdout] | [INFO] [stdout] 188 | let d2d_rect = D2D1_SIZE_U { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/main.rs:193:36 [INFO] [stdout] | [INFO] [stdout] 193 | let render_properties: D2D1_RENDER_TARGET_PROPERTIES = WinStruct::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_HWND_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/main.rs:195:42 [INFO] [stdout] | [INFO] [stdout] 195 | let hwnd_render_properties = D2D1_HWND_RENDER_TARGET_PROPERTIES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_PRESENT_OPTIONS_NONE` in this scope [INFO] [stdout] --> src/main.rs:198:33 [INFO] [stdout] | [INFO] [stdout] 198 | presentOptions: D2D1_PRESENT_OPTIONS_NONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stdout] --> src/main.rs:201:31 [INFO] [stdout] | [INFO] [stdout] 201 | let factory: &mut ID2D1Factory = &mut *app.d2d1_factory; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:207:18 [INFO] [stdout] | [INFO] [stdout] 207 | ) != S_OK [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stdout] --> src/main.rs:212:37 [INFO] [stdout] | [INFO] [stdout] 212 | let render_target: &mut ID2D1HwndRenderTarget = &mut *app.render_target; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:216:87 [INFO] [stdout] | [INFO] [stdout] 216 | if render_target.CreateSolidColorBrush(&black, null(), &mut app.brush) != S_OK { [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/main.rs:224:80 [INFO] [stdout] | [INFO] [stdout] 224 | fn on_paint(app: &mut MultiFormatsText, dpi_scale_x: i32, dpi_scale_y: i32) -> HRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stdout] --> src/main.rs:226:26 [INFO] [stdout] | [INFO] [stdout] 226 | let d2d1_matrix: D2D1_MATRIX_3X2_F = WinStruct::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | let mut rect: RECT = WinStruct::default(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/main.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:228:51 [INFO] [stdout] | [INFO] [stdout] 228 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [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/main.rs:230:22 [INFO] [stdout] | [INFO] [stdout] 230 | let origin = D2D1_POINT_2F { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Brush` in this scope [INFO] [stdout] --> src/main.rs:247:38 [INFO] [stdout] | [INFO] [stdout] 247 | &mut **app.brush as *mut ID2D1Brush, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_DRAW_TEXT_OPTIONS_NONE` in this scope [INFO] [stdout] --> src/main.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | D2D1_DRAW_TEXT_OPTIONS_NONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:291:11 [INFO] [stdout] | [INFO] [stdout] 291 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT32` in this scope [INFO] [stdout] --> src/main.rs:292:14 [INFO] [stdout] | [INFO] [stdout] 292 | message: UINT32, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/main.rs:293:13 [INFO] [stdout] | [INFO] [stdout] 293 | wparam: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/main.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | lparam: LPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/main.rs:295:6 [INFO] [stdout] | [INFO] [stdout] 295 | ) -> LRESULT { [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:296:18 [INFO] [stdout] | [INFO] [stdout] 296 | let screen = GetDC(null_mut()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOGPIXELSX` in this scope [INFO] [stdout] --> src/main.rs:297:45 [INFO] [stdout] | [INFO] [stdout] 297 | let dpi_scale_x = GetDeviceCaps(screen, LOGPIXELSX) / 96; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOGPIXELSY` in this scope [INFO] [stdout] --> src/main.rs:298:45 [INFO] [stdout] | [INFO] [stdout] 298 | let dpi_scale_y = GetDeviceCaps(screen, LOGPIXELSY) / 96; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope [INFO] [stdout] --> src/main.rs:300:19 [INFO] [stdout] | [INFO] [stdout] 300 | let app_ptr = GetWindowLongPtrW(hwnd, 0) as *mut MultiFormatsText; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2DERR_RECREATE_TARGET` in this scope [INFO] [stdout] --> src/main.rs:305:59 [INFO] [stdout] | [INFO] [stdout] 305 | if on_paint(app, dpi_scale_x, dpi_scale_y) == D2DERR_RECREATE_TARGET { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GET_X_LPARAM` in this scope [INFO] [stdout] --> src/main.rs:311:25 [INFO] [stdout] | [INFO] [stdout] 311 | let width = GET_X_LPARAM(lparam); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_FACTORY_TYPE` in this scope [INFO] [stdout] --> src/utils.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | factoryType: D2D1_FACTORY_TYPE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/utils.rs:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | pFactoryOptions: *const D2D1_FACTORY_OPTIONS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GET_Y_LPARAM` in this scope [INFO] [stdout] --> src/main.rs:312:26 [INFO] [stdout] | [INFO] [stdout] 312 | let height = GET_Y_LPARAM(lparam); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWRITE_FACTORY_TYPE` in this scope [INFO] [stdout] --> src/utils.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | factoryType: DWRITE_FACTORY_TYPE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_FACTORY_TYPE` in this scope [INFO] [stdout] --> src/utils.rs:103:19 [INFO] [stdout] | [INFO] [stdout] 103 | factory_type: D2D1_FACTORY_TYPE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope [INFO] [stdout] --> src/main.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | let render_size = D2D_SIZE_U { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/utils.rs:105:31 [INFO] [stdout] | [INFO] [stdout] 105 | p_factory_options: *const D2D1_FACTORY_OPTIONS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWRITE_FACTORY_TYPE` in this scope [INFO] [stdout] --> src/utils.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | factory_type: DWRITE_FACTORY_TYPE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/utils.rs:171:20 [INFO] [stdout] | [INFO] [stdout] 171 | impl WinStruct for D2D1_RENDER_TARGET_PROPERTIES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/main.rs:333:13 [INFO] [stdout] | [INFO] [stdout] 333 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/utils.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | D2D1_RENDER_TARGET_PROPERTIES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_RENDER_TARGET_TYPE_DEFAULT` in this scope [INFO] [stdout] --> src/utils.rs:174:20 [INFO] [stdout] | [INFO] [stdout] 174 | _type: D2D1_RENDER_TARGET_TYPE_DEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnregisterClassW` in this scope [INFO] [stdout] --> src/main.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | UnregisterClassW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE` in this scope [INFO] [stdout] --> src/utils.rs:178:20 [INFO] [stdout] | [INFO] [stdout] 178 | usage: D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_FEATURE_LEVEL_DEFAULT` in this scope [INFO] [stdout] --> src/utils.rs:179:23 [INFO] [stdout] | [INFO] [stdout] 179 | minLevel: D2D1_FEATURE_LEVEL_DEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/main.rs:339:17 [INFO] [stdout] | [INFO] [stdout] 339 | GetModuleHandleW(null_mut()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stdout] --> src/utils.rs:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | impl WinStruct for D2D1_MATRIX_3X2_F { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stdout] --> src/utils.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | D2D1_MATRIX_3X2_F { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_POINT_2F` in this scope [INFO] [stdout] --> src/utils.rs:201:20 [INFO] [stdout] | [INFO] [stdout] 201 | impl WinStruct for D2D1_POINT_2F { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> src/main.rs:343:14 [INFO] [stdout] | [INFO] [stdout] 343 | _ => DefWindowProcW(hwnd, message, wparam, lparam), [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/utils.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | D2D1_POINT_2F { x: 0.0, y: 0.0 } [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_COLOR_F` in this scope [INFO] [stdout] --> src/utils.rs:211:16 [INFO] [stdout] | [INFO] [stdout] 211 | impl Brush for D2D1_COLOR_F { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/main.rs:351:21 [INFO] [stdout] | [INFO] [stdout] 351 | let wndcl = WNDCLASSEXW { [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/utils.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | D2D1_COLOR_F { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | hwnd: HWND, [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/main.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | brush: *mut ID2D1SolidColorBrush, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stdout] --> src/main.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | render_target: *mut ID2D1HwndRenderTarget, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/main.rs:352:36 [INFO] [stdout] | [INFO] [stdout] 348 | pub fn init_class() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 352 | cbSize: mem::size_of::() as UINT32, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stdout] --> src/main.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | d2d1_factory: *mut ID2D1Factory, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteFactory` in this scope [INFO] [stdout] --> src/main.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | dwrite_factory: *mut IDWriteFactory, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTextFormat` in this scope [INFO] [stdout] --> src/main.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | text_format: *mut IDWriteTextFormat, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT32` in this scope [INFO] [stdout] --> src/main.rs:352:54 [INFO] [stdout] | [INFO] [stdout] 352 | cbSize: mem::size_of::() as UINT32, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTextLayout` in this scope [INFO] [stdout] --> src/main.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | text_layout: *mut IDWriteTextLayout, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/main.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | let mut d2_factory: *mut c_void = null_mut(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 7 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stdout] --> src/main.rs:353:20 [INFO] [stdout] | [INFO] [stdout] 353 | style: CS_HREDRAW | CS_VREDRAW, [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/main.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | let factory_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_NONE` in this scope [INFO] [stdout] --> src/main.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | debugLevel: D2D1_DEBUG_LEVEL_NONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stdout] --> src/main.rs:353:33 [INFO] [stdout] | [INFO] [stdout] 353 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_MULTI_THREADED` in this scope [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | D2D1_FACTORY_TYPE_MULTI_THREADED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INT32` in this scope [INFO] [stdout] --> src/main.rs:356:68 [INFO] [stdout] | [INFO] [stdout] 356 | cbWndExtra: mem::size_of::<*mut MultiFormatsText>() as INT32, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UuidOfID2D1Factory` in this scope [INFO] [stdout] --> src/main.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | &UuidOfID2D1Factory, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UuidOfIDWriteFactory` [INFO] [stdout] | [INFO] [stdout] ::: src/utils.rs:122:1 [INFO] [stdout] | [INFO] [stdout] 122 | pub const UuidOfIDWriteFactory: IID = IID { [INFO] [stdout] | ----------------------------------------- similarly named constant `UuidOfIDWriteFactory` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stdout] --> src/main.rs:57:40 [INFO] [stdout] | [INFO] [stdout] 57 | &factory_options as *const D2D1_FACTORY_OPTIONS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/main.rs:357:24 [INFO] [stdout] | [INFO] [stdout] 357 | hInstance: GetModuleHandleW(null_mut()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | if d2d1_factory != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stdout] --> src/main.rs:64:51 [INFO] [stdout] | [INFO] [stdout] 64 | app.d2d1_factory = d2_factory as *mut ID2D1Factory; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HICON` in this scope [INFO] [stdout] --> src/main.rs:358:25 [INFO] [stdout] | [INFO] [stdout] 358 | hIcon: 0 as HICON, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IUnknown` in this scope [INFO] [stdout] --> src/main.rs:67:34 [INFO] [stdout] | [INFO] [stdout] 67 | let mut dw_factory: *mut IUnknown = null_mut(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_FACTORY_TYPE_SHARED` in this scope [INFO] [stdout] --> src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | DWRITE_FACTORY_TYPE_SHARED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | if dwrite_factory != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in this scope [INFO] [stdout] --> src/main.rs:359:22 [INFO] [stdout] | [INFO] [stdout] 359 | hCursor: LoadCursorW(null_mut(), IDC_ARROW), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteFactory` in this scope [INFO] [stdout] --> src/main.rs:78:53 [INFO] [stdout] | [INFO] [stdout] 78 | app.dwrite_factory = dw_factory as *mut IDWriteFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IDC_ARROW` in this scope [INFO] [stdout] --> src/main.rs:359:46 [INFO] [stdout] | [INFO] [stdout] 359 | hCursor: LoadCursorW(null_mut(), IDC_ARROW), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteFactory` in this scope [INFO] [stdout] --> src/main.rs:85:34 [INFO] [stdout] | [INFO] [stdout] 85 | let dwrite_factory: &mut IDWriteFactory = &mut *app.dwrite_factory; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_WEIGHT_REGULAR` in this scope [INFO] [stdout] --> src/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | DWRITE_FONT_WEIGHT_REGULAR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_STYLE_NORMAL` in this scope [INFO] [stdout] --> src/main.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | DWRITE_FONT_STYLE_NORMAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOWFRAME` in this scope [INFO] [stdout] --> src/main.rs:360:28 [INFO] [stdout] | [INFO] [stdout] 360 | hbrBackground: COLOR_WINDOWFRAME as HBRUSH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_STRETCH_NORMAL` in this scope [INFO] [stdout] --> src/main.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | DWRITE_FONT_STRETCH_NORMAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | ) != S_OK [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/main.rs:360:49 [INFO] [stdout] | [INFO] [stdout] 360 | hbrBackground: COLOR_WINDOWFRAME as HBRUSH, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTextFormat` in this scope [INFO] [stdout] --> src/main.rs:101:31 [INFO] [stdout] | [INFO] [stdout] 101 | let text_format: &mut IDWriteTextFormat = &mut *app.text_format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_TEXT_ALIGNMENT_CENTER` in this scope [INFO] [stdout] --> src/main.rs:103:41 [INFO] [stdout] | [INFO] [stdout] 103 | if text_format.SetTextAlignment(DWRITE_TEXT_ALIGNMENT_CENTER) != S_OK { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HICON` in this scope [INFO] [stdout] --> src/main.rs:363:27 [INFO] [stdout] | [INFO] [stdout] 363 | hIconSm: 0 as HICON, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:103:74 [INFO] [stdout] | [INFO] [stdout] 103 | if text_format.SetTextAlignment(DWRITE_TEXT_ALIGNMENT_CENTER) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stdout] --> src/main.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 366 | if RegisterClassExW(&wndcl) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_PARAGRAPH_ALIGNMENT_CENTER` in this scope [INFO] [stdout] --> src/main.rs:107:46 [INFO] [stdout] | [INFO] [stdout] 107 | if text_format.SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT_CENTER) != S_OK { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:107:84 [INFO] [stdout] | [INFO] [stdout] 107 | if text_format.SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT_CENTER) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/main.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:111:23 [INFO] [stdout] | [INFO] [stdout] 111 | let mut rect: RECT = WinStruct::default(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stdout] --> src/main.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | RegisterClassExW(&wndcl); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:112:51 [INFO] [stdout] | [INFO] [stdout] 112 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | ) != S_OK [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/main.rs:377:20 [INFO] [stdout] | [INFO] [stdout] 377 | let hwnd = CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTextLayout` in this scope [INFO] [stdout] --> src/main.rs:129:31 [INFO] [stdout] | [INFO] [stdout] 129 | let text_layout: &mut IDWriteTextLayout = &mut *app.text_layout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DWRITE_TEXT_RANGE` in this scope [INFO] [stdout] --> src/main.rs:131:27 [INFO] [stdout] | [INFO] [stdout] 131 | let text_range1 = DWRITE_TEXT_RANGE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_COMPOSITED` in this scope [INFO] [stdout] --> src/main.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | WS_EX_COMPOSITED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DWRITE_TEXT_RANGE` in this scope [INFO] [stdout] --> src/main.rs:135:27 [INFO] [stdout] | [INFO] [stdout] 135 | let text_range2 = DWRITE_TEXT_RANGE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DWRITE_TEXT_RANGE` in this scope [INFO] [stdout] --> src/main.rs:139:30 [INFO] [stdout] | [INFO] [stdout] 139 | let text_range_all = DWRITE_TEXT_RANGE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:144:59 [INFO] [stdout] | [INFO] [stdout] 144 | if text_layout.SetFontSize(100.0, text_range1) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stdout] --> src/main.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/main.rs:148:37 [INFO] [stdout] | [INFO] [stdout] 148 | if text_layout.SetUnderline(TRUE, text_range2) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:148:59 [INFO] [stdout] | [INFO] [stdout] 148 | if text_layout.SetUnderline(TRUE, text_range2) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/main.rs:381:35 [INFO] [stdout] | [INFO] [stdout] 381 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_WEIGHT_BOLD` in this scope [INFO] [stdout] --> src/main.rs:152:38 [INFO] [stdout] | [INFO] [stdout] 152 | if text_layout.SetFontWeight(DWRITE_FONT_WEIGHT_BOLD, text_range2) != S_OK { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:152:79 [INFO] [stdout] | [INFO] [stdout] 152 | if text_layout.SetFontWeight(DWRITE_FONT_WEIGHT_BOLD, text_range2) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/main.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | CW_USEDEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTypography` in this scope [INFO] [stdout] --> src/main.rs:156:38 [INFO] [stdout] | [INFO] [stdout] 156 | let mut typography_ptr: *mut IDWriteTypography = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:158:68 [INFO] [stdout] | [INFO] [stdout] 158 | if dwrite_factory.CreateTypography(&mut typography_ptr) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/main.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | CW_USEDEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DWRITE_FONT_FEATURE` in this scope [INFO] [stdout] --> src/main.rs:162:28 [INFO] [stdout] | [INFO] [stdout] 162 | let font_feature = DWRITE_FONT_FEATURE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DWRITE_FONT_FEATURE_TAG` in this scope [INFO] [stdout] --> src/main.rs:163:22 [INFO] [stdout] | [INFO] [stdout] 163 | nameTag: DWRITE_FONT_FEATURE_TAG(0x3730_7373), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/main.rs:388:13 [INFO] [stdout] | [INFO] [stdout] 388 | GetModuleHandleW(null_mut()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IDWriteTypography` in this scope [INFO] [stdout] --> src/main.rs:167:30 [INFO] [stdout] | [INFO] [stdout] 167 | let typography: &mut IDWriteTypography = &mut *typography_ptr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:169:55 [INFO] [stdout] | [INFO] [stdout] 169 | if typography.AddFontFeature(font_feature) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/main.rs:394:13 [INFO] [stdout] | [INFO] [stdout] 394 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:173:73 [INFO] [stdout] | [INFO] [stdout] 173 | if text_layout.SetTypography(typography_ptr, text_range_all) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:184:27 [INFO] [stdout] | [INFO] [stdout] 184 | let mut rect: RECT = WinStruct::default(); [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:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | SetWindowLongPtrW(app.hwnd, 0, app as *mut MultiFormatsText as LONG_PTR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/main.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:186:55 [INFO] [stdout] | [INFO] [stdout] 186 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_U` in this scope [INFO] [stdout] --> src/main.rs:188:28 [INFO] [stdout] | [INFO] [stdout] 188 | let d2d_rect = D2D1_SIZE_U { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stdout] --> src/main.rs:404:72 [INFO] [stdout] | [INFO] [stdout] 404 | SetWindowLongPtrW(app.hwnd, 0, app as *mut MultiFormatsText as LONG_PTR); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/main.rs:193:36 [INFO] [stdout] | [INFO] [stdout] 193 | let render_properties: D2D1_RENDER_TARGET_PROPERTIES = WinStruct::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_HWND_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/main.rs:195:42 [INFO] [stdout] | [INFO] [stdout] 195 | let hwnd_render_properties = D2D1_HWND_RENDER_TARGET_PROPERTIES { [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:423:22 [INFO] [stdout] | [INFO] [stdout] 423 | let screen = GetDC(null_mut()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_PRESENT_OPTIONS_NONE` in this scope [INFO] [stdout] --> src/main.rs:198:33 [INFO] [stdout] | [INFO] [stdout] 198 | presentOptions: D2D1_PRESENT_OPTIONS_NONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stdout] --> src/main.rs:201:31 [INFO] [stdout] | [INFO] [stdout] 201 | let factory: &mut ID2D1Factory = &mut *app.d2d1_factory; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:207:18 [INFO] [stdout] | [INFO] [stdout] 207 | ) != S_OK [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOGPIXELSX` in this scope [INFO] [stdout] --> src/main.rs:424:49 [INFO] [stdout] | [INFO] [stdout] 424 | let dpi_scale_x = GetDeviceCaps(screen, LOGPIXELSX) / 96; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stdout] --> src/main.rs:212:37 [INFO] [stdout] | [INFO] [stdout] 212 | let render_target: &mut ID2D1HwndRenderTarget = &mut *app.render_target; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stdout] --> src/main.rs:216:87 [INFO] [stdout] | [INFO] [stdout] 216 | if render_target.CreateSolidColorBrush(&black, null(), &mut app.brush) != S_OK { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOGPIXELSY` in this scope [INFO] [stdout] --> src/main.rs:425:49 [INFO] [stdout] | [INFO] [stdout] 425 | let dpi_scale_y = GetDeviceCaps(screen, LOGPIXELSY) / 96; [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/main.rs:224:80 [INFO] [stdout] | [INFO] [stdout] 224 | fn on_paint(app: &mut MultiFormatsText, dpi_scale_x: i32, dpi_scale_y: i32) -> HRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stdout] --> src/main.rs:226:26 [INFO] [stdout] | [INFO] [stdout] 226 | let d2d1_matrix: D2D1_MATRIX_3X2_F = WinStruct::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/main.rs:429:22 [INFO] [stdout] | [INFO] [stdout] 429 | let mut msg: MSG = WinStruct::default(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | let mut rect: RECT = WinStruct::default(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/main.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:431:15 [INFO] [stdout] | [INFO] [stdout] 431 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/main.rs:228:51 [INFO] [stdout] | [INFO] [stdout] 228 | GetClientRect(app.hwnd, &mut rect as *mut RECT); [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/main.rs:230:22 [INFO] [stdout] | [INFO] [stdout] 230 | let origin = D2D1_POINT_2F { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/main.rs:431:44 [INFO] [stdout] | [INFO] [stdout] 431 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 0 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Brush` in this scope [INFO] [stdout] --> src/main.rs:247:38 [INFO] [stdout] | [INFO] [stdout] 247 | &mut **app.brush as *mut ID2D1Brush, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_DRAW_TEXT_OPTIONS_NONE` in this scope [INFO] [stdout] --> src/main.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | D2D1_DRAW_TEXT_OPTIONS_NONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:431:54 [INFO] [stdout] | [INFO] [stdout] 431 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 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/main.rs:291:11 [INFO] [stdout] | [INFO] [stdout] 291 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT32` in this scope [INFO] [stdout] --> src/main.rs:292:14 [INFO] [stdout] | [INFO] [stdout] 292 | message: UINT32, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> src/main.rs:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | TranslateMessage(&msg as *const MSG); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/main.rs:293:13 [INFO] [stdout] | [INFO] [stdout] 293 | wparam: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/main.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | lparam: LPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/main.rs:295:6 [INFO] [stdout] | [INFO] [stdout] 295 | ) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/main.rs:432:45 [INFO] [stdout] | [INFO] [stdout] 432 | TranslateMessage(&msg as *const MSG); [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:296:18 [INFO] [stdout] | [INFO] [stdout] 296 | let screen = GetDC(null_mut()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOGPIXELSX` in this scope [INFO] [stdout] --> src/main.rs:297:45 [INFO] [stdout] | [INFO] [stdout] 297 | let dpi_scale_x = GetDeviceCaps(screen, LOGPIXELSX) / 96; [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:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | DispatchMessageW(&msg as *const MSG); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOGPIXELSY` in this scope [INFO] [stdout] --> src/main.rs:298:45 [INFO] [stdout] | [INFO] [stdout] 298 | let dpi_scale_y = GetDeviceCaps(screen, LOGPIXELSY) / 96; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope [INFO] [stdout] --> src/main.rs:300:19 [INFO] [stdout] | [INFO] [stdout] 300 | let app_ptr = GetWindowLongPtrW(hwnd, 0) as *mut MultiFormatsText; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/main.rs:433:45 [INFO] [stdout] | [INFO] [stdout] 433 | DispatchMessageW(&msg as *const MSG); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2DERR_RECREATE_TARGET` in this scope [INFO] [stdout] --> src/main.rs:305:59 [INFO] [stdout] | [INFO] [stdout] 305 | if on_paint(app, dpi_scale_x, dpi_scale_y) == D2DERR_RECREATE_TARGET { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GET_X_LPARAM` in this scope [INFO] [stdout] --> src/main.rs:311:25 [INFO] [stdout] | [INFO] [stdout] 311 | let width = GET_X_LPARAM(lparam); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GET_Y_LPARAM` in this scope [INFO] [stdout] --> src/main.rs:312:26 [INFO] [stdout] | [INFO] [stdout] 312 | let height = GET_Y_LPARAM(lparam); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope [INFO] [stdout] --> src/main.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | let render_size = D2D_SIZE_U { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/main.rs:333:13 [INFO] [stdout] | [INFO] [stdout] 333 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `user32::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use user32::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnregisterClassW` in this scope [INFO] [stdout] --> src/main.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | UnregisterClassW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/main.rs:339:17 [INFO] [stdout] | [INFO] [stdout] 339 | GetModuleHandleW(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 `DefWindowProcW` in this scope [INFO] [stdout] --> src/main.rs:343:14 [INFO] [stdout] | [INFO] [stdout] 343 | _ => DefWindowProcW(hwnd, message, wparam, lparam), [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/main.rs:351:21 [INFO] [stdout] | [INFO] [stdout] 351 | let wndcl = WNDCLASSEXW { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/main.rs:352:36 [INFO] [stdout] | [INFO] [stdout] 348 | pub fn init_class() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 352 | cbSize: mem::size_of::() as UINT32, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT32` in this scope [INFO] [stdout] --> src/main.rs:352:54 [INFO] [stdout] | [INFO] [stdout] 352 | cbSize: mem::size_of::() as UINT32, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stdout] --> src/main.rs:353:20 [INFO] [stdout] | [INFO] [stdout] 353 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stdout] --> src/main.rs:353:33 [INFO] [stdout] | [INFO] [stdout] 353 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INT32` in this scope [INFO] [stdout] --> src/main.rs:356:68 [INFO] [stdout] | [INFO] [stdout] 356 | cbWndExtra: mem::size_of::<*mut MultiFormatsText>() as INT32, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/main.rs:357:24 [INFO] [stdout] | [INFO] [stdout] 357 | hInstance: GetModuleHandleW(null_mut()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HICON` in this scope [INFO] [stdout] --> src/main.rs:358:25 [INFO] [stdout] | [INFO] [stdout] 358 | hIcon: 0 as HICON, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in this scope [INFO] [stdout] --> src/main.rs:359:22 [INFO] [stdout] | [INFO] [stdout] 359 | hCursor: LoadCursorW(null_mut(), IDC_ARROW), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IDC_ARROW` in this scope [INFO] [stdout] --> src/main.rs:359:46 [INFO] [stdout] | [INFO] [stdout] 359 | hCursor: LoadCursorW(null_mut(), IDC_ARROW), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOWFRAME` in this scope [INFO] [stdout] --> src/main.rs:360:28 [INFO] [stdout] | [INFO] [stdout] 360 | hbrBackground: COLOR_WINDOWFRAME as HBRUSH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/main.rs:360:49 [INFO] [stdout] | [INFO] [stdout] 360 | hbrBackground: COLOR_WINDOWFRAME as HBRUSH, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HICON` in this scope [INFO] [stdout] --> src/main.rs:363:27 [INFO] [stdout] | [INFO] [stdout] 363 | hIconSm: 0 as HICON, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stdout] --> src/main.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 366 | if RegisterClassExW(&wndcl) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/main.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | 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 `RegisterClassExW` in this scope [INFO] [stdout] --> src/main.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | RegisterClassExW(&wndcl); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/main.rs:377:20 [INFO] [stdout] | [INFO] [stdout] 377 | let hwnd = CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_COMPOSITED` in this scope [INFO] [stdout] --> src/main.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | WS_EX_COMPOSITED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stdout] --> src/main.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/main.rs:381:35 [INFO] [stdout] | [INFO] [stdout] 381 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/main.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | CW_USEDEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/main.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | CW_USEDEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/main.rs:388:13 [INFO] [stdout] | [INFO] [stdout] 388 | GetModuleHandleW(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 `PostQuitMessage` in this scope [INFO] [stdout] --> src/main.rs:394:13 [INFO] [stdout] | [INFO] [stdout] 394 | 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 `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/main.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | SetWindowLongPtrW(app.hwnd, 0, app as *mut MultiFormatsText as LONG_PTR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stdout] --> src/main.rs:404:72 [INFO] [stdout] | [INFO] [stdout] 404 | SetWindowLongPtrW(app.hwnd, 0, app as *mut MultiFormatsText as LONG_PTR); [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:423:22 [INFO] [stdout] | [INFO] [stdout] 423 | let screen = GetDC(null_mut()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOGPIXELSX` in this scope [INFO] [stdout] --> src/main.rs:424:49 [INFO] [stdout] | [INFO] [stdout] 424 | let dpi_scale_x = GetDeviceCaps(screen, LOGPIXELSX) / 96; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOGPIXELSY` in this scope [INFO] [stdout] --> src/main.rs:425:49 [INFO] [stdout] | [INFO] [stdout] 425 | let dpi_scale_y = GetDeviceCaps(screen, LOGPIXELSY) / 96; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/main.rs:429:22 [INFO] [stdout] | [INFO] [stdout] 429 | let mut msg: MSG = WinStruct::default(); [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:431:15 [INFO] [stdout] | [INFO] [stdout] 431 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/main.rs:431:44 [INFO] [stdout] | [INFO] [stdout] 431 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 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/main.rs:431:54 [INFO] [stdout] | [INFO] [stdout] 431 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 0 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> src/main.rs:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | TranslateMessage(&msg as *const MSG); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/main.rs:432:45 [INFO] [stdout] | [INFO] [stdout] 432 | TranslateMessage(&msg as *const MSG); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> src/main.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | DispatchMessageW(&msg as *const MSG); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/main.rs:433:45 [INFO] [stdout] | [INFO] [stdout] 433 | DispatchMessageW(&msg as *const MSG); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `user32::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use user32::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/utils.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | ffi::OsStr::new(self).encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/utils.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 32 | ffi::OsStr::new(self).encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 156 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `directwrite` [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/utils.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | ffi::OsStr::new(self).encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/utils.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 32 | ffi::OsStr::new(self).encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 156 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "073dce6d5cbf3499bc97c6deacdae61fb7d7b201724cc12189992d3d880abe9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "073dce6d5cbf3499bc97c6deacdae61fb7d7b201724cc12189992d3d880abe9d", kill_on_drop: false }` [INFO] [stdout] 073dce6d5cbf3499bc97c6deacdae61fb7d7b201724cc12189992d3d880abe9d