Skip to content
/ lxinfo Public

Linux System Information crate

License

Notifications You must be signed in to change notification settings

vars1ty/lxinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}")
}