11 releases

Uses old Rust 2015

0.1.10 Sep 11, 2024
0.1.9 Jan 28, 2023
0.1.7 Aug 4, 2017
0.1.6 Dec 10, 2016
0.1.2 May 28, 2016

#158 in Unix APIs

Download history 5399/week @ 2024-08-16 6024/week @ 2024-08-23 5582/week @ 2024-08-30 3201/week @ 2024-09-06 3779/week @ 2024-09-13 5781/week @ 2024-09-20 3968/week @ 2024-09-27 3174/week @ 2024-10-04 3432/week @ 2024-10-11 5767/week @ 2024-10-18 3444/week @ 2024-10-25 2801/week @ 2024-11-01 4238/week @ 2024-11-08 4210/week @ 2024-11-15 5652/week @ 2024-11-22 2922/week @ 2024-11-29

17,579 downloads per month
Used in 6 crates (3 directly)

MIT/Apache

7KB
138 lines

rs-release

Rust os-release parser.


lib.rs:

os-release parser

Usage example

use rs_release::parse_os_release;

let os_release_path = "/etc/os-release";
if let Ok(os_release) = parse_os_release(os_release_path) {
    println!("Parsed os-release:");
    for (k, v) in os_release {
        println!("{}={}", k, v);
    }
} else {
    eprintln!("Cannot parse {}", os_release_path);
}

No runtime deps