#linux #login #utmp

utmp-raw

Provides raw types for parsing login records in utmp file

4 releases

0.2.0 Nov 21, 2021
0.1.2 Feb 9, 2020
0.1.1 Feb 9, 2020
0.1.0 Feb 2, 2020

#112 in Unix APIs

39 downloads per month
Used in utmp-rs

MIT license

6KB
105 lines

utmp-rs

Crates.io Docs

Rust crate for parsing utmp files like /var/run/utmp and /var/log/wtmp.

Usage

fn main() -> Result<()> {
    let entries = utmp_rs::parse_from_path("/var/run/utmp")?;
    // ...
}

Dependencies

~1.1–1.6MB
~24K SLoC