Simple ESP (not the best) written in Rust for Assault Cube. This project helped me to understand how low-level system fundamentals work (such as reading/writing memory and putting pixels on screen) in Rust. It could maybe guide you for your project as well.
You have to compile it for the 32-bit architecture. For MSCV toolchain:
rustup target add i686-pc-windows-msvc
cargo build --target=i686-pc-windows-msvc --release # or just cargo runIf you are using GNU toolchain:
rustup target add i686-pc-windows-gnu
cargo build --target=i686-pc-windows-gnu --releasePositioning of the red boxes is not the finest, but configurable based on your preference:
// main.rs
let x = screen.x; // do not touch
let y = screen.y; // do not touch
let left = x as i32 - 24 / 2;
let right = x as i32 + 24 / 2;
let top = y as i32 - 16 / 2;
let bottom = y as i32 + 128;
let color = [255, 0, 0, 255]; // Red RGBA
rect(frame, *SCREEN_WIDTH as i32, left, top, right, bottom, &color);