1 unstable release

0.1.2 Mar 3, 2023

#75 in #libc

Download history 17/week @ 2024-09-18 18/week @ 2024-09-25 10/week @ 2024-10-02 14/week @ 2024-10-09 17/week @ 2024-10-16 11/week @ 2024-10-23 12/week @ 2024-10-30 7/week @ 2024-11-06 10/week @ 2024-11-13 12/week @ 2024-11-20 8/week @ 2024-11-27 17/week @ 2024-12-04 27/week @ 2024-12-11 12/week @ 2024-12-18 8/week @ 2024-12-25 2/week @ 2025-01-01

56 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

~210KB