1 unstable release

0.1.2 Mar 3, 2023

#64 in #libc

Download history 7/week @ 2024-07-20 37/week @ 2024-07-27 15/week @ 2024-08-03 21/week @ 2024-08-10 12/week @ 2024-08-17 7/week @ 2024-08-24 2/week @ 2024-08-31 7/week @ 2024-09-07 10/week @ 2024-09-14 22/week @ 2024-09-21 13/week @ 2024-09-28 8/week @ 2024-10-05 19/week @ 2024-10-12 14/week @ 2024-10-19 12/week @ 2024-10-26 8/week @ 2024-11-02

54 downloads per month
Used in hybrid-bar

MIT license

9KB
184 lines

lxinfo

Warning: This is only meant to be used under Linux and relies on files such as /etc/os-release and /proc/meminfo.

If you don't have those files and lack certain other features, such as uname, then it won't work as it wasn't made to be cross-platform.

Linux System Information through libc and parsing system files.

Usage

fn main() {
   // Basic way of grabbing your username.
   let username = info::get_system_information().unwrap().username;
   println!("Your username is: {username}")
}

Dependencies

~215KB