[INFO] cloning repository https://github.com/UnTraDe/terraria-autoswing [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/UnTraDe/terraria-autoswing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnTraDe%2Fterraria-autoswing", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnTraDe%2Fterraria-autoswing'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 011915ad0e4fc73178620d5b345801c46403a511 [INFO] checking UnTraDe/terraria-autoswing against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnTraDe%2Fterraria-autoswing" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/UnTraDe/terraria-autoswing on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/UnTraDe/terraria-autoswing [INFO] finished tweaking git repo https://github.com/UnTraDe/terraria-autoswing [INFO] tweaked toml for git repo https://github.com/UnTraDe/terraria-autoswing written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/UnTraDe/terraria-autoswing already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 36ab260103ae33426ebdd9618fbf0af45975d5836772e40864ca3f45ff45f9ab [INFO] running `Command { std: "docker" "start" "-a" "36ab260103ae33426ebdd9618fbf0af45975d5836772e40864ca3f45ff45f9ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "36ab260103ae33426ebdd9618fbf0af45975d5836772e40864ca3f45ff45f9ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36ab260103ae33426ebdd9618fbf0af45975d5836772e40864ca3f45ff45f9ab", kill_on_drop: false }` [INFO] [stdout] 36ab260103ae33426ebdd9618fbf0af45975d5836772e40864ca3f45ff45f9ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2b1eaa9e7fa4ce5459219beb1895768ab6de14433c251d64c7f4541b870ffbe [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e2b1eaa9e7fa4ce5459219beb1895768ab6de14433c251d64c7f4541b870ffbe", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Checking terraria-autoswing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/main.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::shared` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `shared` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `winapi::ctypes`, `shared::minwindef::DWORD`, `shared::minwindef::BOOL`, `shared::minwindef::HINSTANCE__` [INFO] [stdout] --> src/main.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use shared::minwindef::{DWORD, BOOL, HINSTANCE__}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^^^^^^^ [INFO] [stdout] 7 | use winnt::HANDLE; [INFO] [stdout] 8 | use winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winnt` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winnt::HANDLE; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | let snapshot = tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | let snapshot = tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | let mut entry = tlhelp32::PROCESSENTRY32 { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | dwSize: size_of::() as u32, [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | if tlhelp32::Process32First(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:30:60 [INFO] [stdout] | [INFO] [stdout] 30 | if tlhelp32::Process32First(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | while tlhelp32::Process32Next(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:40:63 [INFO] [stdout] | [INFO] [stdout] 40 | while tlhelp32::Process32Next(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `handleapi` [INFO] [stdout] --> src/main.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | handleapi::CloseHandle(snapshot); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `handleapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:56:61 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:62:6 [INFO] [stdout] | [INFO] [stdout] 62 | if psapi::EnumProcessModulesEx(process, &mut (modules[0]) as *mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MOD... [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:62:123 [INFO] [stdout] | [INFO] [stdout] 62 | ... size, &mut used_size as *mut DWORD, psapi::LIST_MODULES_ALL) != 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | if psapi::GetModuleBaseNameA(process, modules[i], &mut buf[0] as *mut i8, 128) != 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | let mut info = psapi::MODULEINFO { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/main.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | lpBaseOfDll: 0 as *mut winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/main.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/main.rs:76:38 [INFO] [stdout] | [INFO] [stdout] 76 | EntryPoint: 0 as *mut winapi::ctypes::c_void [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::shared` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `shared` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `winapi::ctypes`, `shared::minwindef::DWORD`, `shared::minwindef::BOOL`, `shared::minwindef::HINSTANCE__` [INFO] [stdout] --> src/main.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use shared::minwindef::{DWORD, BOOL, HINSTANCE__}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^^^^^^^ [INFO] [stdout] 7 | use winnt::HANDLE; [INFO] [stdout] 8 | use winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winnt` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winnt::HANDLE; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | if psapi::GetModuleInformation(process, modules[0], &mut info as *mut psapi::MODULEINFO, size_of::() as DWORD) !... [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:79:77 [INFO] [stdout] | [INFO] [stdout] 79 | ...es[0], &mut info as *mut psapi::MODULEINFO, size_of::() as DWORD) != 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:79:106 [INFO] [stdout] | [INFO] [stdout] 79 | ...i::MODULEINFO, size_of::() as DWORD) != 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 95 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:129:19 [INFO] [stdout] | [INFO] [stdout] 129 | let mut info = winnt::MEMORY_BASIC_INFORMATION { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi` [INFO] [stdout] --> src/main.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | let filled = memoryapi::VirtualQueryEx(process, current_addr as *const c_void, &mut info as *mut winnt::MEMORY_BASIC_INFORMATION, size... [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `memoryapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:139:101 [INFO] [stdout] | [INFO] [stdout] 139 | ... *const c_void, &mut info as *mut winnt::MEMORY_BASIC_INFORMATION, size_of::()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:139:144 [INFO] [stdout] | [INFO] [stdout] 139 | ...MORY_BASIC_INFORMATION, size_of::()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOACCESS) == 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:144:64 [INFO] [stdout] | [INFO] [stdout] 144 | if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOACCESS) == 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:144:107 [INFO] [stdout] | [INFO] [stdout] 144 | if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOACCESS) == 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi` [INFO] [stdout] --> src/main.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | if memoryapi::ReadProcessMemory(process, info.BaseAddress, buf.as_mut_ptr() as *mut c_void, info.RegionSize, &mut bytes_read as *mut ... [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `memoryapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:152:16 [INFO] [stdout] | [INFO] [stdout] 152 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi` [INFO] [stdout] --> src/main.rs:192:6 [INFO] [stdout] | [INFO] [stdout] 192 | if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 { [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `memoryapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | let snapshot = tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:192:55 [INFO] [stdout] | [INFO] [stdout] 192 | if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | let snapshot = tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | let mut entry = tlhelp32::PROCESSENTRY32 { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | dwSize: size_of::() as u32, [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | if tlhelp32::Process32First(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:193:14 [INFO] [stdout] | [INFO] [stdout] 193 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:30:60 [INFO] [stdout] | [INFO] [stdout] 30 | if tlhelp32::Process32First(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | while tlhelp32::Process32Next(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/main.rs:40:63 [INFO] [stdout] | [INFO] [stdout] 40 | while tlhelp32::Process32Next(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tlhelp32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `handleapi` [INFO] [stdout] --> src/main.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | handleapi::CloseHandle(snapshot); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `handleapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi` [INFO] [stdout] --> src/main.rs:199:6 [INFO] [stdout] | [INFO] [stdout] 199 | if memoryapi::WriteProcessMemory(process, addr, &nop_array[0] as *const u8 as *const c_void, size, &mut bytes_written as *mut usize) ==... [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `memoryapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:200:14 [INFO] [stdout] | [INFO] [stdout] 200 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:56:61 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi` [INFO] [stdout] --> src/main.rs:206:6 [INFO] [stdout] | [INFO] [stdout] 206 | if memoryapi::VirtualProtectEx(process, addr, size, old_protect, &mut temp as *mut DWORD) == 0 { [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `memoryapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:207:14 [INFO] [stdout] | [INFO] [stdout] 207 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `processthreadsapi` [INFO] [stdout] --> src/main.rs:222:18 [INFO] [stdout] | [INFO] [stdout] 222 | let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `processthreadsapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:222:49 [INFO] [stdout] | [INFO] [stdout] 222 | let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `handleapi` [INFO] [stdout] --> src/main.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | handleapi::CloseHandle(process); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `handleapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:10:50 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_process_id_by_name(name: &str) -> Option { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stdout] --> src/main.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 58 | let mut modules = [0 as *mut HINSTANCE__; 1024]; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stdout] --> src/main.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 59 | let size = size_of::<[*mut HINSTANCE__; 1024]>() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:59:55 [INFO] [stdout] | [INFO] [stdout] 59 | let size = size_of::<[*mut HINSTANCE__; 1024]>() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:60:28 [INFO] [stdout] | [INFO] [stdout] 60 | let mut used_size = 0 as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stdout] --> src/main.rs:62:74 [INFO] [stdout] | [INFO] [stdout] 62 | if psapi::EnumProcessModulesEx(process, &mut (modules[0]) as *mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MOD... [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:62:116 [INFO] [stdout] | [INFO] [stdout] 62 | ...mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MODULES_ALL) != 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stdout] --> src/main.rs:64:59 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 64 | let module_count = used_size as usize / size_of::<*mut HINSTANCE__>(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:79:130 [INFO] [stdout] | [INFO] [stdout] 79 | ...size_of::() as DWORD) != 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:190:30 [INFO] [stdout] | [INFO] [stdout] 190 | let mut old_protect = 0 as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:192:111 [INFO] [stdout] | [INFO] [stdout] 192 | if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:204:23 [INFO] [stdout] | [INFO] [stdout] 204 | let mut temp = 0 as DWORD; // According to the MSDN documentation the function will fail if lpflOldProtect is null [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:206:86 [INFO] [stdout] | [INFO] [stdout] 206 | if memoryapi::VirtualProtectEx(process, addr, size, old_protect, &mut temp as *mut DWORD) == 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/main.rs:222:85 [INFO] [stdout] | [INFO] [stdout] 222 | let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:62:6 [INFO] [stdout] | [INFO] [stdout] 62 | if psapi::EnumProcessModulesEx(process, &mut (modules[0]) as *mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MOD... [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:62:123 [INFO] [stdout] | [INFO] [stdout] 62 | ... size, &mut used_size as *mut DWORD, psapi::LIST_MODULES_ALL) != 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | if psapi::GetModuleBaseNameA(process, modules[i], &mut buf[0] as *mut i8, 128) != 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | let mut info = psapi::MODULEINFO { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/main.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | lpBaseOfDll: 0 as *mut winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/main.rs:76:38 [INFO] [stdout] | [INFO] [stdout] 76 | EntryPoint: 0 as *mut winapi::ctypes::c_void [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | if psapi::GetModuleInformation(process, modules[0], &mut info as *mut psapi::MODULEINFO, size_of::() as DWORD) !... [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:79:77 [INFO] [stdout] | [INFO] [stdout] 79 | ...es[0], &mut info as *mut psapi::MODULEINFO, size_of::() as DWORD) != 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi` [INFO] [stdout] --> src/main.rs:79:106 [INFO] [stdout] | [INFO] [stdout] 79 | ...i::MODULEINFO, size_of::() as DWORD) != 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 95 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:129:19 [INFO] [stdout] | [INFO] [stdout] 129 | let mut info = winnt::MEMORY_BASIC_INFORMATION { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi` [INFO] [stdout] --> src/main.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | let filled = memoryapi::VirtualQueryEx(process, current_addr as *const c_void, &mut info as *mut winnt::MEMORY_BASIC_INFORMATION, size... [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `memoryapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:139:101 [INFO] [stdout] | [INFO] [stdout] 139 | ... *const c_void, &mut info as *mut winnt::MEMORY_BASIC_INFORMATION, size_of::()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:139:144 [INFO] [stdout] | [INFO] [stdout] 139 | ...MORY_BASIC_INFORMATION, size_of::()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOACCESS) == 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:144:64 [INFO] [stdout] | [INFO] [stdout] 144 | if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOACCESS) == 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:144:107 [INFO] [stdout] | [INFO] [stdout] 144 | if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOACCESS) == 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi` [INFO] [stdout] --> src/main.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | if memoryapi::ReadProcessMemory(process, info.BaseAddress, buf.as_mut_ptr() as *mut c_void, info.RegionSize, &mut bytes_read as *mut ... [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `memoryapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:152:16 [INFO] [stdout] | [INFO] [stdout] 152 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi` [INFO] [stdout] --> src/main.rs:192:6 [INFO] [stdout] | [INFO] [stdout] 192 | if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 { [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `memoryapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:192:55 [INFO] [stdout] | [INFO] [stdout] 192 | if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:193:14 [INFO] [stdout] | [INFO] [stdout] 193 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi` [INFO] [stdout] --> src/main.rs:199:6 [INFO] [stdout] | [INFO] [stdout] 199 | if memoryapi::WriteProcessMemory(process, addr, &nop_array[0] as *const u8 as *const c_void, size, &mut bytes_written as *mut usize) ==... [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `memoryapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:200:14 [INFO] [stdout] | [INFO] [stdout] 200 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi` [INFO] [stdout] --> src/main.rs:206:6 [INFO] [stdout] | [INFO] [stdout] 206 | if memoryapi::VirtualProtectEx(process, addr, size, old_protect, &mut temp as *mut DWORD) == 0 { [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `memoryapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi` [INFO] [stdout] --> src/main.rs:207:14 [INFO] [stdout] | [INFO] [stdout] 207 | let err = errhandlingapi::GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `processthreadsapi` [INFO] [stdout] --> src/main.rs:222:18 [INFO] [stdout] | [INFO] [stdout] 222 | let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `processthreadsapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/main.rs:222:49 [INFO] [stdout] | [INFO] [stdout] 222 | let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `handleapi` [INFO] [stdout] --> src/main.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | handleapi::CloseHandle(process); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `handleapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:10:50 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_process_id_by_name(name: &str) -> Option { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stdout] --> src/main.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 58 | let mut modules = [0 as *mut HINSTANCE__; 1024]; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stdout] --> src/main.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 59 | let size = size_of::<[*mut HINSTANCE__; 1024]>() as DWORD; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:59:55 [INFO] [stdout] | [INFO] [stdout] 59 | let size = size_of::<[*mut HINSTANCE__; 1024]>() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:60:28 [INFO] [stdout] | [INFO] [stdout] 60 | let mut used_size = 0 as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stdout] --> src/main.rs:62:74 [INFO] [stdout] | [INFO] [stdout] 62 | if psapi::EnumProcessModulesEx(process, &mut (modules[0]) as *mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MOD... [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:62:116 [INFO] [stdout] | [INFO] [stdout] 62 | ...mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MODULES_ALL) != 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stdout] --> src/main.rs:64:59 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 64 | let module_count = used_size as usize / size_of::<*mut HINSTANCE__>(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:79:130 [INFO] [stdout] | [INFO] [stdout] 79 | ...size_of::() as DWORD) != 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:190:30 [INFO] [stdout] | [INFO] [stdout] 190 | let mut old_protect = 0 as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:192:111 [INFO] [stdout] | [INFO] [stdout] 192 | if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:204:23 [INFO] [stdout] | [INFO] [stdout] 204 | let mut temp = 0 as DWORD; // According to the MSDN documentation the function will fail if lpflOldProtect is null [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:206:86 [INFO] [stdout] | [INFO] [stdout] 206 | if memoryapi::VirtualProtectEx(process, addr, size, old_protect, &mut temp as *mut DWORD) == 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/main.rs:222:85 [INFO] [stdout] | [INFO] [stdout] 222 | let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 59 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `terraria-autoswing` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 59 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "e2b1eaa9e7fa4ce5459219beb1895768ab6de14433c251d64c7f4541b870ffbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2b1eaa9e7fa4ce5459219beb1895768ab6de14433c251d64c7f4541b870ffbe", kill_on_drop: false }` [INFO] [stdout] e2b1eaa9e7fa4ce5459219beb1895768ab6de14433c251d64c7f4541b870ffbe