os-release

Crates.ioos-release
lib.rsos-release
version0.1.0
sourcesrc
created_at2018-11-02 17:13:49.744323
updated_at2018-11-02 17:13:49.744323
descriptionParse /etc/os-release files on Linux distributions
homepage
repositoryhttps://github.com/pop-os/os-release
max_upload_size
id94360
size9,346
Jeremy Soller (jackpot51)

documentation

README

os-release

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(())
}
Commit count: 2

cargo fmt