bitness 0.4.0

Rust library for detecting OS bitness independently of the executable's bitness. Windows, GNU/Linux and FreeBSD currently supported.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate bitness;

fn main() {
    use std::process;

    match bitness::os_bitness() {
        Ok(bn) => println!("{:?}", bn),
        Err(err) => {
            eprintln!("{}", err.to_string());
            process::exit(2);
        }
    };
}