Crates.io | lastlog |
lib.rs | lastlog |
version | 0.2.3 |
source | src |
created_at | 2022-12-05 08:24:25.810116 |
updated_at | 2023-01-02 05:41:45.169515 |
description | Simple rust crate to read linux lastlog |
homepage | |
repository | https://github.com/imgurbot12/lastlog |
max_upload_size | |
id | 730090 |
size | 19,790 |
Simple crate for retrieving latest last-login records on a UNIX system
The basic usage looks like:
use lastlog::{search_uid, search_username};
fn main() {
let result1 = search_uid(1000);
let result2 = search_username("foo");
}
NOTE: this functionality is only designed to work with UNIX systems that support either utmp/wtmp or lastlog database types.