Crates.io | os-release |
lib.rs | os-release |
version | 0.1.0 |
source | src |
created_at | 2018-11-02 17:13:49.744323 |
updated_at | 2018-11-02 17:13:49.744323 |
description | Parse /etc/os-release files on Linux distributions |
homepage | |
repository | https://github.com/pop-os/os-release |
max_upload_size | |
id | 94360 |
size | 9,346 |
Rust crate that provides a type for parsing the /etc/os-release
file, or any file with
an os-release
-like format.
extern crate os_release;
use os_release::OsRelease;
use std::io;
pub fn main() -> io::Result<()> {
let release = OsRelease::new()?;
println!("{:#?}", release);
Ok(())
}