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