12 releases

Uses old Rust 2015

new 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

#146 in Unix APIs

Download history 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 2931/week @ 2024-11-29 4726/week @ 2024-12-06 6906/week @ 2024-12-13 2726/week @ 2024-12-20 1865/week @ 2024-12-27 3938/week @ 2025-01-03 3418/week @ 2025-01-10

13,515 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