#linux #login #utmp

utmp-raw

Provides raw types for parsing login records in utmp file

5 unstable releases

0.3.0 Jul 24, 2022
0.2.0 Nov 21, 2021
0.1.2 Feb 9, 2020
0.1.1 Feb 9, 2020
0.1.0 Feb 2, 2020

#217 in Unix APIs

Download history 27/week @ 2022-04-17 32/week @ 2022-04-24 32/week @ 2022-05-01 61/week @ 2022-05-08 90/week @ 2022-05-15 30/week @ 2022-05-22 81/week @ 2022-05-29 46/week @ 2022-06-05 7/week @ 2022-06-12 14/week @ 2022-06-19 9/week @ 2022-06-26 20/week @ 2022-07-03 82/week @ 2022-07-10 52/week @ 2022-07-17 63/week @ 2022-07-24 33/week @ 2022-07-31

232 downloads per month
Used in utmp-rs

MIT license

9KB
179 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

~0.6–1.1MB
~22K SLoC