[INFO] cloning repository https://github.com/Cos8o/hooking-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Cos8o/hooking-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCos8o%2Fhooking-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCos8o%2Fhooking-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 350441d34826b26a8537b9eb270936a24024fe1a [INFO] checking Cos8o/hooking-rs against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCos8o%2Fhooking-rs" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Cos8o/hooking-rs on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-13/source/.cargo/config [INFO] started tweaking git repo https://github.com/Cos8o/hooking-rs [INFO] finished tweaking git repo https://github.com/Cos8o/hooking-rs [INFO] tweaked toml for git repo https://github.com/Cos8o/hooking-rs written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/Cos8o/hooking-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "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" "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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 158e768c38a974dc16f98796928093cdcd2572d33b97b6b0787e9cd3670b3ce9 [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" "158e768c38a974dc16f98796928093cdcd2572d33b97b6b0787e9cd3670b3ce9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "158e768c38a974dc16f98796928093cdcd2572d33b97b6b0787e9cd3670b3ce9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "158e768c38a974dc16f98796928093cdcd2572d33b97b6b0787e9cd3670b3ce9", kill_on_drop: false }` [INFO] [stdout] 158e768c38a974dc16f98796928093cdcd2572d33b97b6b0787e9cd3670b3ce9 [INFO] running `Command { std: "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" "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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 20053e7446bc5406a8740611166b88c8957555949e773a9748ef72a0136d0a6e [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" "20053e7446bc5406a8740611166b88c8957555949e773a9748ef72a0136d0a6e", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Checking gd_sniffer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | shared::minwindef::*, [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | ctypes::*, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | shared::minwindef::*, [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | ctypes::*, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/lib.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/lib.rs:15:47 [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:15:60 [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:15:74 [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:15:84 [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/lib.rs:18:34 [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/lib.rs:18:54 [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:18:67 [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:18:81 [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:18:91 [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/lib.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | proc_handle: HANDLE, [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/lib.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | address: LPVOID, [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/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | if 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/lib.rs:35:28 [INFO] [stdout] | [INFO] [stdout] 35 | buffer.as_ptr() 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/lib.rs:49:40 [INFO] [stdout] | [INFO] [stdout] 49 | pub unsafe fn virtual_protect(address: LPVOID, size: usize, protection_flags: u32) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope [INFO] [stdout] --> src/lib.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | if VirtualProtect(address, size, protection_flags, &mut old_protect) != 0 { [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/lib.rs:65:42 [INFO] [stdout] | [INFO] [stdout] 65 | let old = virtual_protect(address as LPVOID, 5, PAGE_EXECUTE_READWRITE)?; [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/lib.rs:65:53 [INFO] [stdout] | [INFO] [stdout] 65 | let old = virtual_protect(address as LPVOID, 5, PAGE_EXECUTE_READWRITE)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/lib.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | let handle = GetCurrentProcess(); [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/lib.rs:68:45 [INFO] [stdout] | [INFO] [stdout] 68 | write_process_memory(handle, address as LPVOID, op)?; [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/lib.rs:69:51 [INFO] [stdout] | [INFO] [stdout] 69 | write_process_memory(handle, (address + 1) as LPVOID, &offset.to_le_bytes())?; [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/lib.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | virtual_protect(address as LPVOID, 5, old)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AllocConsole` in this scope [INFO] [stdout] --> src/lib.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | AllocConsole(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in this scope [INFO] [stdout] --> src/lib.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | let ws = GetModuleHandleA(b"WS2_32.dll\0".as_ptr() as *const i8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/lib.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | send_addr = GetProcAddress(ws, b"send\0".as_ptr() as *const i8) as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/lib.rs:87:35 [INFO] [stdout] | [INFO] [stdout] 87 | extern "stdcall" fn DllMain(_dll: HINSTANCE, reason: DWORD, _reserved: LPVOID) -> BOOL { [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/lib.rs:87:54 [INFO] [stdout] | [INFO] [stdout] 87 | extern "stdcall" fn DllMain(_dll: HINSTANCE, reason: DWORD, _reserved: LPVOID) -> BOOL { [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/lib.rs:87:72 [INFO] [stdout] | [INFO] [stdout] 87 | extern "stdcall" fn DllMain(_dll: HINSTANCE, reason: DWORD, _reserved: LPVOID) -> BOOL { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:87:83 [INFO] [stdout] | [INFO] [stdout] 87 | extern "stdcall" fn DllMain(_dll: HINSTANCE, reason: DWORD, _reserved: LPVOID) -> BOOL { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DLL_PROCESS_ATTACH` in this scope [INFO] [stdout] --> src/lib.rs:88:18 [INFO] [stdout] | [INFO] [stdout] 88 | if reason == DLL_PROCESS_ATTACH { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/lib.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | Ok(_) => TRUE, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/lib.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | Err(_) => FALSE, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/lib.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | TRUE [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/lib.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/lib.rs:15:47 [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:15:60 [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:15:74 [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:15:84 [INFO] [stdout] | [INFO] [stdout] 15 | fn send_trampoline(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/lib.rs:18:34 [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/lib.rs:18:54 [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:18:67 [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:18:81 [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:18:91 [INFO] [stdout] | [INFO] [stdout] 18 | extern "stdcall" fn send_hook(s: SOCKET, buf: *const c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/lib.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | proc_handle: HANDLE, [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/lib.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | address: LPVOID, [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/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | if 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/lib.rs:35:28 [INFO] [stdout] | [INFO] [stdout] 35 | buffer.as_ptr() 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/lib.rs:49:40 [INFO] [stdout] | [INFO] [stdout] 49 | pub unsafe fn virtual_protect(address: LPVOID, size: usize, protection_flags: u32) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope [INFO] [stdout] --> src/lib.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | if VirtualProtect(address, size, protection_flags, &mut old_protect) != 0 { [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/lib.rs:65:42 [INFO] [stdout] | [INFO] [stdout] 65 | let old = virtual_protect(address as LPVOID, 5, PAGE_EXECUTE_READWRITE)?; [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/lib.rs:65:53 [INFO] [stdout] | [INFO] [stdout] 65 | let old = virtual_protect(address as LPVOID, 5, PAGE_EXECUTE_READWRITE)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/lib.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | let handle = GetCurrentProcess(); [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/lib.rs:68:45 [INFO] [stdout] | [INFO] [stdout] 68 | write_process_memory(handle, address as LPVOID, op)?; [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/lib.rs:69:51 [INFO] [stdout] | [INFO] [stdout] 69 | write_process_memory(handle, (address + 1) as LPVOID, &offset.to_le_bytes())?; [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/lib.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | virtual_protect(address as LPVOID, 5, old)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AllocConsole` in this scope [INFO] [stdout] --> src/lib.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | AllocConsole(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in this scope [INFO] [stdout] --> src/lib.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | let ws = GetModuleHandleA(b"WS2_32.dll\0".as_ptr() as *const i8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/lib.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | send_addr = GetProcAddress(ws, b"send\0".as_ptr() as *const i8) as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/lib.rs:87:35 [INFO] [stdout] | [INFO] [stdout] 87 | extern "stdcall" fn DllMain(_dll: HINSTANCE, reason: DWORD, _reserved: LPVOID) -> BOOL { [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/lib.rs:87:54 [INFO] [stdout] | [INFO] [stdout] 87 | extern "stdcall" fn DllMain(_dll: HINSTANCE, reason: DWORD, _reserved: LPVOID) -> BOOL { [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/lib.rs:87:72 [INFO] [stdout] | [INFO] [stdout] 87 | extern "stdcall" fn DllMain(_dll: HINSTANCE, reason: DWORD, _reserved: LPVOID) -> BOOL { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:87:83 [INFO] [stdout] | [INFO] [stdout] 87 | extern "stdcall" fn DllMain(_dll: HINSTANCE, reason: DWORD, _reserved: LPVOID) -> BOOL { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DLL_PROCESS_ATTACH` in this scope [INFO] [stdout] --> src/lib.rs:88:18 [INFO] [stdout] | [INFO] [stdout] 88 | if reason == DLL_PROCESS_ATTACH { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/lib.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | Ok(_) => TRUE, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/lib.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | Err(_) => FALSE, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/lib.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | TRUE [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 36 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gd_sniffer` [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 36 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "20053e7446bc5406a8740611166b88c8957555949e773a9748ef72a0136d0a6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20053e7446bc5406a8740611166b88c8957555949e773a9748ef72a0136d0a6e", kill_on_drop: false }` [INFO] [stdout] 20053e7446bc5406a8740611166b88c8957555949e773a9748ef72a0136d0a6e