Rust crate for detecting the existence of an OS from an unmounted device, or path.
```rust extern crate os_detect;
use osdetect::detectosfromdevice; use std::path::Path;
pub fn main() { let devicepath = &Path::new("/dev/sda3"); let fs = "ext4"; if let Some(os) = detectosfromdevice(device_path, fs) { println!("{:#?}", os); } } ```