[INFO] updating cached repository https://github.com/etra0/memory-rs [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] [stderr] From https://github.com/etra0/memory-rs [INFO] [stderr] 5f90a01..40c4c26 master -> master [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 40c4c26817f54d2ac8ef43fdbc38138ad2c2d0b1 [INFO] testing etra0/memory-rs against beta-2020-06-03 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fetra0%2Fmemory-rs" "/workspace/builds/worker-13/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/etra0/memory-rs on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/etra0/memory-rs [INFO] finished tweaking git repo https://github.com/etra0/memory-rs [INFO] tweaked toml for git repo https://github.com/etra0/memory-rs written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/etra0/memory-rs already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-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" "+beta-2020-06-03" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 07cf1e5678730616046b43f8c040e50df279eb9e935c47fc6e85d6073a83bed3 [INFO] running `"docker" "start" "-a" "07cf1e5678730616046b43f8c040e50df279eb9e935c47fc6e85d6073a83bed3"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling memory-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/mod.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use winapi::shared::basetsd::DWORD_PTR; [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/process/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | 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/process/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use winapi::um::handleapi; [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/process/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use winapi::um::tlhelp32; [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/memory/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::shared::basetsd::DWORD_PTR; [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/memory/mod.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::shared::minwindef::{DWORD, LPCVOID, LPVOID, PDWORD}; [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/memory/mod.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use winapi::um::memoryapi::{ [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/memory/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use winapi::um::winnt::{HANDLE, MEM_COMMIT, MEM_RESERVE, PAGE_EXECUTE_READWRITE}; [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/process/process_wrapper.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::shared::basetsd::DWORD_PTR; [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/process/process_wrapper.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use winapi::shared::minwindef::{LPCVOID, 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/process/process_wrapper.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use winapi::um::memoryapi::{ReadProcessMemory, WriteProcessMemory}; [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/process/process_wrapper.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::um::processthreadsapi::OpenProcess; [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/process/process_wrapper.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | 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/process/process_wrapper.rs:107:17 [INFO] [stderr] | [INFO] [stderr] 107 | winapi::um::winnt::PROCESS_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 `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:13:27 [INFO] [stderr] | [INFO] [stderr] 13 | let h_snap = unsafe { tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0) }; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:13:62 [INFO] [stderr] | [INFO] [stderr] 13 | let h_snap = unsafe { tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0) }; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:15:18 [INFO] [stderr] | [INFO] [stderr] 15 | if h_snap == handleapi::INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:19:29 [INFO] [stderr] | [INFO] [stderr] 19 | let mut process_entry = tlhelp32::PROCESSENTRY32::default(); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:20:43 [INFO] [stderr] | [INFO] [stderr] 20 | process_entry.dwSize = mem::size_of::() as u32; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:23:15 [INFO] [stderr] | [INFO] [stderr] 23 | match tlhelp32::Process32First(h_snap, &mut process_entry) { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:34:24 [INFO] [stderr] | [INFO] [stderr] 34 | if tlhelp32::Process32Next(h_snap, &mut process_entry) == 0 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | handleapi::CloseHandle(h_snap); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:54:9 [INFO] [stderr] | [INFO] [stderr] 54 | tlhelp32::CreateToolhelp32Snapshot( [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:55:13 [INFO] [stderr] | [INFO] [stderr] 55 | tlhelp32::TH32CS_SNAPMODULE | tlhelp32::TH32CS_SNAPMODULE32, [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:55:43 [INFO] [stderr] | [INFO] [stderr] 55 | tlhelp32::TH32CS_SNAPMODULE | tlhelp32::TH32CS_SNAPMODULE32, [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:60:18 [INFO] [stderr] | [INFO] [stderr] 60 | if h_snap == handleapi::INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:64:28 [INFO] [stderr] | [INFO] [stderr] 64 | let mut module_entry = tlhelp32::MODULEENTRY32::default(); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:65:42 [INFO] [stderr] | [INFO] [stderr] 65 | module_entry.dwSize = mem::size_of::() as u32; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:68:15 [INFO] [stderr] | [INFO] [stderr] 68 | match tlhelp32::Module32First(h_snap, &mut module_entry) { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:80:24 [INFO] [stderr] | [INFO] [stderr] 80 | if tlhelp32::Module32Next(h_snap, &mut module_entry) == 0 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | handleapi::CloseHandle(h_snap); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:8:27 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn get_aob(h_process: HANDLE, ptr: DWORD_PTR, n: usize) -> Vec { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:8:40 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn get_aob(h_process: HANDLE, ptr: DWORD_PTR, n: usize) -> Vec { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stderr] --> src/memory/mod.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | ReadProcessMemory( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:15:20 [INFO] [stderr] | [INFO] [stderr] 15 | ptr as LPCVOID, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:16:36 [INFO] [stderr] | [INFO] [stderr] 16 | buffer.as_mut_ptr() as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:28:29 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn write_aob(h_process: HANDLE, ptr: DWORD_PTR, source: &Vec) -> usize { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:28:42 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn write_aob(h_process: HANDLE, ptr: DWORD_PTR, source: &Vec) -> usize { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:29:31 [INFO] [stderr] | [INFO] [stderr] 29 | let mut protection_bytes: DWORD = 0x0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | VirtualProtectEx( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:37:23 [INFO] [stderr] | [INFO] [stderr] 37 | c_addr as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stderr] --> src/memory/mod.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | PAGE_EXECUTE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:40:38 [INFO] [stderr] | [INFO] [stderr] 40 | &mut protection_bytes as PDWORD, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stderr] --> src/memory/mod.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | WriteProcessMemory( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:45:23 [INFO] [stderr] | [INFO] [stderr] 45 | c_addr 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/memory/mod.rs:46:36 [INFO] [stderr] | [INFO] [stderr] 46 | source[..].as_ptr() as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | VirtualProtectEx( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:53:23 [INFO] [stderr] | [INFO] [stderr] 53 | c_addr as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:56:38 [INFO] [stderr] | [INFO] [stderr] 56 | &mut protection_bytes as PDWORD, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:69:30 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn write_nops(h_process: HANDLE, ptr: DWORD_PTR, n: usize) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:69:43 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn write_nops(h_process: HANDLE, ptr: DWORD_PTR, n: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:74:33 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:74:50 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:74:64 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:79:33 [INFO] [stderr] | [INFO] [stderr] 79 | let mut current_protection: DWORD = 0x0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 82 | VirtualProtectEx( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:84:24 [INFO] [stderr] | [INFO] [stderr] 84 | to_hook as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stderr] --> src/memory/mod.rs:86:13 [INFO] [stderr] | [INFO] [stderr] 86 | PAGE_EXECUTE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:87:40 [INFO] [stderr] | [INFO] [stderr] 87 | &mut current_protection as PDWORD, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:96:27 [INFO] [stderr] | [INFO] [stderr] 96 | let relative_address: DWORD = (_diff as DWORD - 5) as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:96:45 [INFO] [stderr] | [INFO] [stderr] 96 | let relative_address: DWORD = (_diff as DWORD - 5) as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:96:59 [INFO] [stderr] | [INFO] [stderr] 96 | let relative_address: DWORD = (_diff as DWORD - 5) as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:97:54 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 97 | let relative_aob: [u8; 4] = unsafe { transmute::(relative_address.to_le()) }; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:107:9 [INFO] [stderr] | [INFO] [stderr] 107 | VirtualProtectEx( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:109:24 [INFO] [stderr] | [INFO] [stderr] 109 | to_hook as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:112:40 [INFO] [stderr] | [INFO] [stderr] 112 | &mut current_protection as PDWORD, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:118:16 [INFO] [stderr] | [INFO] [stderr] 118 | h_process: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:119:26 [INFO] [stderr] | [INFO] [stderr] 119 | module_base_address: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:120:18 [INFO] [stderr] | [INFO] [stderr] 120 | entry_point: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:124:6 [INFO] [stderr] | [INFO] [stderr] 124 | ) -> DWORD_PTR { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:129:30 [INFO] [stderr] | [INFO] [stderr] 129 | let mut shellcode_space: DWORD_PTR = 0x0; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAllocEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:134:13 [INFO] [stderr] | [INFO] [stderr] 134 | VirtualAllocEx( [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:136:36 [INFO] [stderr] | [INFO] [stderr] 136 | current_address as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/memory/mod.rs:138:17 [INFO] [stderr] | [INFO] [stderr] 138 | 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/memory/mod.rs:138:31 [INFO] [stderr] | [INFO] [stderr] 138 | MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stderr] --> src/memory/mod.rs:139:17 [INFO] [stderr] | [INFO] [stderr] 139 | PAGE_EXECUTE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:140:18 [INFO] [stderr] | [INFO] [stderr] 140 | ) as DWORD_PTR [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 9 | h_process: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:10:26 [INFO] [stderr] | [INFO] [stderr] 10 | module_base_address: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:15:34 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn write_aob(&self, ptr: DWORD_PTR, data: &Vec, absolute: bool) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:25:35 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn write_nops(&self, ptr: DWORD_PTR, n: usize, absolute: bool) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:35:32 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn get_aob(&self, ptr: DWORD_PTR, length: usize, absolute: bool) -> Vec { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:49:47 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn read_value(&self, ptr: DWORD_PTR, absolute: bool) -> OutputType { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:61:13 [INFO] [stderr] | [INFO] [stderr] 61 | ReadProcessMemory( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:63:25 [INFO] [stderr] | [INFO] [stderr] 63 | addr as LPCVOID, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:64:51 [INFO] [stderr] | [INFO] [stderr] 64 | &mut buffer as *mut OutputType as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:74:47 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn write_value(&self, ptr: DWORD_PTR, output: InputType, absolute: bool) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:85:13 [INFO] [stderr] | [INFO] [stderr] 85 | WriteProcessMemory( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:87:25 [INFO] [stderr] | [INFO] [stderr] 87 | addr 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/process/process_wrapper.rs:88:50 [INFO] [stderr] | [INFO] [stderr] 88 | (&output as *const InputType) as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:97:42 [INFO] [stderr] | [INFO] [stderr] 97 | pub fn hook_function(&self, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:97:56 [INFO] [stderr] | [INFO] [stderr] 97 | pub fn hook_function(&self, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:106:13 [INFO] [stderr] | [INFO] [stderr] 106 | OpenProcess( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:125:22 [INFO] [stderr] | [INFO] [stderr] 125 | entry_point: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:129:10 [INFO] [stderr] | [INFO] [stderr] 129 | ) -> DWORD_PTR { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:142:18 [INFO] [stderr] | [INFO] [stderr] 142 | address: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/process/mod.rs:11:53 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn get_process_id(process_name: &str) -> Result { [INFO] [stderr] | - ^^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/process/mod.rs:12:25 [INFO] [stderr] | [INFO] [stderr] 12 | let mut process_id: 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/process/mod.rs:51:36 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn get_module_base(process_id: DWORD, module_name: &str) -> Result { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/mod.rs:51:72 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn get_module_base(process_id: DWORD, module_name: &str) -> Result { [INFO] [stderr] | - ^^^^^^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/mod.rs:52:34 [INFO] [stderr] | [INFO] [stderr] 52 | let mut module_base_address: DWORD_PTR = 0x0; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/mod.rs:77:59 [INFO] [stderr] | [INFO] [stderr] 77 | break module_entry.modBaseAddr as DWORD_PTR; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: aborting due to 102 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `memory-rs`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "07cf1e5678730616046b43f8c040e50df279eb9e935c47fc6e85d6073a83bed3"` [INFO] running `"docker" "rm" "-f" "07cf1e5678730616046b43f8c040e50df279eb9e935c47fc6e85d6073a83bed3"` [INFO] [stdout] 07cf1e5678730616046b43f8c040e50df279eb9e935c47fc6e85d6073a83bed3