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

#147 in Unix APIs

Download history 5756/week @ 2024-09-19 3525/week @ 2024-09-26 3841/week @ 2024-10-03 2975/week @ 2024-10-10 5187/week @ 2024-10-17 4332/week @ 2024-10-24 2731/week @ 2024-10-31 3751/week @ 2024-11-07 4489/week @ 2024-11-14 4934/week @ 2024-11-21 4093/week @ 2024-11-28 3831/week @ 2024-12-05 6532/week @ 2024-12-12 4131/week @ 2024-12-19 1332/week @ 2024-12-26 2997/week @ 2025-01-02

15,908 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