0.4.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
Apache-2.0 - Apache License 2.0Rust library for detecting OS bitness independently of the executable's bitness. Windows, GNU/Linux and FreeBSD currently supported.
let bitness = bitness::os_bitness().unwrap();
match bitness {
Bitness::X86_32 => println!("We're 32-bit!"),
Bitness::X86_64 => println!("We're 64-bit!"),
_ => { }
}