A lib crate for gathering system info such as cpu, distro, environment, kernel, etc in Rust.
To use: nixinfo = "0.1.7"
in your Cargo.toml
.
nixinfo::cpu()
and nixinfo::temp()
respectivelynixinfo::distro()
nixinfo::device()
nixinfo::environment()
nixinfo::env("VARIABLE")
lspci
and grep
to be installed for now until I find a pure rust solution)
nixinfo::gpu()
nixinfo::hostname()
nixinfo::memory()
music
feature to be enabled)
nixinfo::music()
nixinfo::packages("manager")
nixnfo::terminal()
nixinfo::uptime()