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