5 releases
0.2.3 | Jan 2, 2023 |
---|---|
0.2.2 | Jan 2, 2023 |
0.2.1 | Dec 15, 2022 |
0.2.0 | Dec 15, 2022 |
0.1.0 | Dec 5, 2022 |
#623 in Operating systems
19KB
389 lines
lastlog
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.
lib.rs
:
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.
Dependencies
~1.1–1.7MB
~32K SLoC