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
17,579 downloads per month
Used in 6 crates
(3 directly)
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);
}