osinfo 1.0.0

Detect the operating system type and version.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod os_release;

use log::trace;

use crate::OSInfo;

pub fn get_info() -> OSInfo {
    trace!("Linux::get_info is called");
    let info = os_release::get_os_data();
    trace!("Returning {:?}", info);
    info.unwrap_or_default()
}