1 unstable release

Uses old Rust 2015

0.1.0 Nov 2, 2018

#1136 in Parser implementations

Download history 3116/week @ 2024-07-25 3086/week @ 2024-08-01 3083/week @ 2024-08-08 3091/week @ 2024-08-15 3257/week @ 2024-08-22 3828/week @ 2024-08-29 4000/week @ 2024-09-05 3077/week @ 2024-09-12 4137/week @ 2024-09-19 3683/week @ 2024-09-26 3558/week @ 2024-10-03 3651/week @ 2024-10-10 3166/week @ 2024-10-17 3870/week @ 2024-10-24 3954/week @ 2024-10-31 4204/week @ 2024-11-07

15,803 downloads per month
Used in 35 crates (14 directly)

MIT license

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