I'm trying to find out if an windows exe is 32-bit or 64-bit and I need to be able to do this on linux
Below I have very simplified code to visualize it
use std::{fs::File, path::Path};
fn is_x86_64(exe: &mut File) -> bool {
// something
}
if let Ok(exe) = File::open(Path::new("./test.exe")) {
assert!(is_x86_64(exe_file));
}