proc_sys_parser 0.1.22

This crate provides routines for parsing linux /proc files into Rust structs. There are multiple other crates doing this, but these either do not choose to process the statistics in way to make them directly usable, or generalize the statistics and loose the detail.
Documentation
1
2
3
4
5
6
7
8
9
use std::error::Error;
use proc_sys_parser::stat;

fn main() -> Result<(), Box<dyn Error>> {
    let stat = stat::Builder::new().path("/mypath").read();
    println!("{:?}", stat);

    Ok(())
}