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
use std::io;

use thiserror::Error;

#[derive(Debug, Error)]
pub enum BitnessError {
    #[error("I/O error")]
    Io(#[from] io::Error),

    #[cfg(target_os = "freebsd")]
    #[error("Sysctl error")]
    Sysctl(String),
}