1 unstable release
0.1.0 | Jun 19, 2024 |
---|
#556 in Operating systems
Used in 2 crates
(via rqjs-ext)
3KB
cross-uname
Get name and information about current kernel by uname command
use cross_uname::uname;
fn main() {
let info = uname().unwrap();
// Print the hostname
println!("{}", info.nodename);
// Print everything
println!("{:?}", info);
}