[INFO] updating cached repository https://github.com/jestarray/handmadehero-rust [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/mnt/big/crater/work/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] [stderr] From https://github.com/jestarray/handmadehero-rust [INFO] [stderr] aaa92e4..6c88f49 master -> master [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 6c88f49c01672f95539257840fb3e0fe32f4bab8 [INFO] checking jestarray/handmadehero-rust against master#c9edc02e8320a9e5799d185910ece7d491f524e6 for pr-64398 [INFO] running `"git" "clone" "work/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjestarray%2Fhandmadehero-rust" "work/builds/worker-5/source"` [INFO] [stderr] Cloning into 'work/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jestarray/handmadehero-rust on toolchain c9edc02e8320a9e5799d185910ece7d491f524e6-alt [INFO] running `"/mnt/big/crater/work/cargo-home/bin/cargo" "+c9edc02e8320a9e5799d185910ece7d491f524e6-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/jestarray/handmadehero-rust [INFO] finished tweaking git repo https://github.com/jestarray/handmadehero-rust [INFO] tweaked toml for git repo https://github.com/jestarray/handmadehero-rust written to work/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/jestarray/handmadehero-rust already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/cargo-home/bin/cargo" "+c9edc02e8320a9e5799d185910ece7d491f524e6-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: unused manifest key: lib.src [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/mnt/big/crater/work/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/mnt/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-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" "+c9edc02e8320a9e5799d185910ece7d491f524e6-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 37a9463adbf03e103e879bf8d419137a55f42549d56a32be70d7201d161a7046 [INFO] running `"docker" "start" "-a" "37a9463adbf03e103e879bf8d419137a55f42549d56a32be70d7201d161a7046"` [INFO] [stderr] warning: unused manifest key: lib.src [INFO] [stderr] Checking handmadehero-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused import: `std::ptr::null_mut` [INFO] [stderr] --> src/handmade.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | use std::ptr::null_mut; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `game_sound_output_buffer` should have an upper camel case name [INFO] [stderr] --> src/handmade.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 29 | pub struct game_sound_output_buffer { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GameSoundOutputBuffer` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `thread_context` should have an upper camel case name [INFO] [stderr] --> src/handmade.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub struct thread_context { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ThreadContext` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handmade.rs:180:8 [INFO] [stderr] | [INFO] [stderr] 180 | if (MinX < 0) { [INFO] [stderr] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handmade.rs:184:8 [INFO] [stderr] | [INFO] [stderr] 184 | if (MinY < 0) { [INFO] [stderr] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handmade.rs:188:8 [INFO] [stderr] | [INFO] [stderr] 188 | if (MaxX > Buffer.width) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handmade.rs:192:8 [INFO] [stderr] | [INFO] [stderr] 192 | if (MaxY > Buffer.height) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused variable: `game_state` [INFO] [stderr] --> src/handmade.rs:139:17 [INFO] [stderr] | [INFO] [stderr] 139 | let mut game_state = memory.permanent_storage as *mut GameState; [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_game_state` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `thread` [INFO] [stderr] --> src/handmade.rs:133:5 [INFO] [stderr] | [INFO] [stderr] 133 | thread: &thread_context, [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_thread` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `game_state` [INFO] [stderr] --> src/handmade.rs:231:5 [INFO] [stderr] | [INFO] [stderr] 231 | game_state: *mut GameState, [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_game_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `buffer` [INFO] [stderr] --> src/handmade.rs:232:5 [INFO] [stderr] | [INFO] [stderr] 232 | buffer: &mut game_sound_output_buffer, [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_buffer` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tone_hz` [INFO] [stderr] --> src/handmade.rs:233:5 [INFO] [stderr] | [INFO] [stderr] 233 | tone_hz: u32, [INFO] [stderr] | ^^^^^^^ help: consider prefixing with an underscore: `_tone_hz` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `thread` [INFO] [stderr] --> src/handmade.rs:273:5 [INFO] [stderr] | [INFO] [stderr] 273 | thread: &thread_context, [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_thread` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/handmade.rs:139:13 [INFO] [stderr] | [INFO] [stderr] 139 | let mut game_state = memory.permanent_storage as *mut GameState; [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `SamplesPerSecond` should have a snake case name [INFO] [stderr] --> src/handmade.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 30 | pub SamplesPerSecond: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `samples_per_second` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `SampleCount` should have a snake case name [INFO] [stderr] --> src/handmade.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | pub SampleCount: u32, [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `sample_count` [INFO] [stderr] [INFO] [stderr] warning: structure field `MouseButtons` should have a snake case name [INFO] [stderr] --> src/handmade.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | pub MouseButtons: [GameButtonState; 5], [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `mouse_buttons` [INFO] [stderr] [INFO] [stderr] warning: structure field `MouseX` should have a snake case name [INFO] [stderr] --> src/handmade.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | pub MouseX: i32, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `mouse_x` [INFO] [stderr] [INFO] [stderr] warning: structure field `MouseY` should have a snake case name [INFO] [stderr] --> src/handmade.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | pub MouseY: i32, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `mouse_y` [INFO] [stderr] [INFO] [stderr] warning: structure field `MouseZ` should have a snake case name [INFO] [stderr] --> src/handmade.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | pub MouseZ: i32, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `mouse_z` [INFO] [stderr] [INFO] [stderr] warning: structure field `SecondsToAdvanceOverUpdate` should have a snake case name [INFO] [stderr] --> src/handmade.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | pub SecondsToAdvanceOverUpdate: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `seconds_to_advance_over_update` [INFO] [stderr] [INFO] [stderr] warning: function `DrawRectangle` should have a snake case name [INFO] [stderr] --> src/handmade.rs:165:11 [INFO] [stderr] | [INFO] [stderr] 165 | unsafe fn DrawRectangle( [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `draw_rectangle` [INFO] [stderr] [INFO] [stderr] warning: variable `Buffer` should have a snake case name [INFO] [stderr] --> src/handmade.rs:166:5 [INFO] [stderr] | [INFO] [stderr] 166 | Buffer: &mut GameOffScreenBuffer, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `buffer` [INFO] [stderr] [INFO] [stderr] warning: variable `RealMinX` should have a snake case name [INFO] [stderr] --> src/handmade.rs:167:5 [INFO] [stderr] | [INFO] [stderr] 167 | RealMinX: f32, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `real_min_x` [INFO] [stderr] [INFO] [stderr] warning: variable `RealMinY` should have a snake case name [INFO] [stderr] --> src/handmade.rs:168:5 [INFO] [stderr] | [INFO] [stderr] 168 | RealMinY: f32, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `real_min_y` [INFO] [stderr] [INFO] [stderr] warning: variable `RealMaxX` should have a snake case name [INFO] [stderr] --> src/handmade.rs:169:5 [INFO] [stderr] | [INFO] [stderr] 169 | RealMaxX: f32, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `real_max_x` [INFO] [stderr] [INFO] [stderr] warning: variable `RealMaxY` should have a snake case name [INFO] [stderr] --> src/handmade.rs:170:5 [INFO] [stderr] | [INFO] [stderr] 170 | RealMaxY: f32, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `real_max_y` [INFO] [stderr] [INFO] [stderr] warning: variable `Color` should have a snake case name [INFO] [stderr] --> src/handmade.rs:171:5 [INFO] [stderr] | [INFO] [stderr] 171 | Color: u32, [INFO] [stderr] | ^^^^^ help: convert the identifier to snake case: `color` [INFO] [stderr] [INFO] [stderr] warning: variable `MinX` should have a snake case name [INFO] [stderr] --> src/handmade.rs:175:13 [INFO] [stderr] | [INFO] [stderr] 175 | let mut MinX = (RealMinX).round() as i32; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `min_x` [INFO] [stderr] [INFO] [stderr] warning: variable `MinY` should have a snake case name [INFO] [stderr] --> src/handmade.rs:176:13 [INFO] [stderr] | [INFO] [stderr] 176 | let mut MinY = (RealMinY).round() as i32; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `min_y` [INFO] [stderr] [INFO] [stderr] warning: variable `MaxX` should have a snake case name [INFO] [stderr] --> src/handmade.rs:177:13 [INFO] [stderr] | [INFO] [stderr] 177 | let mut MaxX = (RealMaxX).round() as i32; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `max_x` [INFO] [stderr] [INFO] [stderr] warning: variable `MaxY` should have a snake case name [INFO] [stderr] --> src/handmade.rs:178:13 [INFO] [stderr] | [INFO] [stderr] 178 | let mut MaxY = (RealMaxY).round() as i32; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `max_y` [INFO] [stderr] [INFO] [stderr] warning: variable `Row` should have a snake case name [INFO] [stderr] --> src/handmade.rs:196:13 [INFO] [stderr] | [INFO] [stderr] 196 | let mut Row = Buffer [INFO] [stderr] | ^^^ help: convert the identifier to snake case: `row` [INFO] [stderr] [INFO] [stderr] warning: function `GameOutputSound` should have a snake case name [INFO] [stderr] --> src/handmade.rs:230:11 [INFO] [stderr] | [INFO] [stderr] 230 | unsafe fn GameOutputSound( [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `game_output_sound` [INFO] [stderr] [INFO] [stderr] warning: variable `Memory` should have a snake case name [INFO] [stderr] --> src/handmade.rs:274:5 [INFO] [stderr] | [INFO] [stderr] 274 | Memory: &mut GameMemory, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `memory` [INFO] [stderr] [INFO] [stderr] warning: variable `SoundBuffer` should have a snake case name [INFO] [stderr] --> src/handmade.rs:275:5 [INFO] [stderr] | [INFO] [stderr] 275 | SoundBuffer: &mut game_sound_output_buffer, [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `sound_buffer` [INFO] [stderr] [INFO] [stderr] warning: variable `GameState` should have a snake case name [INFO] [stderr] --> src/handmade.rs:277:9 [INFO] [stderr] | [INFO] [stderr] 277 | let GameState = Memory.permanent_storage as *mut GameState; [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `game_state` [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ptr::null_mut` [INFO] [stderr] --> src/handmade.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | use std::ptr::null_mut; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `game_sound_output_buffer` should have an upper camel case name [INFO] [stderr] --> src/handmade.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 29 | pub struct game_sound_output_buffer { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GameSoundOutputBuffer` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `thread_context` should have an upper camel case name [INFO] [stderr] --> src/handmade.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub struct thread_context { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ThreadContext` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handmade.rs:180:8 [INFO] [stderr] | [INFO] [stderr] 180 | if (MinX < 0) { [INFO] [stderr] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handmade.rs:184:8 [INFO] [stderr] | [INFO] [stderr] 184 | if (MinY < 0) { [INFO] [stderr] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handmade.rs:188:8 [INFO] [stderr] | [INFO] [stderr] 188 | if (MaxX > Buffer.width) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handmade.rs:192:8 [INFO] [stderr] | [INFO] [stderr] 192 | if (MaxY > Buffer.height) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused variable: `game_state` [INFO] [stderr] --> src/handmade.rs:139:17 [INFO] [stderr] | [INFO] [stderr] 139 | let mut game_state = memory.permanent_storage as *mut GameState; [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_game_state` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `thread` [INFO] [stderr] --> src/handmade.rs:133:5 [INFO] [stderr] | [INFO] [stderr] 133 | thread: &thread_context, [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_thread` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `game_state` [INFO] [stderr] --> src/handmade.rs:231:5 [INFO] [stderr] | [INFO] [stderr] 231 | game_state: *mut GameState, [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_game_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `buffer` [INFO] [stderr] --> src/handmade.rs:232:5 [INFO] [stderr] | [INFO] [stderr] 232 | buffer: &mut game_sound_output_buffer, [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_buffer` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tone_hz` [INFO] [stderr] --> src/handmade.rs:233:5 [INFO] [stderr] | [INFO] [stderr] 233 | tone_hz: u32, [INFO] [stderr] | ^^^^^^^ help: consider prefixing with an underscore: `_tone_hz` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `thread` [INFO] [stderr] --> src/handmade.rs:273:5 [INFO] [stderr] | [INFO] [stderr] 273 | thread: &thread_context, [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_thread` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/handmade.rs:139:13 [INFO] [stderr] | [INFO] [stderr] 139 | let mut game_state = memory.permanent_storage as *mut GameState; [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `SamplesPerSecond` should have a snake case name [INFO] [stderr] --> src/handmade.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 30 | pub SamplesPerSecond: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `samples_per_second` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `SampleCount` should have a snake case name [INFO] [stderr] --> src/handmade.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | pub SampleCount: u32, [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `sample_count` [INFO] [stderr] [INFO] [stderr] warning: structure field `MouseButtons` should have a snake case name [INFO] [stderr] --> src/handmade.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | pub MouseButtons: [GameButtonState; 5], [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `mouse_buttons` [INFO] [stderr] [INFO] [stderr] warning: structure field `MouseX` should have a snake case name [INFO] [stderr] --> src/handmade.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | pub MouseX: i32, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `mouse_x` [INFO] [stderr] [INFO] [stderr] warning: structure field `MouseY` should have a snake case name [INFO] [stderr] --> src/handmade.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | pub MouseY: i32, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `mouse_y` [INFO] [stderr] [INFO] [stderr] warning: structure field `MouseZ` should have a snake case name [INFO] [stderr] --> src/handmade.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | pub MouseZ: i32, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `mouse_z` [INFO] [stderr] [INFO] [stderr] warning: structure field `SecondsToAdvanceOverUpdate` should have a snake case name [INFO] [stderr] --> src/handmade.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | pub SecondsToAdvanceOverUpdate: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `seconds_to_advance_over_update` [INFO] [stderr] [INFO] [stderr] warning: function `DrawRectangle` should have a snake case name [INFO] [stderr] --> src/handmade.rs:165:11 [INFO] [stderr] | [INFO] [stderr] 165 | unsafe fn DrawRectangle( [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `draw_rectangle` [INFO] [stderr] [INFO] [stderr] warning: variable `Buffer` should have a snake case name [INFO] [stderr] --> src/handmade.rs:166:5 [INFO] [stderr] | [INFO] [stderr] 166 | Buffer: &mut GameOffScreenBuffer, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `buffer` [INFO] [stderr] [INFO] [stderr] warning: variable `RealMinX` should have a snake case name [INFO] [stderr] --> src/handmade.rs:167:5 [INFO] [stderr] | [INFO] [stderr] 167 | RealMinX: f32, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `real_min_x` [INFO] [stderr] [INFO] [stderr] warning: variable `RealMinY` should have a snake case name [INFO] [stderr] --> src/handmade.rs:168:5 [INFO] [stderr] | [INFO] [stderr] 168 | RealMinY: f32, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `real_min_y` [INFO] [stderr] [INFO] [stderr] warning: variable `RealMaxX` should have a snake case name [INFO] [stderr] --> src/handmade.rs:169:5 [INFO] [stderr] | [INFO] [stderr] 169 | RealMaxX: f32, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `real_max_x` [INFO] [stderr] [INFO] [stderr] warning: variable `RealMaxY` should have a snake case name [INFO] [stderr] --> src/handmade.rs:170:5 [INFO] [stderr] | [INFO] [stderr] 170 | RealMaxY: f32, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `real_max_y` [INFO] [stderr] [INFO] [stderr] warning: variable `Color` should have a snake case name [INFO] [stderr] --> src/handmade.rs:171:5 [INFO] [stderr] | [INFO] [stderr] 171 | Color: u32, [INFO] [stderr] | ^^^^^ help: convert the identifier to snake case: `color` [INFO] [stderr] [INFO] [stderr] warning: variable `MinX` should have a snake case name [INFO] [stderr] --> src/handmade.rs:175:13 [INFO] [stderr] | [INFO] [stderr] 175 | let mut MinX = (RealMinX).round() as i32; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `min_x` [INFO] [stderr] [INFO] [stderr] warning: variable `MinY` should have a snake case name [INFO] [stderr] --> src/handmade.rs:176:13 [INFO] [stderr] | [INFO] [stderr] 176 | let mut MinY = (RealMinY).round() as i32; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `min_y` [INFO] [stderr] [INFO] [stderr] warning: variable `MaxX` should have a snake case name [INFO] [stderr] --> src/handmade.rs:177:13 [INFO] [stderr] | [INFO] [stderr] 177 | let mut MaxX = (RealMaxX).round() as i32; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `max_x` [INFO] [stderr] [INFO] [stderr] warning: variable `MaxY` should have a snake case name [INFO] [stderr] --> src/handmade.rs:178:13 [INFO] [stderr] | [INFO] [stderr] 178 | let mut MaxY = (RealMaxY).round() as i32; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `max_y` [INFO] [stderr] [INFO] [stderr] warning: variable `Row` should have a snake case name [INFO] [stderr] --> src/handmade.rs:196:13 [INFO] [stderr] | [INFO] [stderr] 196 | let mut Row = Buffer [INFO] [stderr] | ^^^ help: convert the identifier to snake case: `row` [INFO] [stderr] [INFO] [stderr] warning: function `GameOutputSound` should have a snake case name [INFO] [stderr] --> src/handmade.rs:230:11 [INFO] [stderr] | [INFO] [stderr] 230 | unsafe fn GameOutputSound( [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `game_output_sound` [INFO] [stderr] [INFO] [stderr] warning: variable `Memory` should have a snake case name [INFO] [stderr] --> src/handmade.rs:274:5 [INFO] [stderr] | [INFO] [stderr] 274 | Memory: &mut GameMemory, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `memory` [INFO] [stderr] [INFO] [stderr] warning: variable `SoundBuffer` should have a snake case name [INFO] [stderr] --> src/handmade.rs:275:5 [INFO] [stderr] | [INFO] [stderr] 275 | SoundBuffer: &mut game_sound_output_buffer, [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `sound_buffer` [INFO] [stderr] [INFO] [stderr] warning: variable `GameState` should have a snake case name [INFO] [stderr] --> src/handmade.rs:277:9 [INFO] [stderr] | [INFO] [stderr] 277 | let GameState = Memory.permanent_storage as *mut GameState; [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `game_state` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/win32_handmade.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | os::windows::ffi::OsStrExt, [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::ctypes::c_void; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use winapi::shared::guiddef::LPCGUID; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use winapi::shared::minwindef::DWORD; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use winapi::shared::minwindef::FALSE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use winapi::shared::minwindef::FILETIME; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | use winapi::shared::minwindef::HMODULE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use winapi::shared::minwindef::LPVOID; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | use winapi::shared::mmreg::WAVEFORMATEX; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | use winapi::shared::mmreg::WAVE_FORMAT_PCM; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | use winapi::shared::ntdef::HRESULT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | use winapi::shared::ntdef::SHORT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | use winapi::shared::windef::POINT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use winapi::shared::winerror::ERROR_DEVICE_NOT_CONNECTED; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | use winapi::shared::winerror::SUCCEEDED; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use winapi::um::dsound::DSBCAPS_PRIMARYBUFFER; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | use winapi::um::dsound::DSBPLAY_LOOPING; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | use winapi::um::dsound::DSBUFFERDESC; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | use winapi::um::dsound::DSSCL_PRIORITY; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | use winapi::um::dsound::DS_OK; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | use winapi::um::dsound::LPDIRECTSOUND; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | use winapi::um::dsound::LPDIRECTSOUNDBUFFER; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | use winapi::um::fileapi::CompareFileTime; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | use winapi::um::fileapi::CreateFileA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | use winapi::um::fileapi::FindClose; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:41:5 [INFO] [stderr] | [INFO] [stderr] 41 | use winapi::um::fileapi::FindFirstFileA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | use winapi::um::fileapi::GetFileAttributesExA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:43:5 [INFO] [stderr] | [INFO] [stderr] 43 | use winapi::um::fileapi::GetFileSizeEx; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:44:5 [INFO] [stderr] | [INFO] [stderr] 44 | use winapi::um::fileapi::ReadFile; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | use winapi::um::fileapi::WriteFile; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:46:5 [INFO] [stderr] | [INFO] [stderr] 46 | use winapi::um::fileapi::CREATE_ALWAYS; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | use winapi::um::fileapi::OPEN_EXISTING; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 49 | use winapi::um::handleapi::CloseHandle; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 51 | use winapi::um::libloaderapi::FreeLibrary; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 52 | use winapi::um::libloaderapi::GetModuleFileNameA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | use winapi::um::libloaderapi::GetModuleHandleW; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | use winapi::um::libloaderapi::GetProcAddress; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | use winapi::um::libloaderapi::LoadLibraryA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | use winapi::um::memoryapi::MapViewOfFile; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 57 | use winapi::um::memoryapi::VirtualAlloc; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:58:5 [INFO] [stderr] | [INFO] [stderr] 58 | use winapi::um::memoryapi::VirtualFree; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:59:5 [INFO] [stderr] | [INFO] [stderr] 59 | use winapi::um::memoryapi::FILE_MAP_ALL_ACCESS; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:61:5 [INFO] [stderr] | [INFO] [stderr] 61 | use winapi::um::minwinbase::WIN32_FIND_DATAA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:62:5 [INFO] [stderr] | [INFO] [stderr] 62 | use winapi::um::mmsystem::TIMERR_NOERROR; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:63:5 [INFO] [stderr] | [INFO] [stderr] 63 | use winapi::um::profileapi::QueryPerformanceCounter; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:64:5 [INFO] [stderr] | [INFO] [stderr] 64 | use winapi::um::profileapi::QueryPerformanceFrequency; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:65:5 [INFO] [stderr] | [INFO] [stderr] 65 | use winapi::um::synchapi::Sleep; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:66:5 [INFO] [stderr] | [INFO] [stderr] 66 | use winapi::um::timeapi::timeBeginPeriod; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:67:5 [INFO] [stderr] | [INFO] [stderr] 67 | use winapi::um::unknwnbase::LPUNKNOWN; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 68 | use winapi::um::winbase::CopyFileA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 69 | use winapi::um::winbase::CreateFileMappingA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | use winapi::um::wingdi::GetDeviceCaps; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:72:5 [INFO] [stderr] | [INFO] [stderr] 72 | use winapi::um::wingdi::VREFRESH; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 73 | use winapi::um::winnt::LARGE_INTEGER_u; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 74 | use winapi::um::winnt::RtlCopyMemory; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:75:5 [INFO] [stderr] | [INFO] [stderr] 75 | use winapi::um::winnt::FILE_SHARE_READ; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:76:5 [INFO] [stderr] | [INFO] [stderr] 76 | use winapi::um::winnt::GENERIC_READ; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:77:5 [INFO] [stderr] | [INFO] [stderr] 77 | use winapi::um::winnt::GENERIC_WRITE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | use winapi::um::winnt::HANDLE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:79:5 [INFO] [stderr] | [INFO] [stderr] 79 | use winapi::um::winnt::LARGE_INTEGER; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:80:5 [INFO] [stderr] | [INFO] [stderr] 80 | use winapi::um::winnt::MEM_RESERVE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:81:5 [INFO] [stderr] | [INFO] [stderr] 81 | use winapi::um::winuser::wsprintfA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:82:5 [INFO] [stderr] | [INFO] [stderr] 82 | use winapi::um::winuser::GetCursorPos; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:83:5 [INFO] [stderr] | [INFO] [stderr] 83 | use winapi::um::winuser::GetDC; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:84:5 [INFO] [stderr] | [INFO] [stderr] 84 | use winapi::um::winuser::GetKeyState; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 85 | use winapi::um::winuser::PeekMessageW; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:86:5 [INFO] [stderr] | [INFO] [stderr] 86 | use winapi::um::winuser::ReleaseDC; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:87:5 [INFO] [stderr] | [INFO] [stderr] 87 | use winapi::um::winuser::ScreenToClient; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | use winapi::um::winuser::PM_REMOVE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:89:5 [INFO] [stderr] | [INFO] [stderr] 89 | use winapi::um::winuser::VK_LBUTTON; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 90 | use winapi::um::winuser::VK_MBUTTON; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:91:5 [INFO] [stderr] | [INFO] [stderr] 91 | use winapi::um::winuser::VK_RBUTTON; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | use winapi::um::winuser::VK_XBUTTON1; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:93:5 [INFO] [stderr] | [INFO] [stderr] 93 | use winapi::um::winuser::VK_XBUTTON2; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:94:5 [INFO] [stderr] | [INFO] [stderr] 94 | use winapi::um::winuser::WM_QUIT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:96:5 [INFO] [stderr] | [INFO] [stderr] 96 | use winapi::um::xinput::XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:97:5 [INFO] [stderr] | [INFO] [stderr] 97 | use winapi::um::xinput::XINPUT_STATE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 98 | use winapi::um::xinput::XINPUT_VIBRATION; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:99:5 [INFO] [stderr] | [INFO] [stderr] 99 | use winapi::um::xinput::XUSER_MAX_COUNT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:100:5 [INFO] [stderr] | [INFO] [stderr] 100 | use winapi::{ [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:173:19 [INFO] [stderr] | [INFO] [stderr] 173 | 0 as *mut winapi::um::minwinbase::SECURITY_ATTRIBUTES, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:192:45 [INFO] [stderr] | [INFO] [stderr] 192 | result.contents as *mut winapi::ctypes::c_void, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:217:36 [INFO] [stderr] | [INFO] [stderr] 217 | VirtualFree(memory as *mut winapi::ctypes::c_void, 0, MEM_RELEASE); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:232:19 [INFO] [stderr] | [INFO] [stderr] 232 | 0 as *mut winapi::um::minwinbase::SECURITY_ATTRIBUTES, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:242:30 [INFO] [stderr] | [INFO] [stderr] 242 | memory as *const winapi::ctypes::c_void, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/win32_handmade.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | os::windows::ffi::OsStrExt, [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::ctypes::c_void; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use winapi::shared::guiddef::LPCGUID; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use winapi::shared::minwindef::DWORD; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use winapi::shared::minwindef::FALSE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use winapi::shared::minwindef::FILETIME; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | use winapi::shared::minwindef::HMODULE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use winapi::shared::minwindef::LPVOID; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | use winapi::shared::minwindef::MAX_PATH; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | use winapi::shared::mmreg::WAVEFORMATEX; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | use winapi::shared::mmreg::WAVE_FORMAT_PCM; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | use winapi::shared::ntdef::HRESULT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | use winapi::shared::ntdef::SHORT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | use winapi::shared::windef::POINT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use winapi::shared::winerror::ERROR_DEVICE_NOT_CONNECTED; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | use winapi::shared::winerror::SUCCEEDED; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use winapi::um::dsound::DSBCAPS_PRIMARYBUFFER; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | use winapi::um::dsound::DSBPLAY_LOOPING; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | use winapi::um::dsound::DSBUFFERDESC; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | use winapi::um::dsound::DSSCL_PRIORITY; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | use winapi::um::dsound::DS_OK; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | use winapi::um::dsound::LPDIRECTSOUND; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | use winapi::um::dsound::LPDIRECTSOUNDBUFFER; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | use winapi::um::fileapi::CompareFileTime; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | use winapi::um::fileapi::CreateFileA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | use winapi::um::fileapi::FindClose; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:41:5 [INFO] [stderr] | [INFO] [stderr] 41 | use winapi::um::fileapi::FindFirstFileA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | use winapi::um::fileapi::GetFileAttributesExA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:43:5 [INFO] [stderr] | [INFO] [stderr] 43 | use winapi::um::fileapi::GetFileSizeEx; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:44:5 [INFO] [stderr] | [INFO] [stderr] 44 | use winapi::um::fileapi::ReadFile; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | use winapi::um::fileapi::WriteFile; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:46:5 [INFO] [stderr] | [INFO] [stderr] 46 | use winapi::um::fileapi::CREATE_ALWAYS; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | use winapi::um::fileapi::OPEN_EXISTING; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 49 | use winapi::um::handleapi::CloseHandle; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | use winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 51 | use winapi::um::libloaderapi::FreeLibrary; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 52 | use winapi::um::libloaderapi::GetModuleFileNameA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | use winapi::um::libloaderapi::GetModuleHandleW; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | use winapi::um::libloaderapi::GetProcAddress; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | use winapi::um::libloaderapi::LoadLibraryA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | use winapi::um::memoryapi::MapViewOfFile; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 57 | use winapi::um::memoryapi::VirtualAlloc; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:58:5 [INFO] [stderr] | [INFO] [stderr] 58 | use winapi::um::memoryapi::VirtualFree; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:59:5 [INFO] [stderr] | [INFO] [stderr] 59 | use winapi::um::memoryapi::FILE_MAP_ALL_ACCESS; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:61:5 [INFO] [stderr] | [INFO] [stderr] 61 | use winapi::um::minwinbase::WIN32_FIND_DATAA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:62:5 [INFO] [stderr] | [INFO] [stderr] 62 | use winapi::um::mmsystem::TIMERR_NOERROR; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:63:5 [INFO] [stderr] | [INFO] [stderr] 63 | use winapi::um::profileapi::QueryPerformanceCounter; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:64:5 [INFO] [stderr] | [INFO] [stderr] 64 | use winapi::um::profileapi::QueryPerformanceFrequency; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:65:5 [INFO] [stderr] | [INFO] [stderr] 65 | use winapi::um::synchapi::Sleep; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:66:5 [INFO] [stderr] | [INFO] [stderr] 66 | use winapi::um::timeapi::timeBeginPeriod; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:67:5 [INFO] [stderr] | [INFO] [stderr] 67 | use winapi::um::unknwnbase::LPUNKNOWN; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 68 | use winapi::um::winbase::CopyFileA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 69 | use winapi::um::winbase::CreateFileMappingA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | use winapi::um::wingdi::GetDeviceCaps; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:72:5 [INFO] [stderr] | [INFO] [stderr] 72 | use winapi::um::wingdi::VREFRESH; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 73 | use winapi::um::winnt::LARGE_INTEGER_u; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 74 | use winapi::um::winnt::RtlCopyMemory; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:75:5 [INFO] [stderr] | [INFO] [stderr] 75 | use winapi::um::winnt::FILE_SHARE_READ; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:76:5 [INFO] [stderr] | [INFO] [stderr] 76 | use winapi::um::winnt::GENERIC_READ; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:77:5 [INFO] [stderr] | [INFO] [stderr] 77 | use winapi::um::winnt::GENERIC_WRITE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | use winapi::um::winnt::HANDLE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:79:5 [INFO] [stderr] | [INFO] [stderr] 79 | use winapi::um::winnt::LARGE_INTEGER; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:80:5 [INFO] [stderr] | [INFO] [stderr] 80 | use winapi::um::winnt::MEM_RESERVE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:81:5 [INFO] [stderr] | [INFO] [stderr] 81 | use winapi::um::winuser::wsprintfA; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:82:5 [INFO] [stderr] | [INFO] [stderr] 82 | use winapi::um::winuser::GetCursorPos; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:83:5 [INFO] [stderr] | [INFO] [stderr] 83 | use winapi::um::winuser::GetDC; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:84:5 [INFO] [stderr] | [INFO] [stderr] 84 | use winapi::um::winuser::GetKeyState; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 85 | use winapi::um::winuser::PeekMessageW; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:86:5 [INFO] [stderr] | [INFO] [stderr] 86 | use winapi::um::winuser::ReleaseDC; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:87:5 [INFO] [stderr] | [INFO] [stderr] 87 | use winapi::um::winuser::ScreenToClient; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | use winapi::um::winuser::PM_REMOVE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:89:5 [INFO] [stderr] | [INFO] [stderr] 89 | use winapi::um::winuser::VK_LBUTTON; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 90 | use winapi::um::winuser::VK_MBUTTON; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:91:5 [INFO] [stderr] | [INFO] [stderr] 91 | use winapi::um::winuser::VK_RBUTTON; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | use winapi::um::winuser::VK_XBUTTON1; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:93:5 [INFO] [stderr] | [INFO] [stderr] 93 | use winapi::um::winuser::VK_XBUTTON2; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:94:5 [INFO] [stderr] | [INFO] [stderr] 94 | use winapi::um::winuser::WM_QUIT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:96:5 [INFO] [stderr] | [INFO] [stderr] 96 | use winapi::um::xinput::XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:97:5 [INFO] [stderr] | [INFO] [stderr] 97 | use winapi::um::xinput::XINPUT_STATE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 98 | use winapi::um::xinput::XINPUT_VIBRATION; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:99:5 [INFO] [stderr] | [INFO] [stderr] 99 | use winapi::um::xinput::XUSER_MAX_COUNT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:100:5 [INFO] [stderr] | [INFO] [stderr] 100 | use winapi::{ [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:173:19 [INFO] [stderr] | [INFO] [stderr] 173 | 0 as *mut winapi::um::minwinbase::SECURITY_ATTRIBUTES, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:192:45 [INFO] [stderr] | [INFO] [stderr] 192 | result.contents as *mut winapi::ctypes::c_void, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:217:36 [INFO] [stderr] | [INFO] [stderr] 217 | VirtualFree(memory as *mut winapi::ctypes::c_void, 0, MEM_RELEASE); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:232:19 [INFO] [stderr] | [INFO] [stderr] 232 | 0 as *mut winapi::um::minwinbase::SECURITY_ATTRIBUTES, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:242:30 [INFO] [stderr] | [INFO] [stderr] 242 | memory as *const winapi::ctypes::c_void, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0408]: variable `WM_KEYDOWN` is not bound in all patterns [INFO] [stderr] --> src/win32_handmade.rs:989:13 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ---------- ^^^^^^^^ pattern doesn't bind `WM_KEYDOWN` [INFO] [stderr] | | | | [INFO] [stderr] | | | variable not in all patterns [INFO] [stderr] | | pattern doesn't bind `WM_KEYDOWN` [INFO] [stderr] | pattern doesn't bind `WM_KEYDOWN` [INFO] [stderr] | [INFO] [stderr] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_KEYDOWN` [INFO] [stderr] --> src/win32_handmade.rs:989:43 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0408]: variable `WM_KEYUP` is not bound in all patterns [INFO] [stderr] --> src/win32_handmade.rs:989:13 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ -------- variable not in all patterns [INFO] [stderr] | | | | [INFO] [stderr] | | | pattern doesn't bind `WM_KEYUP` [INFO] [stderr] | | pattern doesn't bind `WM_KEYUP` [INFO] [stderr] | pattern doesn't bind `WM_KEYUP` [INFO] [stderr] | [INFO] [stderr] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_KEYUP` [INFO] [stderr] --> src/win32_handmade.rs:989:56 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0408]: variable `WM_SYSKEYDOWN` is not bound in all patterns [INFO] [stderr] --> src/win32_handmade.rs:989:29 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ------------- ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stderr] | | | | [INFO] [stderr] | | | pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stderr] | | pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stderr] | variable not in all patterns [INFO] [stderr] | [INFO] [stderr] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_SYSKEYDOWN` [INFO] [stderr] --> src/win32_handmade.rs:989:13 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0408]: variable `WM_SYSKEYUP` is not bound in all patterns [INFO] [stderr] --> src/win32_handmade.rs:989:13 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^^^^ ----------- ^^^^^^^^^^ ^^^^^^^^ pattern doesn't bind `WM_SYSKEYUP` [INFO] [stderr] | | | | [INFO] [stderr] | | | pattern doesn't bind `WM_SYSKEYUP` [INFO] [stderr] | | variable not in all patterns [INFO] [stderr] | pattern doesn't bind `WM_SYSKEYUP` [INFO] [stderr] | [INFO] [stderr] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_SYSKEYUP` [INFO] [stderr] --> src/win32_handmade.rs:989:29 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1573:59 [INFO] [stderr] | [INFO] [stderr] 1573 | ... let mut controller_state: winapi::um::xinput::XINPUT_STATE = [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1576:40 [INFO] [stderr] | [INFO] [stderr] 1576 | ... == winapi::shared::winerror::ERROR_SUCCESS [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1584:56 [INFO] [stderr] | [INFO] [stderr] 1584 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_UP; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1586:56 [INFO] [stderr] | [INFO] [stderr] 1586 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_DOWN; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1588:56 [INFO] [stderr] | [INFO] [stderr] 1588 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_LEFT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1590:43 [INFO] [stderr] | [INFO] [stderr] 1590 | ... & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_RIGHT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1676:41 [INFO] [stderr] | [INFO] [stderr] 1676 | ... winapi::um::xinput::XINPUT_GAMEPAD_A.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1682:41 [INFO] [stderr] | [INFO] [stderr] 1682 | ... winapi::um::xinput::XINPUT_GAMEPAD_B.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1689:41 [INFO] [stderr] | [INFO] [stderr] 1689 | ... winapi::um::xinput::XINPUT_GAMEPAD_X.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1696:41 [INFO] [stderr] | [INFO] [stderr] 1696 | ... winapi::um::xinput::XINPUT_GAMEPAD_Y.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1703:41 [INFO] [stderr] | [INFO] [stderr] 1703 | ... winapi::um::xinput::XINPUT_GAMEPAD_LEFT_SHOULDER.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1710:41 [INFO] [stderr] | [INFO] [stderr] 1710 | ... winapi::um::xinput::XINPUT_GAMEPAD_RIGHT_SHOULDER.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1717:41 [INFO] [stderr] | [INFO] [stderr] 1717 | ... winapi::um::xinput::XINPUT_GAMEPAD_START.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1724:41 [INFO] [stderr] | [INFO] [stderr] 1724 | ... winapi::um::xinput::XINPUT_GAMEPAD_BACK.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0408]: variable `WM_KEYDOWN` is not bound in all patterns [INFO] [stderr] --> src/win32_handmade.rs:989:13 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ---------- ^^^^^^^^ pattern doesn't bind `WM_KEYDOWN` [INFO] [stderr] | | | | [INFO] [stderr] | | | variable not in all patterns [INFO] [stderr] | | pattern doesn't bind `WM_KEYDOWN` [INFO] [stderr] | pattern doesn't bind `WM_KEYDOWN` [INFO] [stderr] | [INFO] [stderr] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_KEYDOWN` [INFO] [stderr] --> src/win32_handmade.rs:989:43 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0408]: variable `WM_KEYUP` is not bound in all patterns [INFO] [stderr] --> src/win32_handmade.rs:989:13 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ -------- variable not in all patterns [INFO] [stderr] | | | | [INFO] [stderr] | | | pattern doesn't bind `WM_KEYUP` [INFO] [stderr] | | pattern doesn't bind `WM_KEYUP` [INFO] [stderr] | pattern doesn't bind `WM_KEYUP` [INFO] [stderr] | [INFO] [stderr] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_KEYUP` [INFO] [stderr] --> src/win32_handmade.rs:989:56 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0408]: variable `WM_SYSKEYDOWN` is not bound in all patterns [INFO] [stderr] --> src/win32_handmade.rs:989:29 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ------------- ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stderr] | | | | [INFO] [stderr] | | | pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stderr] | | pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stderr] | variable not in all patterns [INFO] [stderr] | [INFO] [stderr] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_SYSKEYDOWN` [INFO] [stderr] --> src/win32_handmade.rs:989:13 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0408]: variable `WM_SYSKEYUP` is not bound in all patterns [INFO] [stderr] --> src/win32_handmade.rs:989:13 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^^^^ ----------- ^^^^^^^^^^ ^^^^^^^^ pattern doesn't bind `WM_SYSKEYUP` [INFO] [stderr] | | | | [INFO] [stderr] | | | pattern doesn't bind `WM_SYSKEYUP` [INFO] [stderr] | | variable not in all patterns [INFO] [stderr] | pattern doesn't bind `WM_SYSKEYUP` [INFO] [stderr] | [INFO] [stderr] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_SYSKEYUP` [INFO] [stderr] --> src/win32_handmade.rs:989:29 [INFO] [stderr] | [INFO] [stderr] 989 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:130:23 [INFO] [stderr] | [INFO] [stderr] 130 | memory: 0 as *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope [INFO] [stderr] --> src/win32_handmade.rs:135:11 [INFO] [stderr] | [INFO] [stderr] 135 | info: BITMAPINFO { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:136:20 [INFO] [stderr] | [INFO] [stderr] 136 | bmiHeader: BITMAPINFOHEADER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `BI_RGB` in this scope [INFO] [stderr] --> src/win32_handmade.rs:142:28 [INFO] [stderr] | [INFO] [stderr] 142 | biCompression: BI_RGB, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:149:21 [INFO] [stderr] | [INFO] [stderr] 149 | bmiColors: [RGBQUAD { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPDIRECTSOUNDBUFFER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:157:37 [INFO] [stderr] | [INFO] [stderr] 157 | static mut GLOBAL_SECONDARY_BUFFER: LPDIRECTSOUNDBUFFER = null_mut(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:169:23 [INFO] [stderr] | [INFO] [stderr] 169 | let file_handle = CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stderr] --> src/win32_handmade.rs:171:9 [INFO] [stderr] | [INFO] [stderr] 171 | GENERIC_READ, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FILE_SHARE_READ` in this scope [INFO] [stderr] --> src/win32_handmade.rs:172:9 [INFO] [stderr] | [INFO] [stderr] 172 | FILE_SHARE_READ, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stderr] --> src/win32_handmade.rs:174:9 [INFO] [stderr] | [INFO] [stderr] 174 | OPEN_EXISTING, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:179:23 [INFO] [stderr] | [INFO] [stderr] 179 | if file_handle != INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:180:38 [INFO] [stderr] | [INFO] [stderr] 180 | let mut file_size = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetFileSizeEx` in this scope [INFO] [stderr] --> src/win32_handmade.rs:181:12 [INFO] [stderr] | [INFO] [stderr] 181 | if GetFileSizeEx(file_handle, &mut file_size) != 0 { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:182:31 [INFO] [stderr] | [INFO] [stderr] 182 | result.contents = VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:185:17 [INFO] [stderr] | [INFO] [stderr] 185 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:185:31 [INFO] [stderr] | [INFO] [stderr] 185 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:186:17 [INFO] [stderr] | [INFO] [stderr] 186 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:189:47 [INFO] [stderr] | [INFO] [stderr] 189 | let mut bytes_read = zeroed::(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ReadFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:190:20 [INFO] [stderr] | [INFO] [stderr] 190 | if ReadFile( [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/win32_handmade.rs:208:9 [INFO] [stderr] | [INFO] [stderr] 208 | CloseHandle(file_handle); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualFree` in this scope [INFO] [stderr] --> src/win32_handmade.rs:217:9 [INFO] [stderr] | [INFO] [stderr] 217 | VirtualFree(memory as *mut winapi::ctypes::c_void, 0, MEM_RELEASE); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:217:63 [INFO] [stderr] | [INFO] [stderr] 217 | VirtualFree(memory as *mut winapi::ctypes::c_void, 0, MEM_RELEASE); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:228:23 [INFO] [stderr] | [INFO] [stderr] 228 | let file_handle = CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:230:9 [INFO] [stderr] | [INFO] [stderr] 230 | GENERIC_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stderr] --> src/win32_handmade.rs:233:9 [INFO] [stderr] | [INFO] [stderr] 233 | CREATE_ALWAYS, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:238:23 [INFO] [stderr] | [INFO] [stderr] 238 | if file_handle != INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:239:42 [INFO] [stderr] | [INFO] [stderr] 239 | let mut bytes_written = zeroed::(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `WriteFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:240:12 [INFO] [stderr] | [INFO] [stderr] 240 | if WriteFile( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/win32_handmade.rs:254:9 [INFO] [stderr] | [INFO] [stderr] 254 | CloseHandle(file_handle); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:261:18 [INFO] [stderr] | [INFO] [stderr] 261 | memory: *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BITMAPINFO` in this scope [INFO] [stderr] --> src/win32_handmade.rs:266:11 [INFO] [stderr] | [INFO] [stderr] 266 | info: BITMAPINFO, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:279:23 [INFO] [stderr] | [INFO] [stderr] 279 | OutputPlayCursor: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:280:24 [INFO] [stderr] | [INFO] [stderr] 280 | OutputWriteCursor: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:281:21 [INFO] [stderr] | [INFO] [stderr] 281 | OutputLocation: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:282:22 [INFO] [stderr] | [INFO] [stderr] 282 | OutputByteCount: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:283:29 [INFO] [stderr] | [INFO] [stderr] 283 | ExpectedFlipPlayCursor: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:285:21 [INFO] [stderr] | [INFO] [stderr] 285 | FlipPlayCursor: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:286:22 [INFO] [stderr] | [INFO] [stderr] 286 | FlipWriteCursor: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:293:17 [INFO] [stderr] | [INFO] [stderr] 293 | FileHandle: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:294:16 [INFO] [stderr] | [INFO] [stderr] 294 | MemoryMap: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:295:20 [INFO] [stderr] | [INFO] [stderr] 295 | FileName: [u8; MAX_PATH], [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:296:23 [INFO] [stderr] | [INFO] [stderr] 296 | MemoryBlock: *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:304:36 [INFO] [stderr] | [INFO] [stderr] 304 | FileName: ['\0' as u8; MAX_PATH], [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:312:27 [INFO] [stderr] | [INFO] [stderr] 312 | GameMemoryBlock: *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:315:22 [INFO] [stderr] | [INFO] [stderr] 315 | RecordingHandle: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:318:21 [INFO] [stderr] | [INFO] [stderr] 318 | PlaybackHandle: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:321:29 [INFO] [stderr] | [INFO] [stderr] 321 | exe_file_name: &'a [u8; MAX_PATH], [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/win32_handmade.rs:325:39 [INFO] [stderr] | [INFO] [stderr] 325 | fn win32_get_window_dimension(window: HWND) -> Win32WindowDimension { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:327:40 [INFO] [stderr] | [INFO] [stderr] 327 | let mut client_rect = zeroed::(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetClientRect` in this scope [INFO] [stderr] --> src/win32_handmade.rs:328:9 [INFO] [stderr] | [INFO] [stderr] 328 | GetClientRect(window, &mut client_rect); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:521:20 [INFO] [stderr] | [INFO] [stderr] 521 | game_code_dll: HMODULE, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stderr] --> src/win32_handmade.rs:525:26 [INFO] [stderr] | [INFO] [stderr] 525 | dll_last_write_time: FILETIME, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stderr] --> src/win32_handmade.rs:528:57 [INFO] [stderr] | [INFO] [stderr] 528 | unsafe fn win32_get_last_write_time(file_name: &str) -> FILETIME { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stderr] --> src/win32_handmade.rs:529:40 [INFO] [stderr] | [INFO] [stderr] 529 | let mut last_write_time = zeroed::(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WIN32_FIND_DATAA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:531:34 [INFO] [stderr] | [INFO] [stderr] 531 | let mut find_data = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindFirstFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:532:23 [INFO] [stderr] | [INFO] [stderr] 532 | let find_handle = FindFirstFileA(name.as_ptr(), &mut find_data); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:533:23 [INFO] [stderr] | [INFO] [stderr] 533 | if find_handle != INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindClose` in this scope [INFO] [stderr] --> src/win32_handmade.rs:535:9 [INFO] [stderr] | [INFO] [stderr] 535 | FindClose(find_handle); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:554:29 [INFO] [stderr] | [INFO] [stderr] 554 | game_code_dll: 0 as HMODULE, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CopyFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:560:8 [INFO] [stderr] | [INFO] [stderr] 560 | if CopyFileA(source_name.as_ptr(), temp_name.as_ptr(), FALSE) != 0 { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:560:60 [INFO] [stderr] | [INFO] [stderr] 560 | if CopyFileA(source_name.as_ptr(), temp_name.as_ptr(), FALSE) != 0 { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadLibraryA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:569:28 [INFO] [stderr] | [INFO] [stderr] 569 | result.game_code_dll = LoadLibraryA(temp_name.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetProcAddress` in this scope [INFO] [stderr] --> src/win32_handmade.rs:573:32 [INFO] [stderr] | [INFO] [stderr] 573 | let update = transmute(GetProcAddress( [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetProcAddress` in this scope [INFO] [stderr] --> src/win32_handmade.rs:580:43 [INFO] [stderr] | [INFO] [stderr] 580 | let get_sound_samples = transmute(GetProcAddress( [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FreeLibrary` in this scope [INFO] [stderr] --> src/win32_handmade.rs:595:9 [INFO] [stderr] | [INFO] [stderr] 595 | FreeLibrary(game_code.game_code_dll); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:602:44 [INFO] [stderr] | [INFO] [stderr] 602 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `XINPUT_STATE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:602:56 [INFO] [stderr] | [INFO] [stderr] 602 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:602:73 [INFO] [stderr] | [INFO] [stderr] 602 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:603:45 [INFO] [stderr] | [INFO] [stderr] 603 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `XINPUT_STATE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:603:60 [INFO] [stderr] | [INFO] [stderr] 603 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:603:77 [INFO] [stderr] | [INFO] [stderr] 603 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_DEVICE_NOT_CONNECTED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:604:12 [INFO] [stderr] | [INFO] [stderr] 604 | return ERROR_DEVICE_NOT_CONNECTED; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:608:44 [INFO] [stderr] | [INFO] [stderr] 608 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `XINPUT_VIBRATION` in this scope [INFO] [stderr] --> src/win32_handmade.rs:608:56 [INFO] [stderr] | [INFO] [stderr] 608 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:608:77 [INFO] [stderr] | [INFO] [stderr] 608 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:609:45 [INFO] [stderr] | [INFO] [stderr] 609 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `XINPUT_VIBRATION` in this scope [INFO] [stderr] --> src/win32_handmade.rs:609:60 [INFO] [stderr] | [INFO] [stderr] 609 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:609:81 [INFO] [stderr] | [INFO] [stderr] 609 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_DEVICE_NOT_CONNECTED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:610:12 [INFO] [stderr] | [INFO] [stderr] 610 | return ERROR_DEVICE_NOT_CONNECTED; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadLibraryA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:616:23 [INFO] [stderr] | [INFO] [stderr] 616 | let mut library = LoadLibraryA(xinput1_4.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:617:24 [INFO] [stderr] | [INFO] [stderr] 617 | if library == 0 as HINSTANCE { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadLibraryA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:619:19 [INFO] [stderr] | [INFO] [stderr] 619 | library = LoadLibraryA(xinput9_1_0.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:621:24 [INFO] [stderr] | [INFO] [stderr] 621 | if library == 0 as HINSTANCE { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadLibraryA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:623:19 [INFO] [stderr] | [INFO] [stderr] 623 | library = LoadLibraryA(xinput1_3.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:626:24 [INFO] [stderr] | [INFO] [stderr] 626 | if library != 0 as HINSTANCE { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetProcAddress` in this scope [INFO] [stderr] --> src/win32_handmade.rs:628:36 [INFO] [stderr] | [INFO] [stderr] 628 | XInputGetState = transmute(GetProcAddress(library, xinput_get_state_str.as_ptr())); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetProcAddress` in this scope [INFO] [stderr] --> src/win32_handmade.rs:630:38 [INFO] [stderr] | [INFO] [stderr] 630 | XINPUT_SET_STATE = transmute(GetProcAddress(library, xinput_set_state_str.as_ptr())); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPCGUID` in this scope [INFO] [stderr] --> src/win32_handmade.rs:634:31 [INFO] [stderr] | [INFO] [stderr] 634 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPDIRECTSOUND` in this scope [INFO] [stderr] --> src/win32_handmade.rs:634:45 [INFO] [stderr] | [INFO] [stderr] 634 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPUNKNOWN` in this scope [INFO] [stderr] --> src/win32_handmade.rs:634:60 [INFO] [stderr] | [INFO] [stderr] 634 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:634:74 [INFO] [stderr] | [INFO] [stderr] 634 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/win32_handmade.rs:635:37 [INFO] [stderr] | [INFO] [stderr] 635 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadLibraryA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:637:27 [INFO] [stderr] | [INFO] [stderr] 637 | let d_sound_library = LoadLibraryA(dsound_str.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPDIRECTSOUND` in this scope [INFO] [stderr] --> src/win32_handmade.rs:639:37 [INFO] [stderr] | [INFO] [stderr] 639 | let mut direct_sound = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetProcAddress` in this scope [INFO] [stderr] --> src/win32_handmade.rs:643:39 [INFO] [stderr] | [INFO] [stderr] 643 | let direct_sound_create_ptr = GetProcAddress(d_sound_library, dsoundcrate_str.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:647:16 [INFO] [stderr] | [INFO] [stderr] 647 | && SUCCEEDED(DirectSoundCreate(zeroed(), &mut direct_sound, zeroed())) [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WAVEFORMATEX` in this scope [INFO] [stderr] --> src/win32_handmade.rs:649:44 [INFO] [stderr] | [INFO] [stderr] 649 | let mut wave_format = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WAVE_FORMAT_PCM` in this scope [INFO] [stderr] --> src/win32_handmade.rs:650:38 [INFO] [stderr] | [INFO] [stderr] 650 | wave_format.wFormatTag = WAVE_FORMAT_PCM; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:656:73 [INFO] [stderr] | [INFO] [stderr] 656 | wave_format.nSamplesPerSec * wave_format.nBlockAlign as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:658:16 [INFO] [stderr] | [INFO] [stderr] 658 | if SUCCEEDED((*direct_sound).SetCooperativeLevel(window, DSSCL_PRIORITY)) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DSSCL_PRIORITY` in this scope [INFO] [stderr] --> src/win32_handmade.rs:658:70 [INFO] [stderr] | [INFO] [stderr] 658 | if SUCCEEDED((*direct_sound).SetCooperativeLevel(window, DSSCL_PRIORITY)) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:661:55 [INFO] [stderr] | [INFO] [stderr] 661 | let mut buffer_description = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:662:55 [INFO] [stderr] | [INFO] [stderr] 662 | buffer_description.dwSize = size_of::().try_into().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DSBCAPS_PRIMARYBUFFER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:663:46 [INFO] [stderr] | [INFO] [stderr] 663 | buffer_description.dwFlags = DSBCAPS_PRIMARYBUFFER; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPDIRECTSOUNDBUFFER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:664:51 [INFO] [stderr] | [INFO] [stderr] 664 | let mut primary_buffer = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:666:20 [INFO] [stderr] | [INFO] [stderr] 666 | if SUCCEEDED((*direct_sound).CreateSoundBuffer( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:671:24 [INFO] [stderr] | [INFO] [stderr] 671 | if SUCCEEDED((*primary_buffer).SetFormat(&wave_format)) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:682:44 [INFO] [stderr] | [INFO] [stderr] 682 | let mut buffer_desc = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:683:44 [INFO] [stderr] | [INFO] [stderr] 683 | buffer_desc.dwSize = size_of::().try_into().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:687:16 [INFO] [stderr] | [INFO] [stderr] 687 | if SUCCEEDED((*direct_sound).CreateSoundBuffer( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:704:18 [INFO] [stderr] | [INFO] [stderr] 704 | BytesToLock: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:705:19 [INFO] [stderr] | [INFO] [stderr] 705 | BytesToWrite: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:709:26 [INFO] [stderr] | [INFO] [stderr] 709 | let mut Region1Size: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:711:26 [INFO] [stderr] | [INFO] [stderr] 711 | let mut Region2Size: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:713:8 [INFO] [stderr] | [INFO] [stderr] 713 | if SUCCEEDED((*GLOBAL_SECONDARY_BUFFER).Lock( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:755:26 [INFO] [stderr] | [INFO] [stderr] 755 | let mut Region1Size: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:757:26 [INFO] [stderr] | [INFO] [stderr] 757 | let mut Region2Size: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:759:8 [INFO] [stderr] | [INFO] [stderr] 759 | if SUCCEEDED((*GLOBAL_SECONDARY_BUFFER).Lock( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualFree` in this scope [INFO] [stderr] --> src/win32_handmade.rs:790:13 [INFO] [stderr] | [INFO] [stderr] 790 | VirtualFree(buffer.memory, 0, MEM_RELEASE); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:790:43 [INFO] [stderr] | [INFO] [stderr] 790 | VirtualFree(buffer.memory, 0, MEM_RELEASE); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BITMAPINFOHEADER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:797:46 [INFO] [stderr] | [INFO] [stderr] 797 | buffer.info.bmiHeader.biSize = size_of::() as u32; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `BI_RGB` in this scope [INFO] [stderr] --> src/win32_handmade.rs:802:43 [INFO] [stderr] | [INFO] [stderr] 802 | buffer.info.bmiHeader.biCompression = BI_RGB; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:806:9 [INFO] [stderr] | [INFO] [stderr] 806 | VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:809:13 [INFO] [stderr] | [INFO] [stderr] 809 | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:810:13 [INFO] [stderr] | [INFO] [stderr] 810 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HDC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:816:21 [INFO] [stderr] | [INFO] [stderr] 816 | device_context: HDC, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `StretchDIBits` in this scope [INFO] [stderr] --> src/win32_handmade.rs:823:9 [INFO] [stderr] | [INFO] [stderr] 823 | StretchDIBits( [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIB_RGB_COLORS` in this scope [INFO] [stderr] --> src/win32_handmade.rs:835:13 [INFO] [stderr] | [INFO] [stderr] 835 | DIB_RGB_COLORS, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SRCCOPY` in this scope [INFO] [stderr] --> src/win32_handmade.rs:836:13 [INFO] [stderr] | [INFO] [stderr] 836 | SRCCOPY, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `wsprintfA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:849:5 [INFO] [stderr] | [INFO] [stderr] 849 | wsprintfA( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:868:42 [INFO] [stderr] | [INFO] [stderr] 868 | let mut file_name = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:875:33 [INFO] [stderr] | [INFO] [stderr] 875 | State.RecordingHandle = CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:877:13 [INFO] [stderr] | [INFO] [stderr] 877 | GENERIC_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stderr] --> src/win32_handmade.rs:880:13 [INFO] [stderr] | [INFO] [stderr] 880 | CREATE_ALWAYS, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RtlCopyMemory` in this scope [INFO] [stderr] --> src/win32_handmade.rs:894:9 [INFO] [stderr] | [INFO] [stderr] 894 | RtlCopyMemory( [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/win32_handmade.rs:903:5 [INFO] [stderr] | [INFO] [stderr] 903 | CloseHandle(State.RecordingHandle); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:911:41 [INFO] [stderr] | [INFO] [stderr] 911 | let mut FileName = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:918:32 [INFO] [stderr] | [INFO] [stderr] 918 | State.PlaybackHandle = CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stderr] --> src/win32_handmade.rs:920:13 [INFO] [stderr] | [INFO] [stderr] 920 | GENERIC_READ, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stderr] --> src/win32_handmade.rs:923:13 [INFO] [stderr] | [INFO] [stderr] 923 | OPEN_EXISTING, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RtlCopyMemory` in this scope [INFO] [stderr] --> src/win32_handmade.rs:928:9 [INFO] [stderr] | [INFO] [stderr] 928 | RtlCopyMemory( [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/win32_handmade.rs:937:5 [INFO] [stderr] | [INFO] [stderr] 937 | CloseHandle(State.PlaybackHandle); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `WriteFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:943:5 [INFO] [stderr] | [INFO] [stderr] 943 | WriteFile( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:945:44 [INFO] [stderr] | [INFO] [stderr] 945 | NewInput as *mut GameInput as *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ReadFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:954:8 [INFO] [stderr] | [INFO] [stderr] 954 | if ReadFile( [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:956:44 [INFO] [stderr] | [INFO] [stderr] 956 | NewInput as *mut GameInput as *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ReadFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:967:13 [INFO] [stderr] | [INFO] [stderr] 967 | ReadFile( [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:969:52 [INFO] [stderr] | [INFO] [stderr] 969 | NewInput as *mut GameInput as *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope [INFO] [stderr] --> src/win32_handmade.rs:982:32 [INFO] [stderr] | [INFO] [stderr] 982 | let mut message = zeroed::(); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `PeekMessageW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:983:11 [INFO] [stderr] | [INFO] [stderr] 983 | while PeekMessageW(&mut message, zeroed(), 0, 0, PM_REMOVE) != 0 { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PM_REMOVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:983:54 [INFO] [stderr] | [INFO] [stderr] 983 | while PeekMessageW(&mut message, zeroed(), 0, 0, PM_REMOVE) != 0 { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WM_QUIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:984:31 [INFO] [stderr] | [INFO] [stderr] 984 | if message.message == WM_QUIT { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `TranslateMessage` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1106:17 [INFO] [stderr] | [INFO] [stderr] 1106 | TranslateMessage(&message); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DispatchMessageW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1107:17 [INFO] [stderr] | [INFO] [stderr] 1107 | DispatchMessageW(&message); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1114:13 [INFO] [stderr] | [INFO] [stderr] 1114 | window: HWND, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1115:14 [INFO] [stderr] | [INFO] [stderr] 1115 | message: UINT, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1116:13 [INFO] [stderr] | [INFO] [stderr] 1116 | 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/win32_handmade.rs:1117:13 [INFO] [stderr] | [INFO] [stderr] 1117 | 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/win32_handmade.rs:1118:6 [INFO] [stderr] | [INFO] [stderr] 1118 | ) -> LRESULT { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1139:28 [INFO] [stderr] | [INFO] [stderr] 1139 | let mut paint: PAINTSTRUCT = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1139:51 [INFO] [stderr] | [INFO] [stderr] 1139 | let mut paint: PAINTSTRUCT = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `BeginPaint` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1140:34 [INFO] [stderr] | [INFO] [stderr] 1140 | let device_context = BeginPaint(window, &mut paint); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `EndPaint` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1150:13 [INFO] [stderr] | [INFO] [stderr] 1150 | EndPaint(window, &paint); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DefWindowProcW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1153:14 [INFO] [stderr] | [INFO] [stderr] 1153 | _ => DefWindowProcW(window, message, wparam, lparam), [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1169:26 [INFO] [stderr] | [INFO] [stderr] 1169 | xinput_button_state: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1171:17 [INFO] [stderr] | [INFO] [stderr] 1171 | button_bit: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SHORT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1182:43 [INFO] [stderr] | [INFO] [stderr] 1182 | fn win32_process_xinput_stickvalue(value: SHORT, dead_zone_threshold: SHORT) -> f32 { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SHORT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1182:71 [INFO] [stderr] | [INFO] [stderr] 1182 | fn win32_process_xinput_stickvalue(value: SHORT, dead_zone_threshold: SHORT) -> f32 { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1192:37 [INFO] [stderr] | [INFO] [stderr] 1192 | unsafe fn win32_get_wall_clock() -> LARGE_INTEGER { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1193:31 [INFO] [stderr] | [INFO] [stderr] 1193 | let mut result = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `QueryPerformanceCounter` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1194:5 [INFO] [stderr] | [INFO] [stderr] 1194 | QueryPerformanceCounter(&mut result); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1197:44 [INFO] [stderr] | [INFO] [stderr] 1197 | unsafe fn win32_get_seconds_elasped(start: LARGE_INTEGER, end: LARGE_INTEGER) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1197:64 [INFO] [stderr] | [INFO] [stderr] 1197 | unsafe fn win32_get_seconds_elasped(start: LARGE_INTEGER, end: LARGE_INTEGER) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1231:33 [INFO] [stderr] | [INFO] [stderr] 1231 | let mut exe_file_name: [u8; MAX_PATH] = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1231:58 [INFO] [stderr] | [INFO] [stderr] 1231 | let mut exe_file_name: [u8; MAX_PATH] = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleFileNameA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1232:29 [INFO] [stderr] | [INFO] [stderr] 1232 | let size_of_file_name = GetModuleFileNameA( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1233:14 [INFO] [stderr] | [INFO] [stderr] 1233 | 0 as HMODULE, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1235:26 [INFO] [stderr] | [INFO] [stderr] 1235 | size_of::<[char; MAX_PATH]>().try_into().unwrap(), [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1287:53 [INFO] [stderr] | [INFO] [stderr] 1287 | let mut perfcounter_frequency_result = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `QueryPerformanceFrequency` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1288:5 [INFO] [stderr] | [INFO] [stderr] 1288 | QueryPerformanceFrequency(&mut perfcounter_frequency_result); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `timeBeginPeriod` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1292:29 [INFO] [stderr] | [INFO] [stderr] 1292 | let sleep_is_granular = timeBeginPeriod(desired_scheduler_ms) == TIMERR_NOERROR; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TIMERR_NOERROR` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1292:70 [INFO] [stderr] | [INFO] [stderr] 1292 | let sleep_is_granular = timeBeginPeriod(desired_scheduler_ms) == TIMERR_NOERROR; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleHandleW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1296:29 [INFO] [stderr] | [INFO] [stderr] 1296 | let instance = unsafe { GetModuleHandleW(name.as_ptr() as *const u16) as HINSTANCE }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1296:78 [INFO] [stderr] | [INFO] [stderr] 1296 | let instance = unsafe { GetModuleHandleW(name.as_ptr() as *const u16) as HINSTANCE }; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1298:21 [INFO] [stderr] | [INFO] [stderr] 1298 | let wnd_class = WNDCLASSW { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1299:16 [INFO] [stderr] | [INFO] [stderr] 1299 | 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/win32_handmade.rs:1299:29 [INFO] [stderr] | [INFO] [stderr] 1299 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RegisterClassW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1313:11 [INFO] [stderr] | [INFO] [stderr] 1313 | match RegisterClassW(&wnd_class) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateWindowExW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1315:26 [INFO] [stderr] | [INFO] [stderr] 1315 | let window = CreateWindowExW( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1319:17 [INFO] [stderr] | [INFO] [stderr] 1319 | 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/win32_handmade.rs:1319:39 [INFO] [stderr] | [INFO] [stderr] 1319 | 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/win32_handmade.rs:1320:17 [INFO] [stderr] | [INFO] [stderr] 1320 | 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/win32_handmade.rs:1321:17 [INFO] [stderr] | [INFO] [stderr] 1321 | 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/win32_handmade.rs:1322:17 [INFO] [stderr] | [INFO] [stderr] 1322 | 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/win32_handmade.rs:1323:17 [INFO] [stderr] | [INFO] [stderr] 1323 | CW_USEDEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetDC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1337:33 [INFO] [stderr] | [INFO] [stderr] 1337 | let RefreshDC = GetDC(window); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetDeviceCaps` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1338:40 [INFO] [stderr] | [INFO] [stderr] 1338 | let Win32RefreshRate = GetDeviceCaps(RefreshDC, VREFRESH); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VREFRESH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1338:65 [INFO] [stderr] | [INFO] [stderr] 1338 | let Win32RefreshRate = GetDeviceCaps(RefreshDC, VREFRESH); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ReleaseDC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1339:17 [INFO] [stderr] | [INFO] [stderr] 1339 | ReleaseDC(window, RefreshDC); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DSBPLAY_LOOPING` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1357:55 [INFO] [stderr] | [INFO] [stderr] 1357 | (*GLOBAL_SECONDARY_BUFFER).Play(0, 0, DSBPLAY_LOOPING); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1361:31 [INFO] [stderr] | [INFO] [stderr] 1361 | let samples = VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1364:21 [INFO] [stderr] | [INFO] [stderr] 1364 | MEM_COMMIT | MEM_RESERVE, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1364:34 [INFO] [stderr] | [INFO] [stderr] 1364 | MEM_COMMIT | MEM_RESERVE, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1365:21 [INFO] [stderr] | [INFO] [stderr] 1365 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1368:45 [INFO] [stderr] | [INFO] [stderr] 1368 | let mut base_address = 0 as LPVOID; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1372:78 [INFO] [stderr] | [INFO] [stderr] 1372 | base_address = (2 * 1024 * 1024 * 1024 * 1024 as u64) as LPVOID; //2 terabytes [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1389:41 [INFO] [stderr] | [INFO] [stderr] 1389 | State.GameMemoryBlock = VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1392:21 [INFO] [stderr] | [INFO] [stderr] 1392 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1392:35 [INFO] [stderr] | [INFO] [stderr] 1392 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1393:21 [INFO] [stderr] | [INFO] [stderr] 1393 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1397:49 [INFO] [stderr] | [INFO] [stderr] 1397 | game_memory.permanent_storage = VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1400:21 [INFO] [stderr] | [INFO] [stderr] 1400 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1400:35 [INFO] [stderr] | [INFO] [stderr] 1400 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1401:21 [INFO] [stderr] | [INFO] [stderr] 1401 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1404:49 [INFO] [stderr] | [INFO] [stderr] 1404 | game_memory.transient_storage = VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1407:21 [INFO] [stderr] | [INFO] [stderr] 1407 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1407:35 [INFO] [stderr] | [INFO] [stderr] 1407 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1408:21 [INFO] [stderr] | [INFO] [stderr] 1408 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1452:47 [INFO] [stderr] | [INFO] [stderr] 1452 | ReplayBuffer.FileHandle = CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1454:25 [INFO] [stderr] | [INFO] [stderr] 1454 | GENERIC_WRITE | GENERIC_READ, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1454:41 [INFO] [stderr] | [INFO] [stderr] 1454 | GENERIC_WRITE | GENERIC_READ, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1457:25 [INFO] [stderr] | [INFO] [stderr] 1457 | CREATE_ALWAYS, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1462:48 [INFO] [stderr] | [INFO] [stderr] 1462 | let mut MaxSize = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER_u` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1464:32 [INFO] [stderr] | [INFO] [stderr] 1464 | let msize: LARGE_INTEGER_u = *MaxSize.u_mut(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileMappingA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1465:46 [INFO] [stderr] | [INFO] [stderr] 1465 | ReplayBuffer.MemoryMap = CreateFileMappingA( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1468:25 [INFO] [stderr] | [INFO] [stderr] 1468 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `MapViewOfFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1473:48 [INFO] [stderr] | [INFO] [stderr] 1473 | ReplayBuffer.MemoryBlock = MapViewOfFile( [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FILE_MAP_ALL_ACCESS` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1475:25 [INFO] [stderr] | [INFO] [stderr] 1475 | FILE_MAP_ALL_ACCESS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CompareFileTime` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1511:28 [INFO] [stderr] | [INFO] [stderr] 1511 | if CompareFileTime(&new_dll_write_time, &game.dll_last_write_time) != 0 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `POINT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1534:55 [INFO] [stderr] | [INFO] [stderr] 1534 | ... let mut MouseP = zeroed::(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetCursorPos` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1535:29 [INFO] [stderr] | [INFO] [stderr] 1535 | ... GetCursorPos(&mut MouseP); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ScreenToClient` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1536:29 [INFO] [stderr] | [INFO] [stderr] 1536 | ... ScreenToClient(window, &mut MouseP); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetKeyState` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1542:34 [INFO] [stderr] | [INFO] [stderr] 1542 | ... (GetKeyState(VK_LBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VK_LBUTTON` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1542:46 [INFO] [stderr] | [INFO] [stderr] 1542 | ... (GetKeyState(VK_LBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetKeyState` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1546:34 [INFO] [stderr] | [INFO] [stderr] 1546 | ... (GetKeyState(VK_MBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VK_MBUTTON` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1546:46 [INFO] [stderr] | [INFO] [stderr] 1546 | ... (GetKeyState(VK_MBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetKeyState` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1550:34 [INFO] [stderr] | [INFO] [stderr] 1550 | ... (GetKeyState(VK_RBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VK_RBUTTON` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1550:46 [INFO] [stderr] | [INFO] [stderr] 1550 | ... (GetKeyState(VK_RBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetKeyState` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1554:34 [INFO] [stderr] | [INFO] [stderr] 1554 | ... (GetKeyState(VK_XBUTTON1) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VK_XBUTTON1` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1554:46 [INFO] [stderr] | [INFO] [stderr] 1554 | ... (GetKeyState(VK_XBUTTON1) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetKeyState` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1558:34 [INFO] [stderr] | [INFO] [stderr] 1558 | ... (GetKeyState(VK_XBUTTON2) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VK_XBUTTON2` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1558:46 [INFO] [stderr] | [INFO] [stderr] 1558 | ... (GetKeyState(VK_XBUTTON2) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `XUSER_MAX_COUNT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1561:60 [INFO] [stderr] | [INFO] [stderr] 1561 | ... let mut max_controller_count = XUSER_MAX_COUNT; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1595:45 [INFO] [stderr] | [INFO] [stderr] 1595 | ... XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1601:45 [INFO] [stderr] | [INFO] [stderr] 1601 | ... XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DS_OK` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1765:36 [INFO] [stderr] | [INFO] [stderr] 1765 | ... == DS_OK [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1881:51 [INFO] [stderr] | [INFO] [stderr] 1881 | ... let sleep_ms: DWORD = (1000.0 [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1883:44 [INFO] [stderr] | [INFO] [stderr] 1883 | ... as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `Sleep` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1885:41 [INFO] [stderr] | [INFO] [stderr] 1885 | ... Sleep(sleep_ms); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetDC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1917:50 [INFO] [stderr] | [INFO] [stderr] 1917 | ... let device_context = GetDC(window); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ReleaseDC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1924:29 [INFO] [stderr] | [INFO] [stderr] 1924 | ... ReleaseDC(window, device_context); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1930:53 [INFO] [stderr] | [INFO] [stderr] 1930 | ... let mut PlayCursor: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1931:54 [INFO] [stderr] | [INFO] [stderr] 1931 | ... let mut WriteCursor: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DS_OK` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1934:40 [INFO] [stderr] | [INFO] [stderr] 1934 | ... == DS_OK [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: type `win32_sound_output` should have an upper camel case name [INFO] [stderr] --> src/win32_handmade.rs:268:8 [INFO] [stderr] | [INFO] [stderr] 268 | struct win32_sound_output { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Win32SoundOutput` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `win32_debug_time_marker` should have an upper camel case name [INFO] [stderr] --> src/win32_handmade.rs:278:8 [INFO] [stderr] | [INFO] [stderr] 278 | struct win32_debug_time_marker { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Win32DebugTimeMarker` [INFO] [stderr] [INFO] [stderr] warning: type `win32_replay_buffer` should have an upper camel case name [INFO] [stderr] --> src/win32_handmade.rs:292:8 [INFO] [stderr] | [INFO] [stderr] 292 | struct win32_replay_buffer { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Win32ReplayBuffer` [INFO] [stderr] [INFO] [stderr] warning: type `win32_state` should have an upper camel case name [INFO] [stderr] --> src/win32_handmade.rs:310:8 [INFO] [stderr] | [INFO] [stderr] 310 | struct win32_state<'a> { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Win32State` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/win32_handmade.rs:962:12 [INFO] [stderr] | [INFO] [stderr] 962 | if (BytesRead == 0) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/win32_handmade.rs:1810:52 [INFO] [stderr] | [INFO] [stderr] 1810 | ... TargetCursor = (WriteCursor as i32 [INFO] [stderr] | ______________________________________^ [INFO] [stderr] 1811 | | ... + ExpectedSoundBytesPerFrame [INFO] [stderr] 1812 | | ... + SoundOutput.SafetyBytes as i32); [INFO] [stderr] | |___________________________________________________________^ [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1810 | TargetCursor = WriteCursor as i32 [INFO] [stderr] 1811 | + ExpectedSoundBytesPerFrame [INFO] [stderr] 1812 | + SoundOutput.SafetyBytes as i32; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/win32_handmade.rs:1815:37 [INFO] [stderr] | [INFO] [stderr] 1815 | ... (TargetCursor % SoundOutput.SecondaryBufferSize as i32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/win32_handmade.rs:1819:52 [INFO] [stderr] | [INFO] [stderr] 1819 | ... BytesToWrite = (SoundOutput.SecondaryBufferSize - ByteToLock); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stderr] --> src/win32_handmade.rs:868:13 [INFO] [stderr] | [INFO] [stderr] 868 | let mut file_name = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Sized` is not implemented for `[u8]` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: all local variables must have a statically known size [INFO] [stderr] = help: unsized locals are gated as an unstable feature [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stderr] --> src/win32_handmade.rs:911:13 [INFO] [stderr] | [INFO] [stderr] 911 | let mut FileName = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Sized` is not implemented for `[u8]` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: all local variables must have a statically known size [INFO] [stderr] = help: unsized locals are gated as an unstable feature [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `encode_wide` found for type `&std::ffi::OsStr` in the current scope [INFO] [stderr] --> src/win32_handmade.rs:1159:23 [INFO] [stderr] | [INFO] [stderr] 1159 | OsStr::new(value).encode_wide().chain(once(0)).collect() [INFO] [stderr] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/win32_handmade.rs:1260:24 [INFO] [stderr] | [INFO] [stderr] 1260 | exe_file_name: &exe_file_name, [INFO] [stderr] | ^^^^^^^^^^^^^^ expected `MAX_PATH`, found `MAX_PATH` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&[u8; _]` [INFO] [stderr] found type `&[u8; _]` [INFO] [stderr] [INFO] [stderr] error: aborting due to 363 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0308, E0408, E0412, E0422, E0425, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: Could not compile `handmadehero-rust`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1573:59 [INFO] [stderr] | [INFO] [stderr] 1573 | ... let mut controller_state: winapi::um::xinput::XINPUT_STATE = [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1576:40 [INFO] [stderr] | [INFO] [stderr] 1576 | ... == winapi::shared::winerror::ERROR_SUCCESS [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1584:56 [INFO] [stderr] | [INFO] [stderr] 1584 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_UP; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1586:56 [INFO] [stderr] | [INFO] [stderr] 1586 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_DOWN; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1588:56 [INFO] [stderr] | [INFO] [stderr] 1588 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_LEFT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1590:43 [INFO] [stderr] | [INFO] [stderr] 1590 | ... & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_RIGHT; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1676:41 [INFO] [stderr] | [INFO] [stderr] 1676 | ... winapi::um::xinput::XINPUT_GAMEPAD_A.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1682:41 [INFO] [stderr] | [INFO] [stderr] 1682 | ... winapi::um::xinput::XINPUT_GAMEPAD_B.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1689:41 [INFO] [stderr] | [INFO] [stderr] 1689 | ... winapi::um::xinput::XINPUT_GAMEPAD_X.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1696:41 [INFO] [stderr] | [INFO] [stderr] 1696 | ... winapi::um::xinput::XINPUT_GAMEPAD_Y.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1703:41 [INFO] [stderr] | [INFO] [stderr] 1703 | ... winapi::um::xinput::XINPUT_GAMEPAD_LEFT_SHOULDER.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1710:41 [INFO] [stderr] | [INFO] [stderr] 1710 | ... winapi::um::xinput::XINPUT_GAMEPAD_RIGHT_SHOULDER.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1717:41 [INFO] [stderr] | [INFO] [stderr] 1717 | ... winapi::um::xinput::XINPUT_GAMEPAD_START.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win32_handmade.rs:1724:41 [INFO] [stderr] | [INFO] [stderr] 1724 | ... winapi::um::xinput::XINPUT_GAMEPAD_BACK.into(), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:130:23 [INFO] [stderr] | [INFO] [stderr] 130 | memory: 0 as *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope [INFO] [stderr] --> src/win32_handmade.rs:135:11 [INFO] [stderr] | [INFO] [stderr] 135 | info: BITMAPINFO { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:136:20 [INFO] [stderr] | [INFO] [stderr] 136 | bmiHeader: BITMAPINFOHEADER { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `BI_RGB` in this scope [INFO] [stderr] --> src/win32_handmade.rs:142:28 [INFO] [stderr] | [INFO] [stderr] 142 | biCompression: BI_RGB, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:149:21 [INFO] [stderr] | [INFO] [stderr] 149 | bmiColors: [RGBQUAD { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPDIRECTSOUNDBUFFER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:157:37 [INFO] [stderr] | [INFO] [stderr] 157 | static mut GLOBAL_SECONDARY_BUFFER: LPDIRECTSOUNDBUFFER = null_mut(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:169:23 [INFO] [stderr] | [INFO] [stderr] 169 | let file_handle = CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stderr] --> src/win32_handmade.rs:171:9 [INFO] [stderr] | [INFO] [stderr] 171 | GENERIC_READ, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FILE_SHARE_READ` in this scope [INFO] [stderr] --> src/win32_handmade.rs:172:9 [INFO] [stderr] | [INFO] [stderr] 172 | FILE_SHARE_READ, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stderr] --> src/win32_handmade.rs:174:9 [INFO] [stderr] | [INFO] [stderr] 174 | OPEN_EXISTING, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:179:23 [INFO] [stderr] | [INFO] [stderr] 179 | if file_handle != INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:180:38 [INFO] [stderr] | [INFO] [stderr] 180 | let mut file_size = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetFileSizeEx` in this scope [INFO] [stderr] --> src/win32_handmade.rs:181:12 [INFO] [stderr] | [INFO] [stderr] 181 | if GetFileSizeEx(file_handle, &mut file_size) != 0 { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:182:31 [INFO] [stderr] | [INFO] [stderr] 182 | result.contents = VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:185:17 [INFO] [stderr] | [INFO] [stderr] 185 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:185:31 [INFO] [stderr] | [INFO] [stderr] 185 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:186:17 [INFO] [stderr] | [INFO] [stderr] 186 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:189:47 [INFO] [stderr] | [INFO] [stderr] 189 | let mut bytes_read = zeroed::(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ReadFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:190:20 [INFO] [stderr] | [INFO] [stderr] 190 | if ReadFile( [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/win32_handmade.rs:208:9 [INFO] [stderr] | [INFO] [stderr] 208 | CloseHandle(file_handle); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualFree` in this scope [INFO] [stderr] --> src/win32_handmade.rs:217:9 [INFO] [stderr] | [INFO] [stderr] 217 | VirtualFree(memory as *mut winapi::ctypes::c_void, 0, MEM_RELEASE); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:217:63 [INFO] [stderr] | [INFO] [stderr] 217 | VirtualFree(memory as *mut winapi::ctypes::c_void, 0, MEM_RELEASE); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:228:23 [INFO] [stderr] | [INFO] [stderr] 228 | let file_handle = CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:230:9 [INFO] [stderr] | [INFO] [stderr] 230 | GENERIC_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stderr] --> src/win32_handmade.rs:233:9 [INFO] [stderr] | [INFO] [stderr] 233 | CREATE_ALWAYS, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:238:23 [INFO] [stderr] | [INFO] [stderr] 238 | if file_handle != INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:239:42 [INFO] [stderr] | [INFO] [stderr] 239 | let mut bytes_written = zeroed::(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `WriteFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:240:12 [INFO] [stderr] | [INFO] [stderr] 240 | if WriteFile( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/win32_handmade.rs:254:9 [INFO] [stderr] | [INFO] [stderr] 254 | CloseHandle(file_handle); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:261:18 [INFO] [stderr] | [INFO] [stderr] 261 | memory: *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BITMAPINFO` in this scope [INFO] [stderr] --> src/win32_handmade.rs:266:11 [INFO] [stderr] | [INFO] [stderr] 266 | info: BITMAPINFO, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:279:23 [INFO] [stderr] | [INFO] [stderr] 279 | OutputPlayCursor: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:280:24 [INFO] [stderr] | [INFO] [stderr] 280 | OutputWriteCursor: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:281:21 [INFO] [stderr] | [INFO] [stderr] 281 | OutputLocation: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:282:22 [INFO] [stderr] | [INFO] [stderr] 282 | OutputByteCount: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:283:29 [INFO] [stderr] | [INFO] [stderr] 283 | ExpectedFlipPlayCursor: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:285:21 [INFO] [stderr] | [INFO] [stderr] 285 | FlipPlayCursor: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:286:22 [INFO] [stderr] | [INFO] [stderr] 286 | FlipWriteCursor: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:293:17 [INFO] [stderr] | [INFO] [stderr] 293 | FileHandle: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:294:16 [INFO] [stderr] | [INFO] [stderr] 294 | MemoryMap: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:295:20 [INFO] [stderr] | [INFO] [stderr] 295 | FileName: [u8; MAX_PATH], [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:296:23 [INFO] [stderr] | [INFO] [stderr] 296 | MemoryBlock: *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:304:36 [INFO] [stderr] | [INFO] [stderr] 304 | FileName: ['\0' as u8; MAX_PATH], [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:312:27 [INFO] [stderr] | [INFO] [stderr] 312 | GameMemoryBlock: *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:315:22 [INFO] [stderr] | [INFO] [stderr] 315 | RecordingHandle: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:318:21 [INFO] [stderr] | [INFO] [stderr] 318 | PlaybackHandle: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:321:29 [INFO] [stderr] | [INFO] [stderr] 321 | exe_file_name: &'a [u8; MAX_PATH], [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/win32_handmade.rs:325:39 [INFO] [stderr] | [INFO] [stderr] 325 | fn win32_get_window_dimension(window: HWND) -> Win32WindowDimension { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:327:40 [INFO] [stderr] | [INFO] [stderr] 327 | let mut client_rect = zeroed::(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetClientRect` in this scope [INFO] [stderr] --> src/win32_handmade.rs:328:9 [INFO] [stderr] | [INFO] [stderr] 328 | GetClientRect(window, &mut client_rect); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:521:20 [INFO] [stderr] | [INFO] [stderr] 521 | game_code_dll: HMODULE, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stderr] --> src/win32_handmade.rs:525:26 [INFO] [stderr] | [INFO] [stderr] 525 | dll_last_write_time: FILETIME, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stderr] --> src/win32_handmade.rs:528:57 [INFO] [stderr] | [INFO] [stderr] 528 | unsafe fn win32_get_last_write_time(file_name: &str) -> FILETIME { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stderr] --> src/win32_handmade.rs:529:40 [INFO] [stderr] | [INFO] [stderr] 529 | let mut last_write_time = zeroed::(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WIN32_FIND_DATAA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:531:34 [INFO] [stderr] | [INFO] [stderr] 531 | let mut find_data = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindFirstFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:532:23 [INFO] [stderr] | [INFO] [stderr] 532 | let find_handle = FindFirstFileA(name.as_ptr(), &mut find_data); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:533:23 [INFO] [stderr] | [INFO] [stderr] 533 | if find_handle != INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindClose` in this scope [INFO] [stderr] --> src/win32_handmade.rs:535:9 [INFO] [stderr] | [INFO] [stderr] 535 | FindClose(find_handle); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:554:29 [INFO] [stderr] | [INFO] [stderr] 554 | game_code_dll: 0 as HMODULE, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CopyFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:560:8 [INFO] [stderr] | [INFO] [stderr] 560 | if CopyFileA(source_name.as_ptr(), temp_name.as_ptr(), FALSE) != 0 { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:560:60 [INFO] [stderr] | [INFO] [stderr] 560 | if CopyFileA(source_name.as_ptr(), temp_name.as_ptr(), FALSE) != 0 { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadLibraryA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:569:28 [INFO] [stderr] | [INFO] [stderr] 569 | result.game_code_dll = LoadLibraryA(temp_name.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetProcAddress` in this scope [INFO] [stderr] --> src/win32_handmade.rs:573:32 [INFO] [stderr] | [INFO] [stderr] 573 | let update = transmute(GetProcAddress( [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetProcAddress` in this scope [INFO] [stderr] --> src/win32_handmade.rs:580:43 [INFO] [stderr] | [INFO] [stderr] 580 | let get_sound_samples = transmute(GetProcAddress( [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FreeLibrary` in this scope [INFO] [stderr] --> src/win32_handmade.rs:595:9 [INFO] [stderr] | [INFO] [stderr] 595 | FreeLibrary(game_code.game_code_dll); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:602:44 [INFO] [stderr] | [INFO] [stderr] 602 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `XINPUT_STATE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:602:56 [INFO] [stderr] | [INFO] [stderr] 602 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:602:73 [INFO] [stderr] | [INFO] [stderr] 602 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:603:45 [INFO] [stderr] | [INFO] [stderr] 603 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `XINPUT_STATE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:603:60 [INFO] [stderr] | [INFO] [stderr] 603 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:603:77 [INFO] [stderr] | [INFO] [stderr] 603 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_DEVICE_NOT_CONNECTED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:604:12 [INFO] [stderr] | [INFO] [stderr] 604 | return ERROR_DEVICE_NOT_CONNECTED; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:608:44 [INFO] [stderr] | [INFO] [stderr] 608 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `XINPUT_VIBRATION` in this scope [INFO] [stderr] --> src/win32_handmade.rs:608:56 [INFO] [stderr] | [INFO] [stderr] 608 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:608:77 [INFO] [stderr] | [INFO] [stderr] 608 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:609:45 [INFO] [stderr] | [INFO] [stderr] 609 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `XINPUT_VIBRATION` in this scope [INFO] [stderr] --> src/win32_handmade.rs:609:60 [INFO] [stderr] | [INFO] [stderr] 609 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:609:81 [INFO] [stderr] | [INFO] [stderr] 609 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_DEVICE_NOT_CONNECTED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:610:12 [INFO] [stderr] | [INFO] [stderr] 610 | return ERROR_DEVICE_NOT_CONNECTED; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadLibraryA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:616:23 [INFO] [stderr] | [INFO] [stderr] 616 | let mut library = LoadLibraryA(xinput1_4.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:617:24 [INFO] [stderr] | [INFO] [stderr] 617 | if library == 0 as HINSTANCE { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadLibraryA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:619:19 [INFO] [stderr] | [INFO] [stderr] 619 | library = LoadLibraryA(xinput9_1_0.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:621:24 [INFO] [stderr] | [INFO] [stderr] 621 | if library == 0 as HINSTANCE { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadLibraryA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:623:19 [INFO] [stderr] | [INFO] [stderr] 623 | library = LoadLibraryA(xinput1_3.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:626:24 [INFO] [stderr] | [INFO] [stderr] 626 | if library != 0 as HINSTANCE { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetProcAddress` in this scope [INFO] [stderr] --> src/win32_handmade.rs:628:36 [INFO] [stderr] | [INFO] [stderr] 628 | XInputGetState = transmute(GetProcAddress(library, xinput_get_state_str.as_ptr())); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetProcAddress` in this scope [INFO] [stderr] --> src/win32_handmade.rs:630:38 [INFO] [stderr] | [INFO] [stderr] 630 | XINPUT_SET_STATE = transmute(GetProcAddress(library, xinput_set_state_str.as_ptr())); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPCGUID` in this scope [INFO] [stderr] --> src/win32_handmade.rs:634:31 [INFO] [stderr] | [INFO] [stderr] 634 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPDIRECTSOUND` in this scope [INFO] [stderr] --> src/win32_handmade.rs:634:45 [INFO] [stderr] | [INFO] [stderr] 634 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPUNKNOWN` in this scope [INFO] [stderr] --> src/win32_handmade.rs:634:60 [INFO] [stderr] | [INFO] [stderr] 634 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:634:74 [INFO] [stderr] | [INFO] [stderr] 634 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/win32_handmade.rs:635:37 [INFO] [stderr] | [INFO] [stderr] 635 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadLibraryA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:637:27 [INFO] [stderr] | [INFO] [stderr] 637 | let d_sound_library = LoadLibraryA(dsound_str.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPDIRECTSOUND` in this scope [INFO] [stderr] --> src/win32_handmade.rs:639:37 [INFO] [stderr] | [INFO] [stderr] 639 | let mut direct_sound = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetProcAddress` in this scope [INFO] [stderr] --> src/win32_handmade.rs:643:39 [INFO] [stderr] | [INFO] [stderr] 643 | let direct_sound_create_ptr = GetProcAddress(d_sound_library, dsoundcrate_str.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:647:16 [INFO] [stderr] | [INFO] [stderr] 647 | && SUCCEEDED(DirectSoundCreate(zeroed(), &mut direct_sound, zeroed())) [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WAVEFORMATEX` in this scope [INFO] [stderr] --> src/win32_handmade.rs:649:44 [INFO] [stderr] | [INFO] [stderr] 649 | let mut wave_format = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WAVE_FORMAT_PCM` in this scope [INFO] [stderr] --> src/win32_handmade.rs:650:38 [INFO] [stderr] | [INFO] [stderr] 650 | wave_format.wFormatTag = WAVE_FORMAT_PCM; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:656:73 [INFO] [stderr] | [INFO] [stderr] 656 | wave_format.nSamplesPerSec * wave_format.nBlockAlign as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:658:16 [INFO] [stderr] | [INFO] [stderr] 658 | if SUCCEEDED((*direct_sound).SetCooperativeLevel(window, DSSCL_PRIORITY)) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DSSCL_PRIORITY` in this scope [INFO] [stderr] --> src/win32_handmade.rs:658:70 [INFO] [stderr] | [INFO] [stderr] 658 | if SUCCEEDED((*direct_sound).SetCooperativeLevel(window, DSSCL_PRIORITY)) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:661:55 [INFO] [stderr] | [INFO] [stderr] 661 | let mut buffer_description = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:662:55 [INFO] [stderr] | [INFO] [stderr] 662 | buffer_description.dwSize = size_of::().try_into().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DSBCAPS_PRIMARYBUFFER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:663:46 [INFO] [stderr] | [INFO] [stderr] 663 | buffer_description.dwFlags = DSBCAPS_PRIMARYBUFFER; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPDIRECTSOUNDBUFFER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:664:51 [INFO] [stderr] | [INFO] [stderr] 664 | let mut primary_buffer = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:666:20 [INFO] [stderr] | [INFO] [stderr] 666 | if SUCCEEDED((*direct_sound).CreateSoundBuffer( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:671:24 [INFO] [stderr] | [INFO] [stderr] 671 | if SUCCEEDED((*primary_buffer).SetFormat(&wave_format)) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:682:44 [INFO] [stderr] | [INFO] [stderr] 682 | let mut buffer_desc = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:683:44 [INFO] [stderr] | [INFO] [stderr] 683 | buffer_desc.dwSize = size_of::().try_into().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:687:16 [INFO] [stderr] | [INFO] [stderr] 687 | if SUCCEEDED((*direct_sound).CreateSoundBuffer( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:704:18 [INFO] [stderr] | [INFO] [stderr] 704 | BytesToLock: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:705:19 [INFO] [stderr] | [INFO] [stderr] 705 | BytesToWrite: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:709:26 [INFO] [stderr] | [INFO] [stderr] 709 | let mut Region1Size: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:711:26 [INFO] [stderr] | [INFO] [stderr] 711 | let mut Region2Size: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:713:8 [INFO] [stderr] | [INFO] [stderr] 713 | if SUCCEEDED((*GLOBAL_SECONDARY_BUFFER).Lock( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:755:26 [INFO] [stderr] | [INFO] [stderr] 755 | let mut Region1Size: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:757:26 [INFO] [stderr] | [INFO] [stderr] 757 | let mut Region2Size: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/win32_handmade.rs:759:8 [INFO] [stderr] | [INFO] [stderr] 759 | if SUCCEEDED((*GLOBAL_SECONDARY_BUFFER).Lock( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualFree` in this scope [INFO] [stderr] --> src/win32_handmade.rs:790:13 [INFO] [stderr] | [INFO] [stderr] 790 | VirtualFree(buffer.memory, 0, MEM_RELEASE); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:790:43 [INFO] [stderr] | [INFO] [stderr] 790 | VirtualFree(buffer.memory, 0, MEM_RELEASE); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BITMAPINFOHEADER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:797:46 [INFO] [stderr] | [INFO] [stderr] 797 | buffer.info.bmiHeader.biSize = size_of::() as u32; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `BI_RGB` in this scope [INFO] [stderr] --> src/win32_handmade.rs:802:43 [INFO] [stderr] | [INFO] [stderr] 802 | buffer.info.bmiHeader.biCompression = BI_RGB; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:806:9 [INFO] [stderr] | [INFO] [stderr] 806 | VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:809:13 [INFO] [stderr] | [INFO] [stderr] 809 | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:810:13 [INFO] [stderr] | [INFO] [stderr] 810 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HDC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:816:21 [INFO] [stderr] | [INFO] [stderr] 816 | device_context: HDC, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `StretchDIBits` in this scope [INFO] [stderr] --> src/win32_handmade.rs:823:9 [INFO] [stderr] | [INFO] [stderr] 823 | StretchDIBits( [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DIB_RGB_COLORS` in this scope [INFO] [stderr] --> src/win32_handmade.rs:835:13 [INFO] [stderr] | [INFO] [stderr] 835 | DIB_RGB_COLORS, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SRCCOPY` in this scope [INFO] [stderr] --> src/win32_handmade.rs:836:13 [INFO] [stderr] | [INFO] [stderr] 836 | SRCCOPY, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `wsprintfA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:849:5 [INFO] [stderr] | [INFO] [stderr] 849 | wsprintfA( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:868:42 [INFO] [stderr] | [INFO] [stderr] 868 | let mut file_name = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:875:33 [INFO] [stderr] | [INFO] [stderr] 875 | State.RecordingHandle = CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:877:13 [INFO] [stderr] | [INFO] [stderr] 877 | GENERIC_WRITE, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stderr] --> src/win32_handmade.rs:880:13 [INFO] [stderr] | [INFO] [stderr] 880 | CREATE_ALWAYS, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RtlCopyMemory` in this scope [INFO] [stderr] --> src/win32_handmade.rs:894:9 [INFO] [stderr] | [INFO] [stderr] 894 | RtlCopyMemory( [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/win32_handmade.rs:903:5 [INFO] [stderr] | [INFO] [stderr] 903 | CloseHandle(State.RecordingHandle); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:911:41 [INFO] [stderr] | [INFO] [stderr] 911 | let mut FileName = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:918:32 [INFO] [stderr] | [INFO] [stderr] 918 | State.PlaybackHandle = CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stderr] --> src/win32_handmade.rs:920:13 [INFO] [stderr] | [INFO] [stderr] 920 | GENERIC_READ, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stderr] --> src/win32_handmade.rs:923:13 [INFO] [stderr] | [INFO] [stderr] 923 | OPEN_EXISTING, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RtlCopyMemory` in this scope [INFO] [stderr] --> src/win32_handmade.rs:928:9 [INFO] [stderr] | [INFO] [stderr] 928 | RtlCopyMemory( [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/win32_handmade.rs:937:5 [INFO] [stderr] | [INFO] [stderr] 937 | CloseHandle(State.PlaybackHandle); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `WriteFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:943:5 [INFO] [stderr] | [INFO] [stderr] 943 | WriteFile( [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:945:44 [INFO] [stderr] | [INFO] [stderr] 945 | NewInput as *mut GameInput as *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ReadFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:954:8 [INFO] [stderr] | [INFO] [stderr] 954 | if ReadFile( [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:956:44 [INFO] [stderr] | [INFO] [stderr] 956 | NewInput as *mut GameInput as *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ReadFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:967:13 [INFO] [stderr] | [INFO] [stderr] 967 | ReadFile( [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/win32_handmade.rs:969:52 [INFO] [stderr] | [INFO] [stderr] 969 | NewInput as *mut GameInput as *mut c_void, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use core::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 2 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope [INFO] [stderr] --> src/win32_handmade.rs:982:32 [INFO] [stderr] | [INFO] [stderr] 982 | let mut message = zeroed::(); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `PeekMessageW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:983:11 [INFO] [stderr] | [INFO] [stderr] 983 | while PeekMessageW(&mut message, zeroed(), 0, 0, PM_REMOVE) != 0 { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PM_REMOVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:983:54 [INFO] [stderr] | [INFO] [stderr] 983 | while PeekMessageW(&mut message, zeroed(), 0, 0, PM_REMOVE) != 0 { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WM_QUIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:984:31 [INFO] [stderr] | [INFO] [stderr] 984 | if message.message == WM_QUIT { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `TranslateMessage` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1106:17 [INFO] [stderr] | [INFO] [stderr] 1106 | TranslateMessage(&message); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DispatchMessageW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1107:17 [INFO] [stderr] | [INFO] [stderr] 1107 | DispatchMessageW(&message); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1114:13 [INFO] [stderr] | [INFO] [stderr] 1114 | window: HWND, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1115:14 [INFO] [stderr] | [INFO] [stderr] 1115 | message: UINT, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1116:13 [INFO] [stderr] | [INFO] [stderr] 1116 | 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/win32_handmade.rs:1117:13 [INFO] [stderr] | [INFO] [stderr] 1117 | 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/win32_handmade.rs:1118:6 [INFO] [stderr] | [INFO] [stderr] 1118 | ) -> LRESULT { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1139:28 [INFO] [stderr] | [INFO] [stderr] 1139 | let mut paint: PAINTSTRUCT = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1139:51 [INFO] [stderr] | [INFO] [stderr] 1139 | let mut paint: PAINTSTRUCT = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `BeginPaint` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1140:34 [INFO] [stderr] | [INFO] [stderr] 1140 | let device_context = BeginPaint(window, &mut paint); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `EndPaint` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1150:13 [INFO] [stderr] | [INFO] [stderr] 1150 | EndPaint(window, &paint); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DefWindowProcW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1153:14 [INFO] [stderr] | [INFO] [stderr] 1153 | _ => DefWindowProcW(window, message, wparam, lparam), [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1169:26 [INFO] [stderr] | [INFO] [stderr] 1169 | xinput_button_state: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1171:17 [INFO] [stderr] | [INFO] [stderr] 1171 | button_bit: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SHORT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1182:43 [INFO] [stderr] | [INFO] [stderr] 1182 | fn win32_process_xinput_stickvalue(value: SHORT, dead_zone_threshold: SHORT) -> f32 { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SHORT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1182:71 [INFO] [stderr] | [INFO] [stderr] 1182 | fn win32_process_xinput_stickvalue(value: SHORT, dead_zone_threshold: SHORT) -> f32 { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1192:37 [INFO] [stderr] | [INFO] [stderr] 1192 | unsafe fn win32_get_wall_clock() -> LARGE_INTEGER { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1193:31 [INFO] [stderr] | [INFO] [stderr] 1193 | let mut result = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `QueryPerformanceCounter` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1194:5 [INFO] [stderr] | [INFO] [stderr] 1194 | QueryPerformanceCounter(&mut result); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1197:44 [INFO] [stderr] | [INFO] [stderr] 1197 | unsafe fn win32_get_seconds_elasped(start: LARGE_INTEGER, end: LARGE_INTEGER) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1197:64 [INFO] [stderr] | [INFO] [stderr] 1197 | unsafe fn win32_get_seconds_elasped(start: LARGE_INTEGER, end: LARGE_INTEGER) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1231:33 [INFO] [stderr] | [INFO] [stderr] 1231 | let mut exe_file_name: [u8; MAX_PATH] = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1231:58 [INFO] [stderr] | [INFO] [stderr] 1231 | let mut exe_file_name: [u8; MAX_PATH] = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleFileNameA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1232:29 [INFO] [stderr] | [INFO] [stderr] 1232 | let size_of_file_name = GetModuleFileNameA( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1233:14 [INFO] [stderr] | [INFO] [stderr] 1233 | 0 as HMODULE, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1235:26 [INFO] [stderr] | [INFO] [stderr] 1235 | size_of::<[char; MAX_PATH]>().try_into().unwrap(), [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1287:53 [INFO] [stderr] | [INFO] [stderr] 1287 | let mut perfcounter_frequency_result = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `QueryPerformanceFrequency` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1288:5 [INFO] [stderr] | [INFO] [stderr] 1288 | QueryPerformanceFrequency(&mut perfcounter_frequency_result); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `timeBeginPeriod` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1292:29 [INFO] [stderr] | [INFO] [stderr] 1292 | let sleep_is_granular = timeBeginPeriod(desired_scheduler_ms) == TIMERR_NOERROR; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TIMERR_NOERROR` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1292:70 [INFO] [stderr] | [INFO] [stderr] 1292 | let sleep_is_granular = timeBeginPeriod(desired_scheduler_ms) == TIMERR_NOERROR; [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleHandleW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1296:29 [INFO] [stderr] | [INFO] [stderr] 1296 | let instance = unsafe { GetModuleHandleW(name.as_ptr() as *const u16) as HINSTANCE }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1296:78 [INFO] [stderr] | [INFO] [stderr] 1296 | let instance = unsafe { GetModuleHandleW(name.as_ptr() as *const u16) as HINSTANCE }; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1298:21 [INFO] [stderr] | [INFO] [stderr] 1298 | let wnd_class = WNDCLASSW { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1299:16 [INFO] [stderr] | [INFO] [stderr] 1299 | 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/win32_handmade.rs:1299:29 [INFO] [stderr] | [INFO] [stderr] 1299 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RegisterClassW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1313:11 [INFO] [stderr] | [INFO] [stderr] 1313 | match RegisterClassW(&wnd_class) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateWindowExW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1315:26 [INFO] [stderr] | [INFO] [stderr] 1315 | let window = CreateWindowExW( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1319:17 [INFO] [stderr] | [INFO] [stderr] 1319 | 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/win32_handmade.rs:1319:39 [INFO] [stderr] | [INFO] [stderr] 1319 | 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/win32_handmade.rs:1320:17 [INFO] [stderr] | [INFO] [stderr] 1320 | 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/win32_handmade.rs:1321:17 [INFO] [stderr] | [INFO] [stderr] 1321 | 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/win32_handmade.rs:1322:17 [INFO] [stderr] | [INFO] [stderr] 1322 | 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/win32_handmade.rs:1323:17 [INFO] [stderr] | [INFO] [stderr] 1323 | CW_USEDEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetDC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1337:33 [INFO] [stderr] | [INFO] [stderr] 1337 | let RefreshDC = GetDC(window); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetDeviceCaps` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1338:40 [INFO] [stderr] | [INFO] [stderr] 1338 | let Win32RefreshRate = GetDeviceCaps(RefreshDC, VREFRESH); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VREFRESH` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1338:65 [INFO] [stderr] | [INFO] [stderr] 1338 | let Win32RefreshRate = GetDeviceCaps(RefreshDC, VREFRESH); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ReleaseDC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1339:17 [INFO] [stderr] | [INFO] [stderr] 1339 | ReleaseDC(window, RefreshDC); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DSBPLAY_LOOPING` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1357:55 [INFO] [stderr] | [INFO] [stderr] 1357 | (*GLOBAL_SECONDARY_BUFFER).Play(0, 0, DSBPLAY_LOOPING); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1361:31 [INFO] [stderr] | [INFO] [stderr] 1361 | let samples = VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1364:21 [INFO] [stderr] | [INFO] [stderr] 1364 | MEM_COMMIT | MEM_RESERVE, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1364:34 [INFO] [stderr] | [INFO] [stderr] 1364 | MEM_COMMIT | MEM_RESERVE, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1365:21 [INFO] [stderr] | [INFO] [stderr] 1365 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1368:45 [INFO] [stderr] | [INFO] [stderr] 1368 | let mut base_address = 0 as LPVOID; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1372:78 [INFO] [stderr] | [INFO] [stderr] 1372 | base_address = (2 * 1024 * 1024 * 1024 * 1024 as u64) as LPVOID; //2 terabytes [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1389:41 [INFO] [stderr] | [INFO] [stderr] 1389 | State.GameMemoryBlock = VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1392:21 [INFO] [stderr] | [INFO] [stderr] 1392 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1392:35 [INFO] [stderr] | [INFO] [stderr] 1392 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1393:21 [INFO] [stderr] | [INFO] [stderr] 1393 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1397:49 [INFO] [stderr] | [INFO] [stderr] 1397 | game_memory.permanent_storage = VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1400:21 [INFO] [stderr] | [INFO] [stderr] 1400 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1400:35 [INFO] [stderr] | [INFO] [stderr] 1400 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1401:21 [INFO] [stderr] | [INFO] [stderr] 1401 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `VirtualAlloc` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1404:49 [INFO] [stderr] | [INFO] [stderr] 1404 | game_memory.transient_storage = VirtualAlloc( [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1407:21 [INFO] [stderr] | [INFO] [stderr] 1407 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1407:35 [INFO] [stderr] | [INFO] [stderr] 1407 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1408:21 [INFO] [stderr] | [INFO] [stderr] 1408 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1452:47 [INFO] [stderr] | [INFO] [stderr] 1452 | ReplayBuffer.FileHandle = CreateFileA( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1454:25 [INFO] [stderr] | [INFO] [stderr] 1454 | GENERIC_WRITE | GENERIC_READ, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1454:41 [INFO] [stderr] | [INFO] [stderr] 1454 | GENERIC_WRITE | GENERIC_READ, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1457:25 [INFO] [stderr] | [INFO] [stderr] 1457 | CREATE_ALWAYS, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1462:48 [INFO] [stderr] | [INFO] [stderr] 1462 | let mut MaxSize = zeroed::(); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LARGE_INTEGER_u` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1464:32 [INFO] [stderr] | [INFO] [stderr] 1464 | let msize: LARGE_INTEGER_u = *MaxSize.u_mut(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateFileMappingA` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1465:46 [INFO] [stderr] | [INFO] [stderr] 1465 | ReplayBuffer.MemoryMap = CreateFileMappingA( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1468:25 [INFO] [stderr] | [INFO] [stderr] 1468 | PAGE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `MapViewOfFile` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1473:48 [INFO] [stderr] | [INFO] [stderr] 1473 | ReplayBuffer.MemoryBlock = MapViewOfFile( [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FILE_MAP_ALL_ACCESS` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1475:25 [INFO] [stderr] | [INFO] [stderr] 1475 | FILE_MAP_ALL_ACCESS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CompareFileTime` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1511:28 [INFO] [stderr] | [INFO] [stderr] 1511 | if CompareFileTime(&new_dll_write_time, &game.dll_last_write_time) != 0 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `POINT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1534:55 [INFO] [stderr] | [INFO] [stderr] 1534 | ... let mut MouseP = zeroed::(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetCursorPos` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1535:29 [INFO] [stderr] | [INFO] [stderr] 1535 | ... GetCursorPos(&mut MouseP); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ScreenToClient` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1536:29 [INFO] [stderr] | [INFO] [stderr] 1536 | ... ScreenToClient(window, &mut MouseP); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetKeyState` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1542:34 [INFO] [stderr] | [INFO] [stderr] 1542 | ... (GetKeyState(VK_LBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VK_LBUTTON` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1542:46 [INFO] [stderr] | [INFO] [stderr] 1542 | ... (GetKeyState(VK_LBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetKeyState` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1546:34 [INFO] [stderr] | [INFO] [stderr] 1546 | ... (GetKeyState(VK_MBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VK_MBUTTON` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1546:46 [INFO] [stderr] | [INFO] [stderr] 1546 | ... (GetKeyState(VK_MBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetKeyState` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1550:34 [INFO] [stderr] | [INFO] [stderr] 1550 | ... (GetKeyState(VK_RBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VK_RBUTTON` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1550:46 [INFO] [stderr] | [INFO] [stderr] 1550 | ... (GetKeyState(VK_RBUTTON) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetKeyState` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1554:34 [INFO] [stderr] | [INFO] [stderr] 1554 | ... (GetKeyState(VK_XBUTTON1) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VK_XBUTTON1` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1554:46 [INFO] [stderr] | [INFO] [stderr] 1554 | ... (GetKeyState(VK_XBUTTON1) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetKeyState` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1558:34 [INFO] [stderr] | [INFO] [stderr] 1558 | ... (GetKeyState(VK_XBUTTON2) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `VK_XBUTTON2` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1558:46 [INFO] [stderr] | [INFO] [stderr] 1558 | ... (GetKeyState(VK_XBUTTON2) & (1 << 15)) != 0, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `XUSER_MAX_COUNT` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1561:60 [INFO] [stderr] | [INFO] [stderr] 1561 | ... let mut max_controller_count = XUSER_MAX_COUNT; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1595:45 [INFO] [stderr] | [INFO] [stderr] 1595 | ... XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1601:45 [INFO] [stderr] | [INFO] [stderr] 1601 | ... XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DS_OK` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1765:36 [INFO] [stderr] | [INFO] [stderr] 1765 | ... == DS_OK [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1881:51 [INFO] [stderr] | [INFO] [stderr] 1881 | ... let sleep_ms: DWORD = (1000.0 [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1883:44 [INFO] [stderr] | [INFO] [stderr] 1883 | ... as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `Sleep` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1885:41 [INFO] [stderr] | [INFO] [stderr] 1885 | ... Sleep(sleep_ms); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetDC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1917:50 [INFO] [stderr] | [INFO] [stderr] 1917 | ... let device_context = GetDC(window); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `ReleaseDC` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1924:29 [INFO] [stderr] | [INFO] [stderr] 1924 | ... ReleaseDC(window, device_context); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1930:53 [INFO] [stderr] | [INFO] [stderr] 1930 | ... let mut PlayCursor: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1931:54 [INFO] [stderr] | [INFO] [stderr] 1931 | ... let mut WriteCursor: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DS_OK` in this scope [INFO] [stderr] --> src/win32_handmade.rs:1934:40 [INFO] [stderr] | [INFO] [stderr] 1934 | ... == DS_OK [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: type `win32_sound_output` should have an upper camel case name [INFO] [stderr] --> src/win32_handmade.rs:268:8 [INFO] [stderr] | [INFO] [stderr] 268 | struct win32_sound_output { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Win32SoundOutput` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `win32_debug_time_marker` should have an upper camel case name [INFO] [stderr] --> src/win32_handmade.rs:278:8 [INFO] [stderr] | [INFO] [stderr] 278 | struct win32_debug_time_marker { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Win32DebugTimeMarker` [INFO] [stderr] [INFO] [stderr] warning: type `win32_replay_buffer` should have an upper camel case name [INFO] [stderr] --> src/win32_handmade.rs:292:8 [INFO] [stderr] | [INFO] [stderr] 292 | struct win32_replay_buffer { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Win32ReplayBuffer` [INFO] [stderr] [INFO] [stderr] warning: type `win32_state` should have an upper camel case name [INFO] [stderr] --> src/win32_handmade.rs:310:8 [INFO] [stderr] | [INFO] [stderr] 310 | struct win32_state<'a> { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Win32State` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/win32_handmade.rs:962:12 [INFO] [stderr] | [INFO] [stderr] 962 | if (BytesRead == 0) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/win32_handmade.rs:1810:52 [INFO] [stderr] | [INFO] [stderr] 1810 | ... TargetCursor = (WriteCursor as i32 [INFO] [stderr] | ______________________________________^ [INFO] [stderr] 1811 | | ... + ExpectedSoundBytesPerFrame [INFO] [stderr] 1812 | | ... + SoundOutput.SafetyBytes as i32); [INFO] [stderr] | |___________________________________________________________^ [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1810 | TargetCursor = WriteCursor as i32 [INFO] [stderr] 1811 | + ExpectedSoundBytesPerFrame [INFO] [stderr] 1812 | + SoundOutput.SafetyBytes as i32; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/win32_handmade.rs:1815:37 [INFO] [stderr] | [INFO] [stderr] 1815 | ... (TargetCursor % SoundOutput.SecondaryBufferSize as i32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/win32_handmade.rs:1819:52 [INFO] [stderr] | [INFO] [stderr] 1819 | ... BytesToWrite = (SoundOutput.SecondaryBufferSize - ByteToLock); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stderr] --> src/win32_handmade.rs:868:13 [INFO] [stderr] | [INFO] [stderr] 868 | let mut file_name = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Sized` is not implemented for `[u8]` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: all local variables must have a statically known size [INFO] [stderr] = help: unsized locals are gated as an unstable feature [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stderr] --> src/win32_handmade.rs:911:13 [INFO] [stderr] | [INFO] [stderr] 911 | let mut FileName = ['\0' as u8; MAX_PATH]; [INFO] [stderr] | ^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Sized` is not implemented for `[u8]` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: all local variables must have a statically known size [INFO] [stderr] = help: unsized locals are gated as an unstable feature [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `encode_wide` found for type `&std::ffi::OsStr` in the current scope [INFO] [stderr] --> src/win32_handmade.rs:1159:23 [INFO] [stderr] | [INFO] [stderr] 1159 | OsStr::new(value).encode_wide().chain(once(0)).collect() [INFO] [stderr] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/win32_handmade.rs:1260:24 [INFO] [stderr] | [INFO] [stderr] 1260 | exe_file_name: &exe_file_name, [INFO] [stderr] | ^^^^^^^^^^^^^^ expected `MAX_PATH`, found `MAX_PATH` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&[u8; _]` [INFO] [stderr] found type `&[u8; _]` [INFO] [stderr] [INFO] [stderr] error: aborting due to 363 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0308, E0408, E0412, E0422, E0425, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: Could not compile `handmadehero-rust`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "37a9463adbf03e103e879bf8d419137a55f42549d56a32be70d7201d161a7046"` [INFO] running `"docker" "rm" "-f" "37a9463adbf03e103e879bf8d419137a55f42549d56a32be70d7201d161a7046"` [INFO] [stdout] 37a9463adbf03e103e879bf8d419137a55f42549d56a32be70d7201d161a7046