1 unstable release
Uses old Rust 2015
0.1.0 | Nov 2, 2018 |
---|
#1136 in Parser implementations
15,803 downloads per month
Used in 35 crates
(14 directly)
8KB
172 lines
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(())
}
lib.rs
:
Type for parsing the /etc/os-release
file.
Dependencies
~10KB