[INFO] cloning repository https://github.com/etra0/memory-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/etra0/memory-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fetra0%2Fmemory-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fetra0%2Fmemory-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f2608823c0dfc98b8b3c10fe8c7bf85d8c3242d [INFO] checking etra0/memory-rs against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fetra0%2Fmemory-rs" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/etra0/memory-rs on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-6/source/Cargo.toml [INFO] crate git repo https://github.com/etra0/memory-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f4752639d4262513c5de1bc30fe8c3d6c2c1f7310d453e1ff73df116f0fd7b08 [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" "f4752639d4262513c5de1bc30fe8c3d6c2c1f7310d453e1ff73df116f0fd7b08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f4752639d4262513c5de1bc30fe8c3d6c2c1f7310d453e1ff73df116f0fd7b08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4752639d4262513c5de1bc30fe8c3d6c2c1f7310d453e1ff73df116f0fd7b08", kill_on_drop: false }` [INFO] [stdout] f4752639d4262513c5de1bc30fe8c3d6c2c1f7310d453e1ff73df116f0fd7b08 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] d4e3f06f330c42d2cc406f2be5a0240f4b56162c35790a3a2ce8b783b5e2a0e6 [INFO] running `Command { std: "docker" "start" "-a" "d4e3f06f330c42d2cc406f2be5a0240f4b56162c35790a3a2ce8b783b5e2a0e6", kill_on_drop: false }` [INFO] [stderr] Checking memory-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::basetsd::DWORD_PTR; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::handleapi; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::tlhelp32; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/memory/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::basetsd::DWORD_PTR; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/memory/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::minwindef::{DWORD, LPCVOID, LPVOID, PDWORD}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/memory/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::memoryapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/memory/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winnt::{HANDLE, MEM_COMMIT, MEM_RESERVE, PAGE_EXECUTE_READWRITE}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::basetsd::DWORD_PTR; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::minwindef::{LPCVOID, LPVOID}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::memoryapi::{ReadProcessMemory, WriteProcessMemory}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::processthreadsapi::OpenProcess; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winnt::HANDLE; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::basetsd::DWORD_PTR; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::handleapi; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::tlhelp32; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/memory/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::basetsd::DWORD_PTR; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/memory/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::minwindef::{DWORD, LPCVOID, LPVOID, PDWORD}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/memory/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::memoryapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/memory/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winnt::{HANDLE, MEM_COMMIT, MEM_RESERVE, PAGE_EXECUTE_READWRITE}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::basetsd::DWORD_PTR; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::minwindef::{LPCVOID, LPVOID}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::memoryapi::{ReadProcessMemory, WriteProcessMemory}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::processthreadsapi::OpenProcess; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winnt::HANDLE; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | winapi::um::winnt::PROCESS_ALL_ACCESS, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/process/process_wrapper.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | winapi::um::winnt::PROCESS_ALL_ACCESS, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/process/mod.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | let h_snap = unsafe { 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/process/mod.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | let h_snap = unsafe { 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/process/mod.rs:13:62 [INFO] [stdout] | [INFO] [stdout] 13 | let h_snap = unsafe { 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 `handleapi` [INFO] [stdout] --> src/process/mod.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | if h_snap == handleapi::INVALID_HANDLE_VALUE { [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 `tlhelp32` [INFO] [stdout] --> src/process/mod.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | let mut process_entry = tlhelp32::PROCESSENTRY32::default(); [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/process/mod.rs:20:43 [INFO] [stdout] | [INFO] [stdout] 20 | process_entry.dwSize = mem::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/process/mod.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | match tlhelp32::Process32First(h_snap, &mut process_entry) { [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/process/mod.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | if tlhelp32::Process32Next(h_snap, &mut process_entry) == 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/process/mod.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | handleapi::CloseHandle(h_snap); [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 `tlhelp32` [INFO] [stdout] --> src/process/mod.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | tlhelp32::CreateToolhelp32Snapshot( [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/process/mod.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | tlhelp32::TH32CS_SNAPMODULE | tlhelp32::TH32CS_SNAPMODULE32, [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/process/mod.rs:55:43 [INFO] [stdout] | [INFO] [stdout] 55 | tlhelp32::TH32CS_SNAPMODULE | tlhelp32::TH32CS_SNAPMODULE32, [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/process/mod.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | if h_snap == handleapi::INVALID_HANDLE_VALUE { [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 `tlhelp32` [INFO] [stdout] --> src/process/mod.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | let mut module_entry = tlhelp32::MODULEENTRY32::default(); [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/process/mod.rs:65:42 [INFO] [stdout] | [INFO] [stdout] 65 | module_entry.dwSize = mem::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/process/mod.rs:13:62 [INFO] [stdout] | [INFO] [stdout] 13 | let h_snap = unsafe { 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/process/mod.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | match tlhelp32::Module32First(h_snap, &mut module_entry) { [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/process/mod.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | if h_snap == handleapi::INVALID_HANDLE_VALUE { [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 `tlhelp32` [INFO] [stdout] --> src/process/mod.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | let mut process_entry = tlhelp32::PROCESSENTRY32::default(); [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/process/mod.rs:20:43 [INFO] [stdout] | [INFO] [stdout] 20 | process_entry.dwSize = mem::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/process/mod.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | match tlhelp32::Process32First(h_snap, &mut process_entry) { [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/process/mod.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | if tlhelp32::Module32Next(h_snap, &mut module_entry) == 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/process/mod.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | handleapi::CloseHandle(h_snap); [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 `tlhelp32` [INFO] [stdout] --> src/process/mod.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | if tlhelp32::Process32Next(h_snap, &mut process_entry) == 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/process/mod.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | handleapi::CloseHandle(h_snap); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `handleapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/memory/mod.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn get_aob(h_process: HANDLE, ptr: DWORD_PTR, n: usize) -> Vec { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn get_aob(h_process: HANDLE, ptr: DWORD_PTR, n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/memory/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | ReadProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | ptr as LPCVOID, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | buffer.as_mut_ptr() as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/memory/mod.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn write_aob(h_process: HANDLE, ptr: DWORD_PTR, source: &Vec) -> usize { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn write_aob(h_process: HANDLE, ptr: DWORD_PTR, source: &Vec) -> usize { [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/memory/mod.rs:29:31 [INFO] [stdout] | [INFO] [stdout] 29 | let mut protection_bytes: DWORD = 0x0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/memory/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | VirtualProtectEx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | c_addr as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/memory/mod.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | PAGE_EXECUTE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stdout] --> src/memory/mod.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | &mut protection_bytes as PDWORD, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/memory/mod.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | c_addr as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | source[..].as_ptr() as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/memory/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | VirtualProtectEx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | c_addr as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stdout] --> src/memory/mod.rs:56:38 [INFO] [stdout] | [INFO] [stdout] 56 | &mut protection_bytes as PDWORD, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/memory/mod.rs:69:30 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn write_nops(h_process: HANDLE, ptr: DWORD_PTR, n: usize) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:69:43 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn write_nops(h_process: HANDLE, ptr: DWORD_PTR, n: usize) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/memory/mod.rs:74:33 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:74:50 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:74:64 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [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/memory/mod.rs:79:33 [INFO] [stdout] | [INFO] [stdout] 79 | let mut current_protection: DWORD = 0x0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/memory/mod.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | VirtualProtectEx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | to_hook as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/memory/mod.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | PAGE_EXECUTE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stdout] --> src/memory/mod.rs:87:40 [INFO] [stdout] | [INFO] [stdout] 87 | &mut current_protection as PDWORD, [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/memory/mod.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | let relative_address: DWORD = (_diff as DWORD - 5) 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/memory/mod.rs:96:45 [INFO] [stdout] | [INFO] [stdout] 96 | let relative_address: DWORD = (_diff as DWORD - 5) 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/memory/mod.rs:96:59 [INFO] [stdout] | [INFO] [stdout] 96 | let relative_address: DWORD = (_diff as DWORD - 5) 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/memory/mod.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 97 | let relative_aob: [u8; 4] = unsafe { transmute::(relative_address.to_le()) }; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/memory/mod.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | VirtualProtectEx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:109:24 [INFO] [stdout] | [INFO] [stdout] 109 | to_hook as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stdout] --> src/memory/mod.rs:112:40 [INFO] [stdout] | [INFO] [stdout] 112 | &mut current_protection as PDWORD, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/memory/mod.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | h_process: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:119:26 [INFO] [stdout] | [INFO] [stdout] 119 | module_base_address: DWORD_PTR, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | entry_point: DWORD_PTR, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:124:6 [INFO] [stdout] | [INFO] [stdout] 124 | ) -> DWORD_PTR { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:129:30 [INFO] [stdout] | [INFO] [stdout] 129 | let mut shellcode_space: DWORD_PTR = 0x0; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAllocEx` in this scope [INFO] [stdout] --> src/memory/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | VirtualAllocEx( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:136:36 [INFO] [stdout] | [INFO] [stdout] 136 | current_address as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/memory/mod.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | MEM_RESERVE | MEM_COMMIT, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/memory/mod.rs:138:31 [INFO] [stdout] | [INFO] [stdout] 138 | MEM_RESERVE | MEM_COMMIT, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/memory/mod.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | PAGE_EXECUTE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | ) as DWORD_PTR [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | pub h_process: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | pub module_base_address: DWORD_PTR, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | OpenProcess( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn write_aob(&self, ptr: DWORD_PTR, data: &Vec, absolute: bool) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn write_nops(&self, ptr: DWORD_PTR, n: usize, absolute: bool) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn get_aob(&self, ptr: DWORD_PTR, n: usize, absolute: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:76:47 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn read_value(&self, ptr: DWORD_PTR, absolute: bool) -> OutputType { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | ReadProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:90:25 [INFO] [stdout] | [INFO] [stdout] 90 | addr as LPCVOID, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:91:51 [INFO] [stdout] | [INFO] [stdout] 91 | &mut buffer as *mut OutputType as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:101:47 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn write_value(&self, ptr: DWORD_PTR, output: InputType, absolute: bool) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 114 | addr as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:115:50 [INFO] [stdout] | [INFO] [stdout] 115 | (&output as *const InputType) as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | entry_point: DWORD_PTR, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | ) -> DWORD_PTR { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:146:18 [INFO] [stdout] | [INFO] [stdout] 146 | address: DWORD_PTR, [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/process/mod.rs:11:53 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn get_process_id(process_name: &str) -> Result { [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 `DWORD` in this scope [INFO] [stdout] --> src/process/mod.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | let mut process_id: 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/process/mod.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_module_base(process_id: DWORD, module_name: &str) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/mod.rs:51:72 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_module_base(process_id: DWORD, module_name: &str) -> Result { [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 `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/mod.rs:52:34 [INFO] [stdout] | [INFO] [stdout] 52 | let mut module_base_address: DWORD_PTR = 0x0; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/mod.rs:77:59 [INFO] [stdout] | [INFO] [stdout] 77 | break module_entry.modBaseAddr as DWORD_PTR; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32` [INFO] [stdout] --> src/process/mod.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | tlhelp32::CreateToolhelp32Snapshot( [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/process/mod.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | tlhelp32::TH32CS_SNAPMODULE | tlhelp32::TH32CS_SNAPMODULE32, [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/process/mod.rs:55:43 [INFO] [stdout] | [INFO] [stdout] 55 | tlhelp32::TH32CS_SNAPMODULE | tlhelp32::TH32CS_SNAPMODULE32, [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/process/mod.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | if h_snap == handleapi::INVALID_HANDLE_VALUE { [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 `tlhelp32` [INFO] [stdout] --> src/process/mod.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | let mut module_entry = tlhelp32::MODULEENTRY32::default(); [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/process/mod.rs:65:42 [INFO] [stdout] | [INFO] [stdout] 65 | module_entry.dwSize = mem::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/process/mod.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | match tlhelp32::Module32First(h_snap, &mut module_entry) { [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/process/mod.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | if tlhelp32::Module32Next(h_snap, &mut module_entry) == 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/process/mod.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | handleapi::CloseHandle(h_snap); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `handleapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/memory/mod.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn get_aob(h_process: HANDLE, ptr: DWORD_PTR, n: usize) -> Vec { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn get_aob(h_process: HANDLE, ptr: DWORD_PTR, n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/memory/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | ReadProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | ptr as LPCVOID, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | buffer.as_mut_ptr() as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/memory/mod.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn write_aob(h_process: HANDLE, ptr: DWORD_PTR, source: &Vec) -> usize { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn write_aob(h_process: HANDLE, ptr: DWORD_PTR, source: &Vec) -> usize { [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/memory/mod.rs:29:31 [INFO] [stdout] | [INFO] [stdout] 29 | let mut protection_bytes: DWORD = 0x0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/memory/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | VirtualProtectEx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | c_addr as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/memory/mod.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | PAGE_EXECUTE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stdout] --> src/memory/mod.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | &mut protection_bytes as PDWORD, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/memory/mod.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | c_addr as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | source[..].as_ptr() as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/memory/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | VirtualProtectEx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | c_addr as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stdout] --> src/memory/mod.rs:56:38 [INFO] [stdout] | [INFO] [stdout] 56 | &mut protection_bytes as PDWORD, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/memory/mod.rs:69:30 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn write_nops(h_process: HANDLE, ptr: DWORD_PTR, n: usize) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:69:43 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn write_nops(h_process: HANDLE, ptr: DWORD_PTR, n: usize) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/memory/mod.rs:74:33 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:74:50 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:74:64 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [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/memory/mod.rs:79:33 [INFO] [stdout] | [INFO] [stdout] 79 | let mut current_protection: DWORD = 0x0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/memory/mod.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | VirtualProtectEx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | to_hook as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/memory/mod.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | PAGE_EXECUTE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stdout] --> src/memory/mod.rs:87:40 [INFO] [stdout] | [INFO] [stdout] 87 | &mut current_protection as PDWORD, [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/memory/mod.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | let relative_address: DWORD = (_diff as DWORD - 5) 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/memory/mod.rs:96:45 [INFO] [stdout] | [INFO] [stdout] 96 | let relative_address: DWORD = (_diff as DWORD - 5) 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/memory/mod.rs:96:59 [INFO] [stdout] | [INFO] [stdout] 96 | let relative_address: DWORD = (_diff as DWORD - 5) 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/memory/mod.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 97 | let relative_aob: [u8; 4] = unsafe { transmute::(relative_address.to_le()) }; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/memory/mod.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | VirtualProtectEx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:109:24 [INFO] [stdout] | [INFO] [stdout] 109 | to_hook as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stdout] --> src/memory/mod.rs:112:40 [INFO] [stdout] | [INFO] [stdout] 112 | &mut current_protection as PDWORD, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/memory/mod.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | h_process: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:119:26 [INFO] [stdout] | [INFO] [stdout] 119 | module_base_address: DWORD_PTR, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | entry_point: DWORD_PTR, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:124:6 [INFO] [stdout] | [INFO] [stdout] 124 | ) -> DWORD_PTR { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:129:30 [INFO] [stdout] | [INFO] [stdout] 129 | let mut shellcode_space: DWORD_PTR = 0x0; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAllocEx` in this scope [INFO] [stdout] --> src/memory/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | VirtualAllocEx( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/memory/mod.rs:136:36 [INFO] [stdout] | [INFO] [stdout] 136 | current_address as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/memory/mod.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | MEM_RESERVE | MEM_COMMIT, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/memory/mod.rs:138:31 [INFO] [stdout] | [INFO] [stdout] 138 | MEM_RESERVE | MEM_COMMIT, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/memory/mod.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | PAGE_EXECUTE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/memory/mod.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | ) as DWORD_PTR [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | pub h_process: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | pub module_base_address: DWORD_PTR, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | OpenProcess( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn write_aob(&self, ptr: DWORD_PTR, data: &Vec, absolute: bool) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn write_nops(&self, ptr: DWORD_PTR, n: usize, absolute: bool) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn get_aob(&self, ptr: DWORD_PTR, n: usize, absolute: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:76:47 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn read_value(&self, ptr: DWORD_PTR, absolute: bool) -> OutputType { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | ReadProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:90:25 [INFO] [stdout] | [INFO] [stdout] 90 | addr as LPCVOID, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:91:51 [INFO] [stdout] | [INFO] [stdout] 91 | &mut buffer as *mut OutputType as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:101:47 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn write_value(&self, ptr: DWORD_PTR, output: InputType, absolute: bool) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 114 | addr as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:115:50 [INFO] [stdout] | [INFO] [stdout] 115 | (&output as *const InputType) as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | entry_point: DWORD_PTR, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | ) -> DWORD_PTR { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/process_wrapper.rs:146:18 [INFO] [stdout] | [INFO] [stdout] 146 | address: DWORD_PTR, [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/process/mod.rs:11:53 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn get_process_id(process_name: &str) -> Result { [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 `DWORD` in this scope [INFO] [stdout] --> src/process/mod.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | let mut process_id: 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/process/mod.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_module_base(process_id: DWORD, module_name: &str) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/mod.rs:51:72 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_module_base(process_id: DWORD, module_name: &str) -> Result { [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 `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/mod.rs:52:34 [INFO] [stdout] | [INFO] [stdout] 52 | let mut module_base_address: DWORD_PTR = 0x0; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stdout] --> src/process/mod.rs:77:59 [INFO] [stdout] | [INFO] [stdout] 77 | break module_entry.modBaseAddr as DWORD_PTR; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 100 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `memory-rs` [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 100 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, 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" "d4e3f06f330c42d2cc406f2be5a0240f4b56162c35790a3a2ce8b783b5e2a0e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4e3f06f330c42d2cc406f2be5a0240f4b56162c35790a3a2ce8b783b5e2a0e6", kill_on_drop: false }` [INFO] [stdout] d4e3f06f330c42d2cc406f2be5a0240f4b56162c35790a3a2ce8b783b5e2a0e6