| Crates.io | bitness |
| lib.rs | bitness |
| version | 0.4.0 |
| created_at | 2018-01-11 23:44:50.566309+00 |
| updated_at | 2020-11-20 15:32:40.723762+00 |
| description | Rust library for detecting OS bitness independently of the executable's bitness. Windows, GNU/Linux and FreeBSD currently supported. |
| homepage | |
| repository | https://github.com/forbjok/rust-bitness |
| max_upload_size | |
| id | 46444 |
| size | 26,414 |
Rust 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!"),
_ => { }
}