12 releases

Uses old Rust 2015

0.1.11 Jan 13, 2025
0.1.10 Sep 11, 2024
0.1.9 Jan 28, 2023
0.1.7 Aug 4, 2017
0.1.4 Jul 26, 2016

#149 in Unix APIs

Download history 2912/week @ 2024-10-05 4382/week @ 2024-10-12 4757/week @ 2024-10-19 3454/week @ 2024-10-26 3139/week @ 2024-11-02 4462/week @ 2024-11-09 4532/week @ 2024-11-16 4706/week @ 2024-11-23 2939/week @ 2024-11-30 5994/week @ 2024-12-07 6929/week @ 2024-12-14 1489/week @ 2024-12-21 2197/week @ 2024-12-28 3804/week @ 2025-01-04 4083/week @ 2025-01-11 3482/week @ 2025-01-18

13,846 downloads per month
Used in 6 crates (3 directly)

MIT/Apache

7KB
141 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