hello folk.
I have this code, and run OK, but tried detect if a binary input is of 32 bits or 64bit, Is posible check this whit cfg?. For example using let mut file = File::open("../data/vs_Community.exe").unwrap();?
#![allow(unused)]
fn main() {
let machine_kind = if cfg!(unix) {
"x86"
} else if cfg!(windows) {
"x86_64"
} else {
"unknown"
};
println!("I'm running on a {} machine!", machine_kind);
}
regards.